public class CoreProfile extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_PROCESSES
The default value of
KEY_MAX_PROCESSES. |
static String |
KEY_MAX_PROCESSES
The key name of
getMaxProcesses(). |
static String |
KEY_MAX_THREADS
Deprecated.
use instead
KEY_MAX_PROCESSES |
static String |
KEY_PREFIX
Prefix of property keys about core.
|
| Constructor and Description |
|---|
CoreProfile(int maxProcesses)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxProcesses()
the number of max threads in core gate processes.
|
static CoreProfile |
loadFrom(Properties properties,
ClassLoader loader)
Deprecated.
use
loadFrom(Properties, ProfileContext) instead |
static CoreProfile |
loadFrom(Properties properties,
ProfileContext context)
Loads a core profile from the properties.
|
static void |
removeCorrespondingKeys(Properties properties)
Removes entries corresponding to process profiles.
|
void |
storeTo(Properties properties)
Stores this profile into the specified properties.
|
public static final String KEY_PREFIX
@Deprecated public static final String KEY_MAX_THREADS
KEY_MAX_PROCESSESgetMaxProcesses() (deprecated).public static final String KEY_MAX_PROCESSES
getMaxProcesses().public static final int DEFAULT_MAX_PROCESSES
KEY_MAX_PROCESSES.public CoreProfile(int maxProcesses)
maxProcesses - the number of max threads in core gate processesIllegalArgumentException - if the maxThreads is less than 1public int getMaxProcesses()
@Deprecated public static CoreProfile loadFrom(Properties properties, ClassLoader loader)
loadFrom(Properties, ProfileContext) insteadproperties - source propertiesloader - class loader to load the provider classesIllegalArgumentException - if properties are invalid, or if any parameter is nullpublic static CoreProfile loadFrom(Properties properties, ProfileContext context)
properties - source propertiescontext - the current profile contextIllegalArgumentException - if properties are invalid, or if any parameter is nullpublic void storeTo(Properties properties)
properties - target properties objectIllegalArgumentException - if target properties already contains keys about this process,
or if any parameter is nullpublic static void removeCorrespondingKeys(Properties properties)
properties - target propertiesIllegalArgumentException - if any parameter is nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.