|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Fallible
Instances of classes implementing this interface maintain a fail state, i.e. information about the availability of the object.
| Field Summary | |
|---|---|
static int |
DEAD
Fail state indicating that the object is dead and recovery is not possible. |
static int |
DOWN
Fail state indicating that the object is not dead, but is temporarily not accessible. |
static int |
OK
Fail state which indicates that the object is operating normally. |
| Method Summary | |
|---|---|
int |
getFailState()
Returns the state of this object. |
boolean |
isUp()
Convenience method to check if the node is up and running |
void |
setFailState(int failState)
Sets the fails state of this object. |
| Field Detail |
|---|
static final int OK
static final int DEAD
static final int DOWN
| Method Detail |
|---|
int getFailState()
Fallible.
void setFailState(int failState)
Fallible.
boolean isUp()
getFailState()==OK
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||