public interface ConfigurationManager extends EngineModule
| Modifier and Type | Method and Description |
|---|---|
void |
addPostConfigKnowledgeBases(List<KnowledgeBase> knowledgeBases)
Adds knowledge bases to the list of post-config knowledge bases.
|
void |
addPostConfigPlugins(List<Plugin> plugins)
Adds plugins to the list of post-config plugins.
|
void |
addPreConfigKnowledgeBases(List<KnowledgeBase> knowledgeBases)
Adds knowledge bases to the list of pre-config knowledge bases.
|
void |
addPreConfigPlugins(List<Plugin> plugins)
Adds plugins to the list of pre-config plugins.
|
int |
getAsyncEventSetProcessorExecutorThreadCount()
Returns the number of threads used by an event set processor asynchronous executor.
|
boolean |
getAutoEnable()
Returns
true if auto-enable of processors is turned on. |
URL |
getConfigurationFileUrl()
Returns the configuration file URL.
|
int |
getDurationThreadCount()
Returns the number of threads used by a duration executor.
|
Configuration |
getEngineConfig()
Returns the engine configuration.
|
String |
getEngineDescription()
Returns the engine description.
|
String |
getEngineLabel()
Returns the engine label.
|
String |
getEngineLicense()
Returns the engine license.
|
String |
getEngineName()
Returns the engine name.
|
EventClonePolicy |
getEventClonePolicy()
Return event clone policy.
|
int |
getEventQueueCapacity()
Returns the event queue capacity.
|
boolean |
getEventSetProcessorDefaultSynchronous()
Return an event set processor default synchronous flag.
|
long |
getExecutorShutdownTimeout()
Returns an executor shutdown timeout (in milliseconds).
|
String |
getHome()
Returns the home directory for this engine.
|
int |
getMainProcessingUnitThreadCount()
Returns the number of the Main Processing Unit worker threads.
|
List<KnowledgeBase> |
getPostConfigKnowledgeBases()
Returns post-config knowledge bases added in the EngineBuilder.
|
List<Plugin> |
getPostConfigPlugins()
Returns post-config plugins added in the EngineBuilder.
|
List<KnowledgeBase> |
getPreConfigKnowledgeBases()
Returns pre-config knowledge bases added in the EngineBuilder.
|
List<Plugin> |
getPreConfigPlugins()
Returns pre-config plugins added in the EngineBuilder.
|
String |
getProperty(String name)
Returns the property value or
null if there is none. |
Configuration |
getRootConfig()
Returns the root configuration.
|
void |
setAsyncEventSetProcessorExecutorThreadCount(int asyncEventSetProcessorExecutorThreadCount)
Sets the number of threads used by an event set processor asynchronous executor.
|
void |
setAutoEnable(boolean autoEnable)
Sets auto-enable of processors.
|
void |
setDurationThreadCount(int durationThreadCount)
Sets duration executor thread count.
|
void |
setEngineDescription(String engineDescription)
Sets the engine description.
|
void |
setEngineLabel(String engineLabel)
Sets the engine label.
|
void |
setEngineLicense(String engineLicense)
Sets the engine license.
|
void |
setEngineName(String engineName)
Sets the engine name.
|
void |
setEventClonePolicy(EventClonePolicy eventClonePolicy)
Sets event clone policy.
|
void |
setEventQueueCapacity(int eventQueueCapacity)
Sets event queue capacity.
|
void |
setEventSetProcessorDefaultSynchronous(boolean eventSetProcessorDefaultSynchronous)
Sets an event set processor default synchronous flag.
|
void |
setExecutorShutdownTimeout(long executorShutdownTimeout)
Sets an executor shutdown timeout (in milliseconds).
|
void |
setMainProcessingUnitThreadCount(int mainProcessingUnitThreadCount)
Sets the number of the Main Processing Unit worker threads.
|
void |
setProperties(Map<String,Object> properties)
Sets properties.
|
void |
setProperty(String key,
Object value)
Sets property.
|
void |
setProperty(String key,
Object value,
boolean variable,
boolean system)
Sets property.
|
void |
setPropertyEntries(Map<String,PropertyEntry> propertyEntries)
Sets property entries.
|
void |
setSystemProperties(Map<String,String> systemProperties)
Sets system properties.
|
void |
setSystemProperty(String key,
Object value)
Sets a property that is also a system property.
|
void |
setVariableProperties(Map<String,String> variableProperties)
Sets variable properties.
|
void |
setVariableProperty(String key,
Object value)
Sets a property that is also an engine scope variable.
|
isFailed, isNew, isRunning, isStarting, isStopping, isTerminated, shutdown, startupgetDescription, getLabel, getName, setDescription, setLabel, setNameString getProperty(String name)
null if there is none.name - the property name.Configuration getRootConfig()
Configuration getEngineConfig()
String getHome()
URL getConfigurationFileUrl()
null if there is no configuration file.String getEngineName()
void setEngineName(String engineName)
engineName - the engine name.String getEngineLabel()
void setEngineLabel(String engineLabel)
engineLabel - the engine label.String getEngineDescription()
void setEngineDescription(String engineDescription)
engineDescription - the engine description.String getEngineLicense()
void setEngineLicense(String engineLicense)
engineLicense - the engine license.int getMainProcessingUnitThreadCount()
int getEventQueueCapacity()
int getDurationThreadCount()
int getAsyncEventSetProcessorExecutorThreadCount()
EventClonePolicy getEventClonePolicy()
boolean getEventSetProcessorDefaultSynchronous()
boolean getAutoEnable()
true if auto-enable of processors is turned on.true if auto-enable of processors is turned on.long getExecutorShutdownTimeout()
void setMainProcessingUnitThreadCount(int mainProcessingUnitThreadCount)
mainProcessingUnitThreadCount - the number of the Main Processing Unit worker threads.void setEventSetProcessorDefaultSynchronous(boolean eventSetProcessorDefaultSynchronous)
eventSetProcessorDefaultSynchronous - an event set processor default synchronous flag.void setEventClonePolicy(EventClonePolicy eventClonePolicy)
eventClonePolicy - event clone policy.void setEventQueueCapacity(int eventQueueCapacity)
eventQueueCapacity - event queue capacity.void setDurationThreadCount(int durationThreadCount)
durationThreadCount - duration executor thread count.void setAsyncEventSetProcessorExecutorThreadCount(int asyncEventSetProcessorExecutorThreadCount)
asyncEventSetProcessorExecutorThreadCount - the number of threads used by an event set processor asynchronous executor.void setProperty(String key, Object value, boolean variable, boolean system)
key - property key.value - property value.variable - should this property be set as a variable.system - is a system property.void setProperty(String key, Object value)
key - property key.value - property value.void setSystemProperty(String key, Object value)
key - property key.value - property value.void setVariableProperty(String key, Object value)
key - property key.value - property value.void setProperties(Map<String,Object> properties)
properties - property map.void setPropertyEntries(Map<String,PropertyEntry> propertyEntries)
propertyEntries - property entries.void setSystemProperties(Map<String,String> systemProperties)
systemProperties - system property map.void setVariableProperties(Map<String,String> variableProperties)
variableProperties - variable property map.void setAutoEnable(boolean autoEnable)
autoEnable - auto-enable of processors.void setExecutorShutdownTimeout(long executorShutdownTimeout)
executorShutdownTimeout - an executor shutdown timeout.List<Plugin> getPreConfigPlugins()
List<Plugin> getPostConfigPlugins()
void addPreConfigPlugins(List<Plugin> plugins)
plugins - a list of pre-config plugins.void addPostConfigPlugins(List<Plugin> plugins)
plugins - a list of post-config plugins.List<KnowledgeBase> getPreConfigKnowledgeBases()
List<KnowledgeBase> getPostConfigKnowledgeBases()
void addPreConfigKnowledgeBases(List<KnowledgeBase> knowledgeBases)
knowledgeBases - a list of pre-config knowledge bases.void addPostConfigKnowledgeBases(List<KnowledgeBase> knowledgeBases)
knowledgeBases - a list of post-config knowledge bases.Copyright © 2016–2021 Softelnet. All rights reserved.