public interface RuleServiceProvider
RuleRuntime, TypeManager, etc.
Each RuleServiceProvider is managed by one RuleServiceProviderManager.
RuleServiceProviderManager| Modifier and Type | Field and Description |
|---|---|
static int |
MODE_API
In
MODE_API all services are intialized, but only the rule sessions are started. |
static int |
MODE_CLUSTER
MODE_CLUSTER starts runtime in Cluster mode with all services are initialized and started. |
static int |
MODE_INIT
In
MODE_INIT all services are initialized, but no service is started. |
static int |
MODE_LOAD_ONLY
In
MODE_LOAD_ONLY only project, classes, Global Variable are loaded. |
static int |
MODE_PRIMARY
In
MODE_PRIMARY all services are initialized and started. |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(int mode)
Initializes and starts this
RuleServiceProvider in the given mode. |
java.lang.ClassLoader |
getClassLoader()
Gets the class loader used by deserialization and hot deployment.
|
GlobalVariables |
getGlobalVariables()
Gets the
GlobalVariables that manages all global variables
in this RuleServiceProvider. |
Logger |
getLogger(java.lang.Class clazz)
Gets the
Logger for a given module. |
Logger |
getLogger(java.lang.String name)
Gets the
Logger for a given module. |
java.lang.String |
getName()
Gets the name under which this
RuleServiceProvider is registered
in its parent RuleServiceProviderManager. |
java.util.Properties |
getProperties()
Gets the properties used to build this
RuleServiceProvider. |
RuleRuntime |
getRuleRuntime()
Returns the
RuleRuntime that manages the rule sessions in this RuleServiceProvider. |
TypeManager |
getTypeManager()
Gets the
TypeManager which manages all Ontology type definitions
in this RuleServiceProvider. |
void |
shutdown()
Stops the components in the reverse order they were started.
|
static final int MODE_LOAD_ONLY
MODE_LOAD_ONLY only project, classes, Global Variable are loaded.static final int MODE_INIT
MODE_INIT all services are initialized, but no service is started.static final int MODE_API
MODE_API all services are intialized, but only the rule sessions are started.static final int MODE_PRIMARY
MODE_PRIMARY all services are initialized and started.static final int MODE_CLUSTER
MODE_CLUSTER starts runtime in Cluster mode with all services are initialized and started.void configure(int mode)
RuleServiceProvider in the given mode.mode - one of MODE_API, MODE_INIT, MODE_PRIMARY, MODE_LOAD_ONLYjava.lang.ExceptionRuleServiceProvider.MODE_API,
RuleServiceProvider.MODE_INIT,
RuleServiceProvider.MODE_PRIMARY,
RuleServiceProvider.MODE_LOAD_ONLYjava.lang.ClassLoader getClassLoader()
ClassLoader.GlobalVariables getGlobalVariables()
GlobalVariables that manages all global variables
in this RuleServiceProvider.Logger getLogger(java.lang.String name)
Logger for a given module.name - String name of the module.Logger.Logger getLogger(java.lang.Class clazz)
Logger for a given module.clazz - Class used to determine the module.Logger.java.lang.String getName()
RuleServiceProvider is registered
in its parent RuleServiceProviderManager.String.java.util.Properties getProperties()
RuleServiceProvider.Properties.RuleRuntime getRuleRuntime()
RuleRuntime that manages the rule sessions in this RuleServiceProvider.RuleRuntime.TypeManager getTypeManager()
TypeManager which manages all Ontology type definitions
in this RuleServiceProvider.TypeManager.void shutdown()