com.sun.enterprise.ee.cms.impl.jxta
Class GMSContext
java.lang.Object
com.sun.enterprise.ee.cms.impl.common.GMSContextBase
com.sun.enterprise.ee.cms.impl.jxta.GMSContext
- All Implemented Interfaces:
- GMSContext
public class GMSContext
- extends GMSContextBase
- Version:
- $Revision: 1.17 $
- Author:
- Shreedhar Ganapathy
Date: Jun 26, 2006
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GMSContext
public GMSContext(String serverToken,
String groupName,
GroupManagementService.MemberType memberType,
Properties configProperties)
createDistributedStateCache
protected void createDistributedStateCache()
- Specified by:
createDistributedStateCache
in class GMSContextBase
getGroupHandle
public GroupHandle getGroupHandle()
- returns Group handle
- Returns:
- Group handle
getDistributedStateCache
public DistributedStateCache getDistributedStateCache()
join
public void join()
throws GMSException
- Throws:
GMSException
leave
public void leave(GMSConstants.shutdownType shutdownType)
getStartTime
public long getStartTime()
announceGroupShutdown
public void announceGroupShutdown(String groupName,
GMSConstants.shutdownState shutdownState)
addToSuspectList
public boolean addToSuspectList(String token)
removeFromSuspectList
public void removeFromSuspectList(String token)
isSuspected
public boolean isSuspected(String token)
getSuspectList
public List<String> getSuspectList()
getShutdownHelper
public ShutdownHelper getShutdownHelper()
getGroupCommunicationProvider
public GroupCommunicationProvider getGroupCommunicationProvider()
getViewWindow
public ViewWindow getViewWindow()
assumeGroupLeadership
public void assumeGroupLeadership()
- Description copied from interface:
GMSContext
- 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.
Copyright © 2003 Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.