public interface GMSContext
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToSuspectList(String token) |
void |
announceGroupShutdown(String groupName,
com.sun.enterprise.ee.cms.core.GMSConstants.shutdownState shutdownState) |
void |
announceGroupStartup(String groupName,
com.sun.enterprise.ee.cms.core.GMSConstants.groupStartupState startupState,
List<String> memberTokens) |
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.
|
AliveAndReadyViewWindow |
getAliveAndReadyViewWindow() |
com.sun.enterprise.ee.cms.core.AliveAndReadyView |
getCurrentAliveAndReadyView() |
com.sun.enterprise.ee.cms.core.DistributedStateCache |
getDistributedStateCache() |
GMSMonitor |
getGMSMonitor() |
com.sun.enterprise.ee.cms.spi.GroupCommunicationProvider |
getGroupCommunicationProvider() |
com.sun.enterprise.ee.cms.core.GroupHandle |
getGroupHandle()
returns Group handle
|
String |
getGroupName()
returns the name of the group this context represents.
|
Map<String,com.sun.enterprise.ee.cms.core.RejoinSubevent> |
getInstanceRejoins() |
com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType |
getMemberType() |
com.sun.enterprise.ee.cms.core.AliveAndReadyView |
getPreviousAliveAndReadyView() |
Router |
getRouter()
returns the router
|
String |
getServerIdentityToken()
returns the serverIdentityToken pertaining to the process that owns this GMS instance
|
ShutdownHelper |
getShutdownHelper() |
long |
getStartTime() |
List<String> |
getSuspectList() |
ViewWindow |
getViewWindow() |
boolean |
isGroupBeingShutdown(String groupName) |
boolean |
isGroupStartup() |
boolean |
isGroupStartupComplete() |
boolean |
isShuttingDown() |
boolean |
isSuspected(String token) |
boolean |
isWatchdog() |
void |
join() |
void |
leave(com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType shutdownType) |
void |
removeFromSuspectList(String token) |
void |
setGroupStartup(boolean value) |
void |
setGroupStartupJoinMembers(Set<String> members) |
boolean |
setGroupStartupState(String member,
com.sun.enterprise.ee.cms.spi.MemberStates state) |
String getServerIdentityToken()
String getGroupName()
com.sun.enterprise.ee.cms.core.GroupHandle getGroupHandle()
Router getRouter()
ViewWindow getViewWindow()
com.sun.enterprise.ee.cms.core.DistributedStateCache getDistributedStateCache()
GMSMonitor getGMSMonitor()
void join() throws com.sun.enterprise.ee.cms.core.GMSException
com.sun.enterprise.ee.cms.core.GMSExceptionvoid leave(com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType shutdownType)
boolean isShuttingDown()
long getStartTime()
void announceGroupStartup(String groupName, com.sun.enterprise.ee.cms.core.GMSConstants.groupStartupState startupState, List<String> memberTokens)
void announceGroupShutdown(String groupName, com.sun.enterprise.ee.cms.core.GMSConstants.shutdownState shutdownState)
boolean addToSuspectList(String token)
void removeFromSuspectList(String token)
boolean isSuspected(String token)
ShutdownHelper getShutdownHelper()
com.sun.enterprise.ee.cms.spi.GroupCommunicationProvider getGroupCommunicationProvider()
void assumeGroupLeadership()
boolean isGroupBeingShutdown(String groupName)
boolean isGroupStartup()
void setGroupStartup(boolean value)
com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType getMemberType()
boolean isWatchdog()
com.sun.enterprise.ee.cms.core.AliveAndReadyView getPreviousAliveAndReadyView()
com.sun.enterprise.ee.cms.core.AliveAndReadyView getCurrentAliveAndReadyView()
AliveAndReadyViewWindow getAliveAndReadyViewWindow()
boolean isGroupStartupComplete()
boolean setGroupStartupState(String member, com.sun.enterprise.ee.cms.spi.MemberStates state)
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.