|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.neeve.util.UtlListElement
com.neeve.aep.AepBusManager
public final class AepBusManager
The AEP bus manager.
The AEP bus binding manager class. An instance of this class is created for
each bus configured for an AEP application. This class is responsible for
- Opening the bus. It is also responsible for including retrying the open
in case of open failure and scheduling reopens when bindings fail.
- Dispatching events to the application indicating when channels change
state from offline to online and vice versa
- Handling and routing of events from the binding to the application.
Nested Class Summary | |
---|---|
static class |
AepBusManager.State
Enumerates the different states the bus handler can be in |
Field Summary |
---|
Fields inherited from class com.neeve.util.UtlListElement |
---|
count, head, next, prev |
Method Summary | |
---|---|
MessageBusBinding |
getBusBinding()
Get the message bus binding managed by an AEP bus manager. |
MessageBusDescriptor |
getBusDescriptor()
Get the descriptor of the message bus binding managed by an AEP bus manager. |
MessageChannel |
getChannel(String channelName)
Get the message channel managed by an AEP bus manager. |
AepBusManagerStats |
getStats()
Get an AEP bus manager's statistics object. |
boolean |
isInternal()
Tests if this is an internal bus binding. |
void |
onEvent(Event event)
Implementation of IEventHandler.onEvent(com.neeve.event.Event) |
String |
toString()
Get a string representation of this object |
Methods inherited from class com.neeve.util.UtlListElement |
---|
count, insertAfter, insertBefore, isLinked, next, previous, unlink, wipe |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public final boolean isInternal()
An AepEngine
creates internal bus bindings
for control information. This method tests if this
bus manager is for such a bus.
public final MessageBusDescriptor getBusDescriptor()
public final AepBusManagerStats getStats()
public final MessageBusBinding getBusBinding()
The binding returned by this method can be null in case the manager is in the open process.
Note: This method is for internal use. Developers should never need to use this method. To gain access to a binding, developers should wait for the appropriate lifecycle event that notifies of binding creation/open
public final MessageChannel getChannel(String channelName)
channelName
- The name of the channel to retrieve
The channel returned by this method can be null in case the manager is in the open process.
Note: This method is for internal use. Developers should never need to use this method. To gain access to a channel, developers should wait for the appropriate lifecycle event that notifies of channel creation/open
public final void onEvent(Event event)
IEventHandler.onEvent(com.neeve.event.Event)
onEvent
in interface IEventHandler
event
- The event to be handled.public final String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |