|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.service.event.EventManagerImpl
public final class EventManagerImpl
This class manages the Events produced by the different
Bundles or their Controllers. It also provides a method to
process all collected Events.
Bundle, BundleInvoker| Constructor Summary | |
|---|---|
EventManagerImpl(ServiceRequest req)
This standard (and only) constructor initialises its instance-variables. |
|
| Method Summary | |
|---|---|
void |
addEvent(Event event)
Adds an Event to the (internal) list of events. |
java.util.Collection<Event> |
getEvents()
returns an unmodifiable Collection of all Events. |
Event |
getOutputEvent()
Returns the StopEvent, or null, if neither a
StopEvent nor an internal server error has been set. |
Event |
getStopEvent()
Returns the StopEvent or null if no StopEvent has
been added. |
boolean |
isInternalServerErrorEvent()
returns whether an internal server error event has been set. |
void |
runEvents(ResultSet rs)
runs all Events. |
void |
setInternalServerErrorEvent()
sets an Internal Server Error event}. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EventManagerImpl(ServiceRequest req)
req - the ServiceRequest for running the Events.| Method Detail |
|---|
public Event getStopEvent()
StopEvent or null if no StopEvent has
been added.
getStopEvent in interface EventManagerStopEvent or null if no
StopEvent has been added.public Event getOutputEvent()
StopEvent, or null, if neither a
StopEvent nor an internal server error has been set.
getOutputEvent in interface EventManagerStopEvent or null, if neither a
StopEvent nor an internal server error has been set.public void setInternalServerErrorEvent()
setInternalServerErrorEvent in interface EventManagerpublic boolean isInternalServerErrorEvent()
isInternalServerErrorEvent in interface EventManagertrue, if and only if, setInternalServerErrorEvent() has been called on this
EventManager. Otherwise false.
public void addEvent(Event event)
throws IllegalEventException
Event to the (internal) list of events.
addEvent in interface EventManagerevent - the Event to add.
IllegalEventException - if the Event is a StopEvent and the
StopEvent is already set OR the Event is a
OutputEvent and the OutputEvent is already
set.public java.util.Collection<Event> getEvents()
Collection of all Events.
getEvents in interface EventManagerpublic void runEvents(ResultSet rs)
Events.
runEvents in interface EventManagerrs - the ResultSetEvent.run(ServiceRequest)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||