|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eventgnosis.system.SystemObject com.eventgnosis.sources.EventSourceListenerBase
Base class for source system objects, those system objects that read from external protocols/devices/systems.
Each source system object must extend this class.
Field Summary |
Fields inherited from class com.eventgnosis.system.SystemObject |
CONFIG_MGR, DEST_CREATION_MGR, DEST_MGR, DOWN, ERROR, FILTER_STACK_MGR, HIER_SEP, INITIALIZING, MAX_LEVELS, QUEUE_MGR, SHUTTINGDOWN, SRC_ADAPTER_MGR, SRC_LISTENER_MGR, STARTED, statusMap, UNKNOWN, UP |
Constructor Summary | |
EventSourceListenerBase()
|
Method Summary | |
abstract java.lang.String |
connect()
Establishes the remote communications connection. Can be called to create the first connection as well as to reconnect after disconnection. |
SystemObject |
createDestination(Event ev)
Must be overridden for each of the base types of system objects. This method finds successor system object for event flow based on emml configuration(called destination name). |
abstract java.lang.String |
disconnect()
Disconnects the remote connection. |
java.lang.String |
doWork(long timeout)
Do work for all child members as a generic default. Each SystemObject can have its own member children, thread, and/or event processors. If object is not yet started, starts it up. |
abstract java.lang.String |
getProtocolName()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.eventgnosis.system.InputEvents |
getNextEvent |
Constructor Detail |
public EventSourceListenerBase()
Method Detail |
public abstract java.lang.String connect()
public SystemObject createDestination(Event ev)
SystemObject
createDestination
in class SystemObject
ev
- Event - in case destination creation depends on event contents (dynamic destination creation). This is currently not supported.
public abstract java.lang.String disconnect()
public java.lang.String doWork(long timeout)
SystemObject
doWork
in class SystemObject
timeout
- The timeout in milliseconds by which the call it to return.
This is an advisory number that is implementation specific.public abstract java.lang.String getProtocolName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |