@ApplicationScoped @Configurable public class ClusterVoteManager extends java.lang.Object
Constructor and Description |
---|
ClusterVoteManager() |
ClusterVoteManager(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
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() |
public ClusterVoteManager()
public ClusterVoteManager(java.lang.String name)
public java.lang.String getName()
@Configurable public void setName(java.lang.String name)
public void setGuid(java.lang.String guid)
public ClusterServer electServer(java.lang.String name)
@PostConstruct public void init()
public java.lang.String toString()
toString
in class java.lang.Object