|
||||||||||
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 |
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. |
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 |
isShuttingDown()
|
boolean |
isSuspected(String token)
|
void |
join()
|
void |
leave(GMSConstants.shutdownType shutdownType)
|
void |
removeFromSuspectList(String token)
|
Method Detail |
---|
String getServerIdentityToken()
String getGroupName()
GroupHandle getGroupHandle()
Router getRouter()
ViewWindow getViewWindow()
DistributedStateCache getDistributedStateCache()
void join() throws GMSException
GMSException
void leave(GMSConstants.shutdownType shutdownType)
boolean isShuttingDown()
long getStartTime()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |