public class GMSContextImpl extends GMSContextBase
gmsMember, gmsMemberType, groupName, logger, memberType, router, serverToken, shutdownHelper, shuttingDown, startTime, suspectList| Constructor and Description |
|---|
GMSContextImpl(String serverToken,
String groupName,
com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType memberType,
Properties configProperties) |
| 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.
|
protected void |
createDistributedStateCache() |
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
|
Map<String,com.sun.enterprise.ee.cms.core.RejoinSubevent> |
getInstanceRejoins() |
com.sun.enterprise.ee.cms.core.AliveAndReadyView |
getPreviousAliveAndReadyView() |
ShutdownHelper |
getShutdownHelper() |
long |
getStartTime() |
List<String> |
getSuspectList() |
ViewWindow |
getViewWindow() |
boolean |
isGroupBeingShutdown(String groupName) |
boolean |
isGroupStartup() |
boolean |
isGroupStartupComplete() |
boolean |
isSuspected(String token) |
boolean |
isWatchdog() |
void |
join() |
void |
leave(com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType shutdownType) |
int |
outstandingNotifications() |
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) |
getGroupName, getMemberType, getMemberType, getRouter, getServerIdentityToken, isShuttingDownpublic GMSContextImpl(String serverToken, String groupName, com.sun.enterprise.ee.cms.core.GroupManagementService.MemberType memberType, Properties configProperties)
public GMSMonitor getGMSMonitor()
getGMSMonitor in interface GMSContextgetGMSMonitor in class GMSContextBaseprotected void createDistributedStateCache()
createDistributedStateCache in class GMSContextBasepublic com.sun.enterprise.ee.cms.core.GroupHandle getGroupHandle()
public com.sun.enterprise.ee.cms.core.DistributedStateCache getDistributedStateCache()
public void join()
throws com.sun.enterprise.ee.cms.core.GMSException
com.sun.enterprise.ee.cms.core.GMSExceptionpublic void leave(com.sun.enterprise.ee.cms.core.GMSConstants.shutdownType shutdownType)
public long getStartTime()
public void announceGroupShutdown(String groupName, com.sun.enterprise.ee.cms.core.GMSConstants.shutdownState shutdownState)
public void announceGroupStartup(String groupName, com.sun.enterprise.ee.cms.core.GMSConstants.groupStartupState startupState, List<String> memberTokens)
public boolean addToSuspectList(String token)
public void removeFromSuspectList(String token)
public boolean isSuspected(String token)
public ShutdownHelper getShutdownHelper()
public com.sun.enterprise.ee.cms.spi.GroupCommunicationProvider getGroupCommunicationProvider()
public ViewWindow getViewWindow()
public void assumeGroupLeadership()
GMSContextpublic boolean isGroupBeingShutdown(String groupName)
public boolean isGroupStartup()
public void setGroupStartup(boolean value)
public boolean isWatchdog()
public int outstandingNotifications()
public com.sun.enterprise.ee.cms.core.AliveAndReadyView getPreviousAliveAndReadyView()
public com.sun.enterprise.ee.cms.core.AliveAndReadyView getCurrentAliveAndReadyView()
public Map<String,com.sun.enterprise.ee.cms.core.RejoinSubevent> getInstanceRejoins()
public AliveAndReadyViewWindow getAliveAndReadyViewWindow()
getAliveAndReadyViewWindow in interface GMSContextgetAliveAndReadyViewWindow in class GMSContextBasepublic boolean isGroupStartupComplete()
public boolean setGroupStartupState(String member, com.sun.enterprise.ee.cms.spi.MemberStates state)
Copyright © 2017–2020 Eclipse Foundation. All rights reserved.