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 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 StringgroupNameprotected static Loggerloggerprotected StringmemberTypeprotected Routerrouterprotected StringserverTokenprotected ShutdownHelpershutdownHelperprotected booleanshuttingDownprotected LongstartTimeprotected ArrayList<String>suspectListprotected ViewWindowviewWindow
-
Constructor Summary
Constructors Modifier Constructor Description protectedGMSContextBase(String serverToken, 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()StringgetGroupName()returns the name of the group this context representscom.sun.enterprise.ee.cms.core.GroupManagementService.MemberTypegetMemberType()protected static StringgetMemberType(com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType memberType)RoutergetRouter()returns the routerStringgetServerIdentityToken()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 String serverToken
-
groupName
protected String groupName
-
router
protected Router router
-
viewWindow
protected ViewWindow viewWindow
-
logger
protected static final Logger logger
-
memberType
protected String memberType
-
gmsMember
protected com.sun.enterprise.ee.cms.core.GMSMember gmsMember
-
startTime
protected final 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 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 String getServerIdentityToken()
returns the serverIdentityToken pertaining to the process that owns this GMS instance- Specified by:
getServerIdentityTokenin interfaceGMSContext- Returns:
- java.lang.String
-
getGroupName
public 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
-
-