Class 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 Detail

      • serverToken

        protected java.lang.String serverToken
      • groupName

        protected java.lang.String groupName
      • router

        protected Router router
      • 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
      • gmsMemberType

        protected final com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType gmsMemberType
    • Constructor Detail

      • GMSContextBase

        protected GMSContextBase​(java.lang.String serverToken,
                                 java.lang.String groupName,
                                 com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType memberType)
    • 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:
        getMemberType in interface GMSContext
      • getServerIdentityToken

        public java.lang.String getServerIdentityToken()
        returns the serverIdentityToken pertaining to the process that owns this GMS instance
        Specified by:
        getServerIdentityToken in interface GMSContext
        Returns:
        java.lang.String
      • getGroupName

        public java.lang.String getGroupName()
        returns the name of the group this context represents
        Specified by:
        getGroupName in interface GMSContext
        Returns:
        the name of the group.
      • createDistributedStateCache

        protected abstract void createDistributedStateCache()
      • isShuttingDown

        public boolean isShuttingDown()
        Return true if shutting down
        Specified by:
        isShuttingDown in interface GMSContext
        Returns:
        true if shutting down