|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bea.adapter.event.LocalEventRouter
public class LocalEventRouter
The actual worker object in the WLAI event router. Handles event subscriptions, instantiating and communicating with the event generator (by invoking both start() and refresh() on the event generator), IEventGenerator instance, and posting events back to subscribers.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.bea.wlai.event.IEventRouter |
---|
IEventRouter.IRoutingInfo |
Constructor Summary | |
---|---|
LocalEventRouter(AbstractWLIResourceAdapter ra,
IEventGenerator eventGenerator)
|
Method Summary | |
---|---|
void |
addEventDef(EventMessageEndpointFactory emef,
EventActivationSpec eas)
|
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 RoutingInfo 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 a RoutingInfo object obtained from a prior call to getRoutingInfo(). |
void |
removeEventDef(EventMessageEndpointFactory emef,
EventActivationSpec eas)
|
void |
setEventGeneratorStatus(Status status)
Allows an EventGenerator to indicate its health/status to the EventRouter. |
void |
start(Properties props)
|
void |
stop()
|
protected void |
storeRetryEvent(com.bea.wlai.common.IEvent event)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LocalEventRouter(AbstractWLIResourceAdapter ra, IEventGenerator eventGenerator)
Method Detail |
---|
public String getName()
IEventRouter
getName
in interface IEventRouter
public String getGUID()
IEventRouter
getGUID
in interface IEventRouter
public String[] getEventRouterInstanceIDs()
getEventRouterInstanceIDs
in interface IEventRouter
public com.bea.wlai.common.IEventDefinition[] getEventTypeSummary()
IEventRouter
getEventTypeSummary
in interface IEventRouter
public void addEventDef(EventMessageEndpointFactory emef, EventActivationSpec eas) throws EventRouterException
EventRouterException
public void removeEventDef(EventMessageEndpointFactory emef, EventActivationSpec eas) throws EventRouterException
EventRouterException
public IEventRouter.IRoutingInfo getEventRoutingInfo(com.bea.wlai.common.IEventDefinition eventDef) throws Exception
getEventRoutingInfo
in interface IEventRouter
Exception
IEventRouter.postEvent(com.bea.wlai.common.IEvent)
public void postEvent(com.bea.wlai.common.IEvent event) throws Exception
IEventRouter
postEvent
in interface IEventRouter
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 void postEvent(IEventRouter.IRoutingInfo ri, com.bea.wlai.common.IEvent event) throws Exception
postEvent
in interface IEventRouter
ri
- event
-
Exception
IEventRouter.getEventRoutingInfo(com.bea.wlai.common.IEventDefinition)
protected void storeRetryEvent(com.bea.wlai.common.IEvent event)
public void start(Properties props) throws EventRouterException
EventRouterException
public void stop() throws EventRouterException
EventRouterException
public void eisUnavailable(String reason)
eisUnavailable
in interface IEventRouter
public void eisAvailable(String description)
eisAvailable
in interface IEventRouter
public boolean isEISAvailable()
isEISAvailable
in interface IEventRouter
public void setEventGeneratorStatus(Status status)
setEventGeneratorStatus
in interface IEventRouter
public Status getEventGeneratorStatus()
getEventGeneratorStatus
in interface IEventRouter
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |