|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.obe.util.CommonConfig
org.obe.spi.service.ServerConfig
Provides access to OBE server configuration information. OBE is configured
by several XML and properties files, which can either be located in the OBE
configuration directory or in the META-INF/services directory in
obeconfig.jar. Resources in the latter location are accessed via this
class's ClassLoader. The OBE configuration directory can be specified by the
system property "obe.config.dir", and it defaults to the current
directory. Loose files take precedence over resources in obeconfig.jar.
obe.properties file contains the main OBE configuration,
and the ServiceManager.properties file contains the OBE
ServiceManager configuration.
| Field Summary | |
static java.lang.String |
ASYNC_THREADPOOL_SIZE_PROP
Property key for async manager thread pool size. |
static java.lang.String |
AUDIT_NON_TXN_PROP
Property key for audit trail transactionality. |
static java.lang.String |
DIRECTORY_POLL_INTERVAL_PROP
Property key for processes directory polling interval. |
static java.lang.String |
DOMAIN_PROP
Property key for auditing domain. |
static java.lang.String |
EVENT_KEY_BASED_SUBSCRIPTIONS_PROP
Property key for key-based event subscription usage. |
static java.lang.String |
EVENT_MAX_TARDINESS_PROP
Property key for temporal event validity. |
static java.lang.String |
MAIL_SESSION_PROP
Property key for mail session. |
static java.lang.String |
NODE_PROP
Property key for auditing node. |
static java.lang.String |
REUSE_WORKITEMS_PROP
Property key for workitem reuse. |
static java.lang.String |
SCRIPT_PROP
Property key for default script type. |
static java.lang.String |
USE_EVENT_API_PROP
Property key for internal event API usage. |
static java.lang.String |
USE_INIT_SERVLET_PROP
Property key for initialization servlet usage. |
static java.lang.String |
VERBOSE_PROP
Property key for debug verbosity. |
| Fields inherited from class org.obe.util.CommonConfig |
_logger, _props, CONFIG_DIR_PROP, CONFIG_FILE, CREDENTIALS_PROP, DATE_FORMAT_PROP, DURATION_UNIT_PROP, PRINCIPAL_PROP, PROTOCOL_PROP |
| Method Summary | |
static int |
getAsyncThreadpoolSize()
Returns the size of the thread pool used to service asynchronous execution requests. |
static int |
getDirectoryPollInterval()
Returns the polling interval for the ${obe.config.dir}/processes and
${obe.config.dir}/events directories. |
static java.lang.String |
getDomain()
Returns the server's management domain. |
static java.lang.String |
getHostAddress()
Returns the local host's IP address. |
static java.lang.String |
getHostName()
Returns the local host's DNS host name. |
static java.net.InetAddress |
getLocalHost()
Returns the local host's InetAddress, if known. |
static javax.mail.Session |
getMailSession()
Returns the default mail session. |
static int |
getMaximumTemporalEventTardiness()
Returns the maximum acceptable delay for processing a non-recoverable temporal event. |
static java.lang.String |
getNodeId()
Returns the server's node ID. |
static java.lang.String |
getScriptType()
Returns the default script type to use if one is not specified in XPDL. |
static boolean |
isAuditNonTransactional()
Returns whether auditing should be performed non-transactionally. |
static boolean |
isVerbose()
Returns whether debug output should be verbose. |
static boolean |
reuseWorkItems()
Returns whether work items should be re-used. |
static boolean |
supportsKeyBasedEventSubscriptions()
Returns whether the event manager should accept key-based event subscriptions. |
static boolean |
useEventAPI()
Returns whether to inject application events via the local client API. |
static boolean |
useInitServlet()
Returns whether to defer initialization to the J2EEInitServlet. |
| Methods inherited from class org.obe.util.CommonConfig |
findResource, getBooleanProperty, getConfigDir, getCredentials, getDefaultDateFormat, getDefaultDurationUnit, getIntProperty, getPrincipal, getProtocol, getStringProperty, openInputSource, openInputStream, openOutputStream, openReader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String AUDIT_NON_TXN_PROP
isAuditNonTransactional(),
Constant Field Valuespublic static final java.lang.String DOMAIN_PROP
getDomain(),
Constant Field Valuespublic static final java.lang.String MAIL_SESSION_PROP
getMailSession(),
Constant Field Valuespublic static final java.lang.String NODE_PROP
getNodeId(),
Constant Field Valuespublic static final java.lang.String REUSE_WORKITEMS_PROP
reuseWorkItems(),
Constant Field Valuespublic static final java.lang.String SCRIPT_PROP
getScriptType(),
Constant Field Valuespublic static final java.lang.String USE_EVENT_API_PROP
useEventAPI(),
Constant Field Valuespublic static final java.lang.String EVENT_KEY_BASED_SUBSCRIPTIONS_PROP
supportsKeyBasedEventSubscriptions(),
Constant Field Valuespublic static final java.lang.String EVENT_MAX_TARDINESS_PROP
getMaximumTemporalEventTardiness(),
Constant Field Valuespublic static final java.lang.String USE_INIT_SERVLET_PROP
useInitServlet(),
Constant Field Valuespublic static final java.lang.String VERBOSE_PROP
isVerbose(),
Constant Field Valuespublic static final java.lang.String ASYNC_THREADPOOL_SIZE_PROP
getAsyncThreadpoolSize(),
Constant Field Valuespublic static final java.lang.String DIRECTORY_POLL_INTERVAL_PROP
getDirectoryPollInterval(),
Constant Field Values| Method Detail |
public static java.net.InetAddress getLocalHost()
public static java.lang.String getHostAddress()
public static java.lang.String getHostName()
public static java.lang.String getDomain()
"OBE". In a future release,
this will be changed to return the name of the management domain to which
the server belongs.
The setting reflects the string value of the configuration property
obe.domain.
"OBE".DOMAIN_PROPpublic static java.lang.String getNodeId()
obe.node.
NODE_PROPpublic static java.lang.String getScriptType()
obe.script.
"text/x-xpath".SCRIPT_PROPpublic static boolean isVerbose()
obe.debug.verbose.
true if verbose debugging is enabled, defaulting to
false.VERBOSE_PROPpublic static boolean reuseWorkItems()
obe.reuse.workitems.
true if work item re-use is enabled.REUSE_WORKITEMS_PROPpublic static boolean useEventAPI()
local client API. The engine creates
an application event
listener, with which it subscribes for workflow-relevant application
events. Injecting application events via the API allows them to be
handled in a transactional context under an authenticated identity if the
ApplicationEventBroker implementation does not provide these
characteristics.
The setting reflects the boolean value of the configuration property
obe.events.use.api.
true if events are to be injected via the API,
false for direct injection into the workflow engine.USE_EVENT_API_PROPpublic static boolean useInitServlet()
true to defer initialization, false to
initialize immediately.USE_INIT_SERVLET_PROPpublic static boolean isAuditNonTransactional()
obe.audit.nontransactional:
| Type | Default | Purpose |
|---|---|---|
| boolean | false | The property name that specifies whether to log audit entries non-transactionally. |
true for non-transactional auditing.AUDIT_NON_TXN_PROPpublic static int getAsyncThreadpoolSize()
obe.async.threadpool.size.
20.ASYNC_THREADPOOL_SIZE_PROPpublic static int getDirectoryPollInterval()
${obe.config.dir}/processes and
${obe.config.dir}/events directories. Only used by the
BasicProcessRepository and BasicApplicationEventBroker.
The setting reflects the value of the configuration property
obe.directory.poll.interval.
5000
(5 seconds).DIRECTORY_POLL_INTERVAL_PROPpublic static int getMaximumTemporalEventTardiness()
obe.events.max.tardiness.
30000 (5 minutes).EVENT_MAX_TARDINESS_PROPpublic static boolean supportsKeyBasedEventSubscriptions()
obe.events.key.based.subscriptions.
true to accept key-based subscriptions,
false to reject, defaulting to true.EVENT_KEY_BASED_SUBSCRIPTIONS_PROP
public static javax.mail.Session getMailSession()
throws OBEException
OBEException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||