|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface EventEmitter
EventEmitter is the interface that defines a component that takes an Event and performs an emit task on that event. This may emit the event to the network, to a disk, or to a database.
| Method Summary | |
|---|---|
Event |
createEvent(java.lang.String eventName)
Create an event with name eventName |
Event |
createEvent(java.lang.String eventName,
boolean validate)
Create an event with name eventName, optionally validating it against an EventTemplateDB |
void |
emit(Event event)
Emits an Event object to the destination |
java.lang.String |
getESFFilePath()
Gets the ESF file used for event validation |
java.io.InputStream |
getESFInputStream()
Gets the InputStream being used for event validation. |
void |
initialize()
Called before the system is started. |
void |
setESFFilePath(java.lang.String esfFilePath)
Sets the ESF file used for event validation. |
void |
setESFInputStream(java.io.InputStream esfInputStream)
Sets an InputStream to be used for event validation. |
void |
shutdown()
Called before the system is shut down. |
| Method Detail |
|---|
void setESFFilePath(java.lang.String esfFilePath)
esfFilePath - the path of the ESF filejava.lang.String getESFFilePath()
void setESFInputStream(java.io.InputStream esfInputStream)
esfInputStream - an InputStream used for event validationjava.io.InputStream getESFInputStream()
void initialize()
throws java.io.IOException
java.io.IOException - if an I/O error occurs during initialization
void shutdown()
throws java.io.IOException
java.io.IOException - if an I/O error occurs during initialization
Event createEvent(java.lang.String eventName)
throws EventSystemException
eventName - the name of the event to create
EventSystemException - if an error occurs during event creation
Event createEvent(java.lang.String eventName,
boolean validate)
throws EventSystemException
eventName - the name of the eventvalidate - whether or not to validate the event against the EventTemplateDB
EventSystemException - if an error occurs during event creation
void emit(Event event)
throws java.io.IOException
event - the event being emitted
java.io.IOException - if an I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||