public class ActiveElectionState extends GenericEntry implements ServiceControlled, SmartExternalizable
ActiveElectionManager and modified on Naming service if the candidate service
aquire a new state. The following states are available:
NOTE: This state is ServiceControlled and can be modified only by service itself.
ActiveElectionManager,
ActiveElectionState.State,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
static class |
ActiveElectionState.State
Service states
|
| Constructor and Description |
|---|
ActiveElectionState()
public no-args constructor
|
ActiveElectionState(ActiveElectionState.State state)
construct this ActiveElectionState with the given State
|
| Modifier and Type | Method and Description |
|---|---|
Entry |
fromString(String state) |
ActiveElectionState.State |
getState() |
void |
readExternal(ObjectInput in) |
void |
setState(ActiveElectionState.State state) |
void |
writeExternal(ObjectOutput out) |
equals, equals, hashCode, hashCode, toString, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitenabledSmartExternalizableWithReferencepublic String state
public ActiveElectionState()
public ActiveElectionState(ActiveElectionState.State state)
state - State of this active electionpublic ActiveElectionState.State getState()
public void setState(ActiveElectionState.State state)
public Entry fromString(String state)
fromString in class GenericEntrypublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionCopyright © GigaSpaces.