Class GMSContextBase
- java.lang.Object
-
- com.sun.enterprise.ee.cms.impl.common.GMSContextBase
-
- All Implemented Interfaces:
GMSContext
- Direct Known Subclasses:
GMSContextImpl
public abstract class GMSContextBase extends java.lang.Object implements GMSContext
- Version:
- $Revision$
- Author:
- Shreedhar Ganapathy Date: Jan 31, 2006
-
-
Field Summary
Fields Modifier and Type Field Description protected com.sun.enterprise.ee.cms.core.GMSMembergmsMemberprotected com.sun.enterprise.ee.cms.core.GroupManagementService.MemberTypegmsMemberTypeprotected java.lang.StringgroupNameprotected static java.util.logging.Loggerloggerprotected java.lang.StringmemberTypeprotected Routerrouterprotected java.lang.StringserverTokenprotected ShutdownHelpershutdownHelperprotected booleanshuttingDownprotected java.lang.LongstartTimeprotected java.util.ArrayList<java.lang.String>suspectListprotected ViewWindowviewWindow
-
Constructor Summary
Constructors Modifier Constructor Description protectedGMSContextBase(java.lang.String serverToken, java.lang.String groupName, com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType memberType)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidcreateDistributedStateCache()abstract AliveAndReadyViewWindowgetAliveAndReadyViewWindow()abstract GMSMonitorgetGMSMonitor()java.lang.StringgetGroupName()returns the name of the group this context representscom.sun.enterprise.ee.cms.core.GroupManagementService.MemberTypegetMemberType()protected static java.lang.StringgetMemberType(com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType memberType)RoutergetRouter()returns the routerjava.lang.StringgetServerIdentityToken()returns the serverIdentityToken pertaining to the process that owns this GMS instancebooleanisShuttingDown()Returntrueif shutting down-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sun.enterprise.ee.cms.impl.common.GMSContext
addToSuspectList, announceGroupShutdown, announceGroupStartup, assumeGroupLeadership, getCurrentAliveAndReadyView, getDistributedStateCache, getGroupCommunicationProvider, getGroupHandle, getInstanceRejoins, getPreviousAliveAndReadyView, getShutdownHelper, getStartTime, getSuspectList, getViewWindow, isGroupBeingShutdown, isGroupStartup, isGroupStartupComplete, isSuspected, isWatchdog, join, leave, removeFromSuspectList, setGroupStartup, setGroupStartupJoinMembers, setGroupStartupState
-
-
-
-
Field Detail
-
serverToken
protected java.lang.String serverToken
-
groupName
protected java.lang.String groupName
-
router
protected Router router
-
viewWindow
protected ViewWindow viewWindow
-
logger
protected static final java.util.logging.Logger logger
-
memberType
protected java.lang.String memberType
-
gmsMember
protected com.sun.enterprise.ee.cms.core.GMSMember gmsMember
-
suspectList
protected final java.util.ArrayList<java.lang.String> suspectList
-
startTime
protected final java.lang.Long startTime
-
shuttingDown
protected boolean shuttingDown
-
shutdownHelper
protected final ShutdownHelper shutdownHelper
-
gmsMemberType
protected final com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType gmsMemberType
-
-
Method Detail
-
getMemberType
protected static java.lang.String getMemberType(com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType memberType)
-
getMemberType
public com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType getMemberType()
- Specified by:
getMemberTypein interfaceGMSContext
-
getServerIdentityToken
public java.lang.String getServerIdentityToken()
returns the serverIdentityToken pertaining to the process that owns this GMS instance- Specified by:
getServerIdentityTokenin interfaceGMSContext- Returns:
- java.lang.String
-
getGroupName
public java.lang.String getGroupName()
returns the name of the group this context represents- Specified by:
getGroupNamein interfaceGMSContext- Returns:
- the name of the group.
-
getRouter
public Router getRouter()
returns the router- Specified by:
getRouterin interfaceGMSContext- Returns:
- router
-
createDistributedStateCache
protected abstract void createDistributedStateCache()
-
isShuttingDown
public boolean isShuttingDown()
Returntrueif shutting down- Specified by:
isShuttingDownin interfaceGMSContext- Returns:
trueif shutting down
-
getAliveAndReadyViewWindow
public abstract AliveAndReadyViewWindow getAliveAndReadyViewWindow()
- Specified by:
getAliveAndReadyViewWindowin interfaceGMSContext
-
getGMSMonitor
public abstract GMSMonitor getGMSMonitor()
- Specified by:
getGMSMonitorin interfaceGMSContext
-
-