public class ThreadModeSettings extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
CHECKER_MODULE_NAME
A checker module name.
|
static String |
MULTI_THREAD_CHECKER_MODULE_NAME
A multi thread checker module name.
|
static String |
MULTI_THREAD_TREE_WALKER_MODULE_NAME
A multi thread three walker module name.
|
static ThreadModeSettings |
SINGLE_THREAD_MODE_INSTANCE
A single thread mode settings instance.
|
static String |
TREE_WALKER_MODULE_NAME
A three walker module name.
|
Constructor and Description |
---|
ThreadModeSettings(int checkerThreadsNumber,
int treeWalkerThreadsNumber)
Initializes the thread mode configuration.
|
Modifier and Type | Method and Description |
---|---|
int |
getCheckerThreadsNumber()
Gets the number of threads for the Checker module.
|
int |
getTreeWalkerThreadsNumber()
Gets the number of threads for the TreeWalker module.
|
String |
resolveName(String name)
Resolves the module name according to the thread settings.
|
public static final String CHECKER_MODULE_NAME
public static final String MULTI_THREAD_CHECKER_MODULE_NAME
public static final String TREE_WALKER_MODULE_NAME
public static final String MULTI_THREAD_TREE_WALKER_MODULE_NAME
public static final ThreadModeSettings SINGLE_THREAD_MODE_INSTANCE
public ThreadModeSettings(int checkerThreadsNumber, int treeWalkerThreadsNumber)
checkerThreadsNumber
- the Checker threads numbertreeWalkerThreadsNumber
- the TreeWalker threads numberpublic int getCheckerThreadsNumber()
public int getTreeWalkerThreadsNumber()
public final String resolveName(String name)
name
- The original module name.Copyright © 2001–2018. All rights reserved.