public class DefaultEventManager extends AbstractEventManager
AbstractADEPT2Service.ActiveSessions| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PLUGIN_TYPE_DB_MEMORY_RESULT_SET_EVENT
The plug-in type ID for memory result set events.
|
static java.lang.String |
PLUGIN_TYPE_DB_RESULT_SET_EVENT
The plug-in type ID for result set events.
|
static java.lang.String |
PLUGIN_TYPE_FILE_EVENT
The plug-in type ID for file events.
|
static java.lang.String |
PLUGIN_TYPE_MAIL_EVENT
The plug-in type ID for mail events.
|
activitySelecting, addEventSourceRetryCount, addEventSourceRetryDelay, CONF_ADD_EVENT_SOURCE_RETRY_COUNT, CONF_ADD_EVENT_SOURCE_RETRY_DELAY, CONF_CREATE_WORKLIST_RETRY_DELAY, CONF_CREATE_WORKLIST_SILENT_COUNT, CONF_HANDLER_MIN_POOL_SIZE, CONF_HANDLER_PRIORITY, CONF_HANDLER_QUEUE_LIMIT, CONF_LIB_DIRECTORY, CONF_MIN_POOL_SIZE, CONF_POLLER_PRIORITY, createWorklistRetryDelay, createWorklistSilentCount, dataLock, exmFactory, filterFactory, futures, handler, handlerMinPoolSize, handlerPriority, handlerQueueLimit, handlerService, handlerSource, instanceControl, libDirectory, MINIMAL_DELAY, minPoolSize, omm, pingWLMInterval, pm, pollerPriority, pollService, PREREGISTERED_EVENT_HANDLER, reconnectLogLevel, reconnectWLMInterval, resumeOnly, runtimeService, sharedSources, sourceCount, sources, supportedEventTypes, updateInterval, worklistHandlerCONF_CSV_LOGGING, configuration, logger, registry, runtimeRequiredServices, startupRequiredServicesACT_CONF_EVENT_TYPE, ACT_CONF_RETRY_COUNT, ACT_CONF_RETRY_DELAY, ACT_CONF_SOURCE_ID, ACT_CONF_SOURCE_TYPE, PLUGIN_TYPE_ACTIVITY_EVENT_HANDLERPLUGIN_TYPE_EVENT_HANDLER| Modifier | Constructor and Description |
|---|---|
|
DefaultEventManager(Configuration conf,
Registry registry)
Creates a new service polling for DB, mail and file events and handling them appropriately.
|
protected |
DefaultEventManager(Configuration conf,
Registry registry,
java.lang.String[] startupRequiredServices,
java.lang.String[] runtimeRequiredServices,
java.util.Map<java.lang.String,java.lang.Class<? extends Event>> supportedEvents)
Creates a new service polling for DB, mail and file events and handling them appropriately.
|
| Modifier and Type | Method and Description |
|---|---|
ExtendedConnection |
getConnection(java.lang.String dataSource,
boolean readOnly)
Retrieves a connection to the designated data source.
|
java.sql.Connection |
getConnection(java.lang.String driver,
java.lang.String connectionURL,
java.lang.String userName,
java.lang.String password)
Retrieves a connection to a JDBC-database using the designated information.
|
java.sql.Connection |
getConnection(java.lang.String driver,
java.lang.String connectionURL,
java.lang.String userName,
java.lang.String password,
boolean readOnly)
Retrieves a connection to a JDBC-database using the designated information.
|
protected static java.util.Map<java.lang.String,java.lang.Class<? extends Event>> |
mergeSupportedEventTypes(java.util.Map<java.lang.String,java.lang.Class<? extends Event>> supportedEvents)
Merges the events supported by subclasses and by this default event manager.
|
addEventHandler, addEventHandler, addEventHandler, addEventSource, addPreregistered, addPreregistered, createAndStartInstance, createInstanceDataContainer, createSession, deselectActivity, getEventHandler, getEventSources, getHandlerExecutorService, getInstanceControl, getLatestTemplateReference, getProgressMonitor, getRuntimeEnvironment, getScheduledExecutorService, getSimpleSessionContext, getSupportedEventTypes, getTemplateReference, init, removeAllSources, removeEventHandler, removeEventSource, selectActivity, shutdown, start, startActivityauthenticateService, awaitActiveSessions, getSecurityManager, getSessionFactory, simpleInit_sessionActive, _sessionFinished, activeOrInvalidServiceStateException, changeLogContext, changeLogContext, changeLogContext, consoleLog, csvLoggingEnabled, getClassSpecificJulLogger, getDependencyRegistry, getLocalUris, getLogger, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, getUserCredentials, isActive, isSessionActive, isShutdown, logMethodEntry, logMethodEntry, logMethodEntry, logMethodExit, logMethodExit, ping, preShutdown, privilegeSession, privilegeThread, revertLogContextChanges, sessionActive, sessionActive, sessionActive, sessionActive, sessionFinished, sessionFinished, signalShutdown, signalStart, unprivilegeThreadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocalUris, getRelease, getRuntimeRequiredServices, getServiceInstanceName, getStartupRequiredServices, getURIs, ping, preShutdownpublic static final java.lang.String PLUGIN_TYPE_DB_RESULT_SET_EVENT
public static final java.lang.String PLUGIN_TYPE_DB_MEMORY_RESULT_SET_EVENT
public static final java.lang.String PLUGIN_TYPE_MAIL_EVENT
public static final java.lang.String PLUGIN_TYPE_FILE_EVENT
protected DefaultEventManager(Configuration conf, Registry registry, java.lang.String[] startupRequiredServices, java.lang.String[] runtimeRequiredServices, java.util.Map<java.lang.String,java.lang.Class<? extends Event>> supportedEvents) throws ConfigurationException
conf - The configuration of this event manager.registry - The registry for retrieving the services required by this service.startupRequiredServices - The services required by subclasses for starting and shutting
down the event manager. This must neither be null nor contain
null values.runtimeRequiredServices - The services required at runtime of the event manager. This must
neither be null nor contain null values.supportedEvents - The events supported by subclasses. This may be null. The
keys of this map will be used to preregister event sources and handlers.ConfigurationException - If the password for this authenticated service cannot be parsed
from the configuration, a ConfigurationException will be thrown.public DefaultEventManager(Configuration conf, Registry registry) throws ConfigurationException
DefaultEventManager(Configuration, Registry, String[], String[], Map) instead from
their registry-conform public constructor.conf - The configuration of this event manager.registry - The registry for retrieving the services required by this service.ConfigurationException - If the password for this authenticated service cannot be parsed
from the configuration, a ConfigurationException will be thrown.protected static java.util.Map<java.lang.String,java.lang.Class<? extends Event>> mergeSupportedEventTypes(java.util.Map<java.lang.String,java.lang.Class<? extends Event>> supportedEvents)
supportedEvents - The events supported by subclasses.public ExtendedConnection getConnection(java.lang.String dataSource, boolean readOnly) throws ServiceNotKnownException, java.sql.SQLException
dataSource - The simple instance name of the data source to which to
retrieve a connection.readOnly - whether the returned connection will be used as read-onlyServiceNotKnownException - If the designated data source cannot be
retrieved from the registry, a
ServiceNotKnownException will be thrown.java.sql.SQLException - If creating the connection to the data source fails,
an SQLException will be thrown.public java.sql.Connection getConnection(java.lang.String driver,
java.lang.String connectionURL,
java.lang.String userName,
java.lang.String password)
throws ConfigurationException,
java.sql.SQLException
driver - The fully-qualified name of the class of the JDBC-driver.connectionURL - The URL to connect to the database.userName - The name of the user to log on at the database with.
Depending on the JDBC-driver, this may be null.password - The password to log on a the database with. Depending on
the JDBC-driver, this may be null.ConfigurationException - If the designated JDBC-driver cannot is not
found or cannot be instantiated, a
ConfigurationException will be thrown.java.sql.SQLException - If creating the connection to the JDBC-database fails,
an SQLException will be thrown.public java.sql.Connection getConnection(java.lang.String driver,
java.lang.String connectionURL,
java.lang.String userName,
java.lang.String password,
boolean readOnly)
throws ConfigurationException,
java.sql.SQLException
driver - The fully-qualified name of the class of the JDBC-driver.connectionURL - The URL to connect to the database.userName - The name of the user to log on at the database with.
Depending on the JDBC-driver, this may be null.password - The password to log on a the database with. Depending on
the JDBC-driver, this may be null.readOnly - whether the returned connection will be used as read-onlyConfigurationException - If the designated JDBC-driver cannot is not
found or cannot be instantiated, a
ConfigurationException will be thrown.java.sql.SQLException - If creating the connection to the JDBC-database fails,
an SQLException will be thrown.