Class Router
- java.lang.Object
-
- com.sun.enterprise.ee.cms.impl.common.Router
-
public class Router extends java.lang.ObjectRoutes signals to appropriate destinations- Version:
- $Revision$
- Author:
- Shreedhar Ganapathy Date: Jan 16, 2004
-
-
Field Summary
Fields Modifier and Type Field Description AliveAndReadyViewWindowaliveAndReadyViewjava.lang.StringgroupName
-
Constructor Summary
Constructors Constructor Description Router(java.lang.String groupName, int queueSize, AliveAndReadyViewWindow viewWindow, int incomingMsgThreadPoolSize, GMSMonitor gmsMonitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>getFailureRecoveryComponents()booleanisFailureNotificationAFRegistered()booleanisFailureRecoveryAFRegistered()booleanisFailureSuspectedAFRegistered()booleanisGroupLeadershipNotificationAFRegistered()booleanisJoinedAndReadyNotificationAFRegistered()booleanisJoinNotificationAFRegistered()booleanisMessageAFRegistered()booleanisPlannedShutdownAFRegistered()voidqueueSignal(SignalPacket signalPacket)Adds a single signal to the queue.voidqueueSignals(SignalPacket signalPacket)Queues signals.voidremoveFailureRecoveryAFDestination(java.lang.String componentName)removes a FailureRecoveryActionFactory instance belonging to a specified componentvoidremoveMessageAFDestination(java.lang.String componentName)removes a MessageActionFactory instance belonging to a specified componentvoidshutdown()
-
-
-
Field Detail
-
aliveAndReadyView
public final AliveAndReadyViewWindow aliveAndReadyView
-
groupName
public final java.lang.String groupName
-
-
Constructor Detail
-
Router
public Router(java.lang.String groupName, int queueSize, AliveAndReadyViewWindow viewWindow, int incomingMsgThreadPoolSize, GMSMonitor gmsMonitor)
-
-
Method Detail
-
removeMessageAFDestination
public void removeMessageAFDestination(java.lang.String componentName)
removes a MessageActionFactory instance belonging to a specified component- Parameters:
componentName- the component name
-
removeFailureRecoveryAFDestination
public void removeFailureRecoveryAFDestination(java.lang.String componentName)
removes a FailureRecoveryActionFactory instance belonging to a specified component- Parameters:
componentName- the component name
-
queueSignals
public void queueSignals(SignalPacket signalPacket)
Queues signals. Expects an array of signals which are handed off to working threads that will determine their corresponding actions to call their consumeSignal method.- Parameters:
signalPacket- the signal packet
-
queueSignal
public void queueSignal(SignalPacket signalPacket)
Adds a single signal to the queue.- Parameters:
signalPacket- the signal packet
-
isFailureNotificationAFRegistered
public boolean isFailureNotificationAFRegistered()
-
isFailureRecoveryAFRegistered
public boolean isFailureRecoveryAFRegistered()
-
isMessageAFRegistered
public boolean isMessageAFRegistered()
-
isPlannedShutdownAFRegistered
public boolean isPlannedShutdownAFRegistered()
-
isJoinNotificationAFRegistered
public boolean isJoinNotificationAFRegistered()
-
isJoinedAndReadyNotificationAFRegistered
public boolean isJoinedAndReadyNotificationAFRegistered()
-
isFailureSuspectedAFRegistered
public boolean isFailureSuspectedAFRegistered()
-
isGroupLeadershipNotificationAFRegistered
public boolean isGroupLeadershipNotificationAFRegistered()
-
getFailureRecoveryComponents
public java.util.Set<java.lang.String> getFailureRecoveryComponents()
-
shutdown
public void shutdown()
-
-