public class DefaultConfigurationManager extends BaseEngineModule implements org.openksavi.sponge.engine.ConfigurationManager
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultConfigurationManager.ConfigLookup |
class |
DefaultConfigurationManager.HomeLookup |
| Constructor and Description |
|---|
DefaultConfigurationManager(org.openksavi.sponge.engine.Engine engine,
String configurationFilename)
Creates a new configuration manager.
|
| Modifier and Type | Method and Description |
|---|---|
protected CommonsConfiguration |
createRootConfig() |
protected org.apache.commons.lang3.tuple.Pair<org.apache.commons.configuration2.XMLConfiguration,URL> |
createXmlConfiguration(String fileName) |
void |
doStartup()
Starts up this managed entity.
|
int |
getAsyncEventSetProcessorExecutorThreadCount() |
boolean |
getAutoEnable() |
URL |
getConfigurationFileUrl() |
int |
getDurationThreadCount() |
org.openksavi.sponge.config.Configuration |
getEngineConfig()
Returns the engine configuration.
|
String |
getEngineName() |
org.openksavi.sponge.event.EventClonePolicy |
getEventClonePolicy()
Return event clone policy.
|
int |
getEventQueueCapacity()
Returns the event queue capacity.
|
boolean |
getEventSetProcessorDefaultSynchronous() |
long |
getExecutorShutdownTimeout() |
String |
getHome()
Returns the engine home directory.
|
int |
getMainProcessingUnitThreadCount()
Returns the number of the Main Processing Unit worker threads.
|
String |
getProperty(String name) |
org.openksavi.sponge.config.Configuration |
getRootConfig()
Returns the root configuration.
|
void |
setAsyncEventSetProcessorExecutorThreadCount(int asyncEventSetProcessorExecutorThreadCount) |
void |
setAutoEnable(boolean autoEnable) |
void |
setDurationThreadCount(int durationThreadCount) |
void |
setEngineName(String engineName) |
void |
setEventClonePolicy(org.openksavi.sponge.event.EventClonePolicy eventClonePolicy) |
void |
setEventQueueCapacity(int eventQueueCapacity) |
void |
setEventSetProcessorDefaultSynchronous(boolean eventSetProcessorDefaultSynchronous) |
void |
setExecutorShutdownTimeout(long executorShutdownTimeout) |
void |
setMainProcessingUnitThreadCount(int mainProcessingUnitThreadCount) |
void |
setProperties(Map<String,Object> properties) |
void |
setProperty(String key,
Object value) |
void |
setProperty(String key,
Object value,
boolean variable,
boolean system) |
void |
setPropertyEntries(Map<String,org.openksavi.sponge.config.PropertyEntry> propertyEntries) |
void |
setSystemProperties(Map<String,String> systemProperties) |
void |
setSystemProperty(String key,
Object value) |
void |
setVariableProperties(Map<String,String> variableProperties) |
void |
setVariableProperty(String key,
Object value) |
String |
toString() |
doShutdown, getEngine, getName, getService, getState, isFailed, isNew, isNewOrStartingOrRunning, isRunning, isStarting, isStopping, isTerminated, setEngine, setName, shutdown, startupclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic DefaultConfigurationManager(org.openksavi.sponge.engine.Engine engine,
String configurationFilename)
engine - the engine.configurationFilename - configuration file name.public void doStartup()
doStartup in class BaseEngineModuleprotected org.apache.commons.lang3.tuple.Pair<org.apache.commons.configuration2.XMLConfiguration,URL> createXmlConfiguration(String fileName)
protected CommonsConfiguration createRootConfig()
public org.openksavi.sponge.config.Configuration getRootConfig()
getRootConfig in interface org.openksavi.sponge.engine.ConfigurationManagerpublic org.openksavi.sponge.config.Configuration getEngineConfig()
getEngineConfig in interface org.openksavi.sponge.engine.ConfigurationManagerpublic String getEngineName()
getEngineName in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setEngineName(String engineName)
setEngineName in interface org.openksavi.sponge.engine.ConfigurationManagerpublic int getMainProcessingUnitThreadCount()
getMainProcessingUnitThreadCount in interface org.openksavi.sponge.engine.ConfigurationManagerpublic int getEventQueueCapacity()
getEventQueueCapacity in interface org.openksavi.sponge.engine.ConfigurationManagerpublic int getDurationThreadCount()
getDurationThreadCount in interface org.openksavi.sponge.engine.ConfigurationManagerpublic int getAsyncEventSetProcessorExecutorThreadCount()
getAsyncEventSetProcessorExecutorThreadCount in interface org.openksavi.sponge.engine.ConfigurationManagerpublic org.openksavi.sponge.event.EventClonePolicy getEventClonePolicy()
getEventClonePolicy in interface org.openksavi.sponge.engine.ConfigurationManagerpublic long getExecutorShutdownTimeout()
getExecutorShutdownTimeout in interface org.openksavi.sponge.engine.ConfigurationManagerpublic String getHome()
getHome in interface org.openksavi.sponge.engine.ConfigurationManagerpublic URL getConfigurationFileUrl()
getConfigurationFileUrl in interface org.openksavi.sponge.engine.ConfigurationManagerpublic String toString()
toString in class BaseEngineModulepublic String getProperty(String name)
getProperty in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setEventClonePolicy(org.openksavi.sponge.event.EventClonePolicy eventClonePolicy)
setEventClonePolicy in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setMainProcessingUnitThreadCount(int mainProcessingUnitThreadCount)
setMainProcessingUnitThreadCount in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setEventQueueCapacity(int eventQueueCapacity)
setEventQueueCapacity in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setDurationThreadCount(int durationThreadCount)
setDurationThreadCount in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setAsyncEventSetProcessorExecutorThreadCount(int asyncEventSetProcessorExecutorThreadCount)
setAsyncEventSetProcessorExecutorThreadCount in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setExecutorShutdownTimeout(long executorShutdownTimeout)
setExecutorShutdownTimeout in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setProperty(String key, Object value, boolean variable, boolean system)
setProperty in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setProperty(String key, Object value)
setProperty in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setSystemProperty(String key, Object value)
setSystemProperty in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setVariableProperty(String key, Object value)
setVariableProperty in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setProperties(Map<String,Object> properties)
setProperties in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setSystemProperties(Map<String,String> systemProperties)
setSystemProperties in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setVariableProperties(Map<String,String> variableProperties)
setVariableProperties in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setPropertyEntries(Map<String,org.openksavi.sponge.config.PropertyEntry> propertyEntries)
setPropertyEntries in interface org.openksavi.sponge.engine.ConfigurationManagerpublic boolean getEventSetProcessorDefaultSynchronous()
getEventSetProcessorDefaultSynchronous in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setEventSetProcessorDefaultSynchronous(boolean eventSetProcessorDefaultSynchronous)
setEventSetProcessorDefaultSynchronous in interface org.openksavi.sponge.engine.ConfigurationManagerpublic boolean getAutoEnable()
getAutoEnable in interface org.openksavi.sponge.engine.ConfigurationManagerpublic void setAutoEnable(boolean autoEnable)
setAutoEnable in interface org.openksavi.sponge.engine.ConfigurationManagerCopyright © 2016–2017 Softelnet. All rights reserved.