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 FormModifier 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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
enabledSmartExternalizableWithReference
public 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 GenericEntry
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
Copyright © GigaSpaces.