public class State extends GenericEntry implements Externalizable
The State entry represents the current service state. The State has primary state - @see
com.j_spaces.core.ISpaceState and secondary states. Secondary states are internal states and
shouldn't be used in space lookup.
electable - state that indicates whether the space can participate in election . replicable -
state that indicates whether the space is ready for replication.
ISpaceState
,
Serialized FormModifier and Type | Field and Description |
---|---|
Boolean |
electable |
Boolean |
replicable |
String |
state |
Constructor and Description |
---|
State()
Construct a State with null attributes
|
State(int state)
Construct a State
|
State(int state,
Boolean electable,
Boolean replicable) |
State(String state)
Construct a State
|
Modifier and Type | Method and Description |
---|---|
Entry |
fromString(String state) |
Boolean |
getReplicable() |
Boolean |
isElectable() |
void |
readExternal(ObjectInput in) |
void |
setElectable(Boolean electable)
This state is changed to true on space startup and set to false only at space shutdown or
stop
|
State |
setReplicable(Boolean replicable)
This state is set to true after space recovery and set to false when space is stopped or
shutdown
|
void |
writeExternal(ObjectOutput out) |
public String state
public Boolean electable
public Boolean replicable
public State(String state)
state
- A state valuepublic State(int state)
public State()
public Boolean isElectable()
public void setElectable(Boolean electable)
public Boolean getReplicable()
public State setReplicable(Boolean replicable)
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.