public class JSpaceState extends Object implements ISpaceState, Serializable
Constructor and Description |
---|
JSpaceState()
Create a service state object
|
Modifier and Type | Method and Description |
---|---|
static String |
convertToString(Integer state) |
int |
getState()
Get the current state of the service
|
boolean |
isAborted()
Check if we're aborting or aborted
|
boolean |
isStarted() |
boolean |
isStopped() |
boolean |
isTerminated()
Check if we're terminated completely, abort process is considered complete
|
void |
setState(int newState)
Set the state of the service
|
int |
verifyTransition(int newState)
Verify the state transition, checking if the proposed new state is allowed from the current
state.
|
public int getState()
public void setState(int newState)
newState
- - The new statepublic int verifyTransition(int newState)
newState
- - The new state to checkIllegalStateException
- - If the proposed newState is not allowedpublic boolean isTerminated()
true
public boolean isAborted()
true
public boolean isStopped()
public boolean isStarted()
Copyright © GigaSpaces.