com.caucho.cluster
Class ClusterVoteManager

java.lang.Object
  extended by com.caucho.cluster.ClusterVoteManager

@ApplicationScoped
@Configurable
public class ClusterVoteManager
extends java.lang.Object

Distributed vote manager.


Constructor Summary
ClusterVoteManager()
           
ClusterVoteManager(java.lang.String name)
           
 
Method Summary
 ClusterServer electServer(java.lang.String name)
          Selects a cluster owner
 java.lang.String getName()
          Returns the name of the lock.
 void init()
          Initialize the lock.
 void setGuid(java.lang.String guid)
           
 void setName(java.lang.String name)
          Assigns the name of the lock.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClusterVoteManager

public ClusterVoteManager()

ClusterVoteManager

public ClusterVoteManager(java.lang.String name)
Method Detail

getName

public java.lang.String getName()
Returns the name of the lock.


setName

@Configurable
public void setName(java.lang.String name)
Assigns the name of the lock. A name is mandatory and must be unique among open locks.


setGuid

public void setGuid(java.lang.String guid)

electServer

public ClusterServer electServer(java.lang.String name)
Selects a cluster owner


init

@PostConstruct
public void init()
Initialize the lock.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object