| Modifier and Type | Method and Description |
|---|---|
EventSource<? extends Event> |
EventManager.addEventSource(SessionToken session,
java.lang.String eventType,
java.lang.String sourceType,
java.lang.String sourceID,
Configuration configuration)
Adds an event source having the designated ID to the designated event type
and event source.
|
java.util.Map<java.lang.String,java.lang.Class<? extends Event>> |
EventManager.getSupportedEventTypes(SessionToken session)
Gets all the event types this event manager supports, that is, it can
create event sources for these event types.
|
EventSource<? extends Event> |
EventManager.removeEventSource(SessionToken session,
java.lang.String eventType,
java.lang.String sourceType,
java.lang.String sourceID)
Removes the event source having the designated event type, event source and
ID.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractEventSource<T extends Event>
This abstract class provides the means for managing the handler registered
for an event source.
|
class |
AbstractSharedEventSource<E extends Event,S extends SharingSource<E>>
An event source that distributes events among several sharing event
sources.
|
class |
AbstractSharingActEventSource<T extends Event>
A source for events shared among several sharing event sources.
|
class |
ConcurrentEventHandling<T extends Event>
A simple class for handling events concurrently via an
executor service.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractEvent
An abstract event providing the type handling and ID handling as well as the
creation date.
|
| Modifier and Type | Field and Description |
|---|---|
protected T |
ConcurrentEventHandling.event
The event to be handled.
|
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Class<? extends Event>> |
AbstractEventManager.supportedEventTypes
All event types that are supported by this event manager.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.Class<? extends Event>> |
AbstractEventManager.getSupportedEventTypes(SessionToken session) |
protected static java.util.Map<java.lang.String,java.lang.Class<? extends Event>> |
DefaultEventManager.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.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
AbstractActivityEventHandler.canHandle(Event event,
boolean consumed)
Gets whether the designated event can be handled by this (sub-)class.
|
boolean |
AbstractActivityEventHandler.handleEvent(Event eve,
boolean consumed) |
boolean |
AbstractSharingActEventSource.handleEvent(Event eve,
boolean consumed) |
protected abstract boolean |
AbstractActivityEventHandler.processEvent(Event event,
ActivityInstance activity,
DataContext dataContext)
Processes the designated event for the designated activity instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.Map<java.lang.String,java.lang.Class<? extends Event>> |
DefaultEventManager.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.
|
| Constructor and Description |
|---|
AbstractEventManager(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 an event manager creating event sources and combining them with the appropriate event
handlers.
|
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 | Class and Description |
|---|---|
class |
MemoryResultSetEventImpl
An event for result sets, that is, an event is produced and sent as soon as a
specific statement yields a non-empty (or empty if desired) result set.
|
class |
ResultSetEventImpl
An event for result sets, that is, an event is produced and sent as soon as a
specific statement yields a non-empty (or empty if desired) result set.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FileEventImpl
An event for files, that is, an event is produced and sent as soon as a file
(or a directory) is created or stored in a specific folder.
|
class |
LockFileEventImpl
An event for files and their lock files, that is, an event is produced and
sent as soon as a file (or a directory) is created or stored in a specific
folder.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
FileEventActivityHandler.canHandle(Event event,
boolean consumed) |
boolean |
FileMarkHandler.handleEvent(Event eve,
boolean consumed) |
boolean |
InstanceStartEventHandler.handleEvent(Event eve,
boolean consumed) |
boolean |
MarkInstanceStartEventHandler.handleEvent(Event eve,
boolean consumed) |
protected boolean |
FileEventActivityHandler.processEvent(Event event,
ActivityInstance activity,
DataContext dataContext) |
| Modifier and Type | Class and Description |
|---|---|
class |
MailEventImpl
An event for mails, that is, an event is produced and sent as soon as a mail
is stored to a specific folder.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
MailEventActivityHandler.canHandle(Event event,
boolean consumed) |
boolean |
InstanceStartEventHandler.handleEvent(Event eve,
boolean consumed) |
boolean |
MailFlagHandler.handleEvent(Event eve,
boolean consumed) |
protected boolean |
MailEventActivityHandler.processEvent(Event event,
ActivityInstance activity,
DataContext dataContext) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
FileEvent
An event that is produced to indicate the presence of a file or a sub-directory.
|
interface |
LockFileEvent
This event extends
FileEvent by additional information to the corresponding lock
file. |
interface |
MailEvent
An event that is produced to indicate the presence of a mail.
|
interface |
MemoryResultSetEvent
An event that is produced to indicate the presence of specific data in a
JDBC-database or similar.
|
interface |
ResultSetEvent
An event that is produced to indicate the presence of specific data in a
JDBC-database.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
EventHandler.handleEvent(Event event,
boolean consumed)
This method actually processes an event.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
ActivityEventSource<T extends Event>
An event source that creates events for specific activities.
|
interface |
EventSource<T extends Event>
An event source produces events and forwards them to one or more event
handler for processing the event.
|
interface |
PollingSource<T extends Event>
An event source that involves polling for an event.
|
interface |
SharedPollingSource<T extends Event>
A
SharedPollingSource unifies the polling for several
SharingSource-instances. |
interface |
SharingSource<T extends Event>
A sharing source is an event source that does not poll itself but shares
another event source that unifies several sharing sources, polls for them and
signals them separately.
|