|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
---|---|
boolean |
addToSuspectList(String token)
|
void |
announceGroupShutdown(String groupName,
GMSConstants.shutdownState shutdownState)
|
void |
announceGroupStartup(String groupName,
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. |
DistributedStateCache |
getDistributedStateCache()
|
GroupCommunicationProvider |
getGroupCommunicationProvider()
|
GroupHandle |
getGroupHandle()
returns Group handle |
String |
getGroupName()
returns the name of the group this context represents. |
GroupManagementService.MemberType |
getMemberType()
|
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()
|
boolean |
isGroupBeingShutdown(String groupName)
|
boolean |
isGroupStartup()
|
boolean |
isShuttingDown()
|
boolean |
isSuspected(String token)
|
boolean |
isWatchdog()
|
void |
join()
|
void |
leave(GMSConstants.shutdownType shutdownType)
|
void |
removeFromSuspectList(String token)
|
void |
setGroupStartup(boolean value)
|
Method Detail |
---|
String getServerIdentityToken()
String getGroupName()
GroupHandle getGroupHandle()
Router getRouter()
DistributedStateCache getDistributedStateCache()
void join() throws GMSException
GMSException
void leave(GMSConstants.shutdownType shutdownType)
boolean isShuttingDown()
long getStartTime()
void announceGroupStartup(String groupName, GMSConstants.groupStartupState startupState, List<String> memberTokens)
void announceGroupShutdown(String groupName, GMSConstants.shutdownState shutdownState)
boolean addToSuspectList(String token)
void removeFromSuspectList(String token)
boolean isSuspected(String token)
List<String> getSuspectList()
ShutdownHelper getShutdownHelper()
GroupCommunicationProvider getGroupCommunicationProvider()
void assumeGroupLeadership()
boolean isGroupBeingShutdown(String groupName)
boolean isGroupStartup()
void setGroupStartup(boolean value)
GroupManagementService.MemberType getMemberType()
boolean isWatchdog()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |