|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.gms.GMSAdapterImpl
@Scoped(value=org.jvnet.hk2.component.PerLookup.class) @Service public class GMSAdapterImpl
| Constructor Summary | |
|---|---|
GMSAdapterImpl()
|
|
| Method Summary | |
|---|---|
void |
complete()
|
java.lang.String |
getClusterName()
|
com.sun.enterprise.ee.cms.core.GroupManagementService |
getGMS(java.lang.String groupName)
|
HealthHistory |
getHealthHistory()
|
Startup.Lifecycle |
getLifecycle()
|
com.sun.enterprise.ee.cms.core.GroupManagementService |
getModule()
|
protected java.util.Properties |
getProperties(java.io.File propFile)
|
boolean |
initialize(java.lang.String clusterName)
|
void |
postConstruct()
|
void |
processNotification(com.sun.enterprise.ee.cms.core.Signal signal)
|
void |
registerFailureNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
Registers a FailureNotification Listener. |
void |
registerFailureRecoveryListener(java.lang.String componentName,
com.sun.enterprise.ee.cms.core.CallBack callback)
Registers a FailureRecovery Listener. |
void |
registerFailureSuspectedListener(com.sun.enterprise.ee.cms.core.CallBack callback)
Registers a FailureSuspected Listener. |
void |
registerGroupLeadershipNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
Registers a GroupLeadershipNotification Listener. |
void |
registerJoinedAndReadyNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
Registers a JoinAndReadyNotification Listener. |
void |
registerJoinNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
Registers a JoinNotification Listener. |
void |
registerMemberLeavingListener(com.sun.enterprise.ee.cms.core.CallBack callback)
Register a listener for all events that represent a member has left the group. |
void |
registerMessageListener(java.lang.String componentName,
com.sun.enterprise.ee.cms.core.CallBack messageListener)
Registers a Message Listener. |
void |
registerPlannedShutdownListener(com.sun.enterprise.ee.cms.core.CallBack callback)
Registers a PlannedShutdown Listener. |
void |
removeFailureNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
|
void |
removeFailureRecoveryListener(java.lang.String componentName)
|
void |
removeFailureSuspectedListener(com.sun.enterprise.ee.cms.core.CallBack callback)
|
void |
removeGroupLeadershipLNotificationistener(com.sun.enterprise.ee.cms.core.CallBack callback)
|
void |
removeJoinedAndReadyNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
|
void |
removeJoinNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
|
void |
removeMemberLeavingListener(com.sun.enterprise.ee.cms.core.CallBack callback)
|
void |
removeMessageListener(java.lang.String componentName)
|
void |
removePlannedShutdownListener(com.sun.enterprise.ee.cms.core.CallBack callback)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GMSAdapterImpl()
| Method Detail |
|---|
public void postConstruct()
postConstruct in interface org.jvnet.hk2.component.PostConstructpublic java.lang.String getClusterName()
getClusterName in interface GMSAdapterpublic boolean initialize(java.lang.String clusterName)
initialize in interface GMSAdapterpublic void complete()
complete in interface GMSAdapterpublic HealthHistory getHealthHistory()
getHealthHistory in interface GMSAdapter
protected final java.util.Properties getProperties(java.io.File propFile)
throws java.io.IOException
java.io.IOExceptionpublic Startup.Lifecycle getLifecycle()
public com.sun.enterprise.ee.cms.core.GroupManagementService getModule()
getModule in interface GMSAdapterpublic com.sun.enterprise.ee.cms.core.GroupManagementService getGMS(java.lang.String groupName)
public void processNotification(com.sun.enterprise.ee.cms.core.Signal signal)
processNotification in interface com.sun.enterprise.ee.cms.core.CallBackpublic void registerJoinNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
registerJoinNotificationListener in interface GMSAdaptercallback - processes GMS notification JoinNotificationSignalpublic void registerJoinedAndReadyNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
registerJoinedAndReadyNotificationListener in interface GMSAdaptercallback - processes GMS notification JoinAndReadyNotificationSignalpublic void registerMemberLeavingListener(com.sun.enterprise.ee.cms.core.CallBack callback)
registerMemberLeavingListener in interface GMSAdaptercallback - Signal can be either PlannedShutdownSignal, FailureNotificationSignal or JoinNotificationSignal(subevent Rejoin).public void registerPlannedShutdownListener(com.sun.enterprise.ee.cms.core.CallBack callback)
registerPlannedShutdownListener in interface GMSAdaptercallback - processes GMS notification PlannedShutdownSignalpublic void registerFailureSuspectedListener(com.sun.enterprise.ee.cms.core.CallBack callback)
registerFailureSuspectedListener in interface GMSAdaptercallback - processes GMS notification FailureSuspectedSignalpublic void registerFailureNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
registerFailureNotificationListener in interface GMSAdaptercallback - processes GMS notification FailureNotificationSignal
public void registerFailureRecoveryListener(java.lang.String componentName,
com.sun.enterprise.ee.cms.core.CallBack callback)
registerFailureRecoveryListener in interface GMSAdaptercallback - processes GMS notification FailureRecoverySignalcomponentName - The name of the parent application's component that should be notified of selected for
performing recovery operations. One or more components in the parent application may
want to be notified of such selection for their respective recovery operations.
public void registerMessageListener(java.lang.String componentName,
com.sun.enterprise.ee.cms.core.CallBack messageListener)
registerMessageListener in interface GMSAdaptercomponentName - Name of the component that would like to consume
Messages. One or more components in the parent application would want to
be notified when messages arrive addressed to them. This registration
allows GMS to deliver messages to specific components.messageListener - processes GMS MessageSignalpublic void registerGroupLeadershipNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
registerGroupLeadershipNotificationListener in interface GMSAdaptercallback - processes GMS notification GroupLeadershipNotificationSignal. This event occurs when the GMS masters leaves the Group
and another member of the group takes over leadership. The signal indicates the new leader.public void removeFailureRecoveryListener(java.lang.String componentName)
removeFailureRecoveryListener in interface GMSAdapterpublic void removeMessageListener(java.lang.String componentName)
removeMessageListener in interface GMSAdapterpublic void removeFailureNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
removeFailureNotificationListener in interface GMSAdapterpublic void removeFailureSuspectedListener(com.sun.enterprise.ee.cms.core.CallBack callback)
removeFailureSuspectedListener in interface GMSAdapterpublic void removeJoinNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
removeJoinNotificationListener in interface GMSAdapterpublic void removeJoinedAndReadyNotificationListener(com.sun.enterprise.ee.cms.core.CallBack callback)
removeJoinedAndReadyNotificationListener in interface GMSAdapterpublic void removePlannedShutdownListener(com.sun.enterprise.ee.cms.core.CallBack callback)
removePlannedShutdownListener in interface GMSAdapterpublic void removeGroupLeadershipLNotificationistener(com.sun.enterprise.ee.cms.core.CallBack callback)
removeGroupLeadershipLNotificationistener in interface GMSAdapterpublic void removeMemberLeavingListener(com.sun.enterprise.ee.cms.core.CallBack callback)
removeMemberLeavingListener in interface GMSAdapter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||