|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Defines objects that are used to route events generated by instances of IEventGenerator into the WLAI environment.
| Nested Class Summary | |
static interface |
IEventRouter.IRoutingInfo
Marker interface for a routing information instance. |
| Method Summary | |
void |
eisAvailable(String description)
Allows the EventGenerator to indicate that its EIS instance is now available. |
void |
eisUnavailable(String reason)
Allows the EventGenerator to indicate that its EIS instance is temporarily unavailable. |
Status |
getEventGeneratorStatus()
Get an indication of the health/status of the EventGenerator. |
String[] |
getEventRouterInstanceIDs()
Get a list of IDs this event router represents. |
IEventRouter.IRoutingInfo |
getEventRoutingInfo(com.bea.wlai.common.IEventDefinition eventDef)
Prearrange for the delivery of events of the given type by getting a IRoutingInfo object that allows for very efficient delivery of events conforming to the given IEventDefinition. |
com.bea.wlai.common.IEventDefinition[] |
getEventTypeSummary()
Get a list of event definitions currently being serviced by this event router. |
String |
getGUID()
Gets the globally unique ID of this event router instance or null if none was given. |
String |
getName()
Gets the name of this event router instance or null if none was given. |
boolean |
isEISAvailable()
Get the availability of the EIS instance for the EventGenerator. |
void |
postEvent(com.bea.wlai.common.IEvent event)
Post the given event to all listeners for this event router. |
void |
postEvent(IEventRouter.IRoutingInfo ri,
com.bea.wlai.common.IEvent event)
Post an event to all subscribers using an IRoutingInfo object obtained from a prior call to getEventRoutingInfo(). |
void |
setEventGeneratorStatus(Status status)
Allows an EventGenerator to indicate its health/status to the EventRouter. |
| Method Detail |
public String getName()
public String getGUID()
public String[] getEventRouterInstanceIDs()
public void postEvent(com.bea.wlai.common.IEvent event)
throws Exception
event - The event to post
Exception - if any error occurs delivering the event. It is the
responsibility of the caller to handle storing this event for
delivery at a later time.public com.bea.wlai.common.IEventDefinition[] getEventTypeSummary()
public void eisUnavailable(String reason)
public void eisAvailable(String description)
public boolean isEISAvailable()
public void setEventGeneratorStatus(Status status)
public Status getEventGeneratorStatus()
public IEventRouter.IRoutingInfo getEventRoutingInfo(com.bea.wlai.common.IEventDefinition eventDef)
throws Exception
ExceptionpostEvent(com.bea.wlai.common.IEvent)
public void postEvent(IEventRouter.IRoutingInfo ri,
com.bea.wlai.common.IEvent event)
throws Exception
ri - event -
ExceptiongetEventRoutingInfo(com.bea.wlai.common.IEventDefinition)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||