Interface GMSContext

  • All Known Implementing Classes:
    GMSContextBase, GMSContextImpl

    public interface GMSContext
    Provides contextual information about all useful GMS artifacts. These are GMS objects that are tied to a particular group identity and thus scoped to provide information within the group's context. There can be as many GMSContext objects as there are groups within a single JVM process.
    Version:
    $Revision$
    Author:
    Shreedhar Ganapathy Date: Jan 12, 2004
    • Method Detail

      • getServerIdentityToken

        java.lang.String getServerIdentityToken()
        returns the serverIdentityToken pertaining to the process that owns this GMS instance
        Returns:
        java.lang.String
      • getGroupName

        java.lang.String getGroupName()
        returns the name of the group this context represents.
        Returns:
        the name of the group.
      • getGroupHandle

        com.sun.enterprise.ee.cms.core.GroupHandle getGroupHandle()
        returns Group handle
        Returns:
        Group handle
      • getRouter

        Router getRouter()
        returns the router
        Returns:
        router
      • getDistributedStateCache

        com.sun.enterprise.ee.cms.core.DistributedStateCache getDistributedStateCache()
      • join

        void join()
           throws com.sun.enterprise.ee.cms.core.GMSException
        Throws:
        com.sun.enterprise.ee.cms.core.GMSException
      • leave

        void leave​(com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType shutdownType)
      • isShuttingDown

        boolean isShuttingDown()
      • getStartTime

        long getStartTime()
      • announceGroupStartup

        void announceGroupStartup​(java.lang.String groupName,
                                  com.sun.enterprise.ee.cms.core.GMSConstants.groupStartupState startupState,
                                  java.util.List<java.lang.String> memberTokens)
      • announceGroupShutdown

        void announceGroupShutdown​(java.lang.String groupName,
                                   com.sun.enterprise.ee.cms.core.GMSConstants.shutdownState shutdownState)
      • addToSuspectList

        boolean addToSuspectList​(java.lang.String token)
      • removeFromSuspectList

        void removeFromSuspectList​(java.lang.String token)
      • isSuspected

        boolean isSuspected​(java.lang.String token)
      • getSuspectList

        java.util.List<java.lang.String> getSuspectList()
      • getGroupCommunicationProvider

        com.sun.enterprise.ee.cms.spi.GroupCommunicationProvider getGroupCommunicationProvider()
      • assumeGroupLeadership

        void assumeGroupLeadership()
        lets this instance become a group leader explicitly Typically this can be employed by an administrative member to become a group leader prior to shutting down a group of members simultaneously. For underlying Group Communication Providers who don't support the feature of a explicit leader role assumption, the implementation of this method would be a no-op.
      • isGroupBeingShutdown

        boolean isGroupBeingShutdown​(java.lang.String groupName)
      • isGroupStartup

        boolean isGroupStartup()
      • setGroupStartup

        void setGroupStartup​(boolean value)
      • getMemberType

        com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType getMemberType()
      • isWatchdog

        boolean isWatchdog()
      • getPreviousAliveAndReadyView

        com.sun.enterprise.ee.cms.core.AliveAndReadyView getPreviousAliveAndReadyView()
      • getCurrentAliveAndReadyView

        com.sun.enterprise.ee.cms.core.AliveAndReadyView getCurrentAliveAndReadyView()
      • getInstanceRejoins

        java.util.Map<java.lang.String,​com.sun.enterprise.ee.cms.core.RejoinSubevent> getInstanceRejoins()
      • setGroupStartupJoinMembers

        void setGroupStartupJoinMembers​(java.util.Set<java.lang.String> members)
      • isGroupStartupComplete

        boolean isGroupStartupComplete()
      • setGroupStartupState

        boolean setGroupStartupState​(java.lang.String member,
                                     com.sun.enterprise.ee.cms.spi.MemberStates state)