|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface HAPartition.HAPartitionStateTransfer
State management is highly important for clustered services. Consequently, services that wish to manage their state need to subscribe to state transfer events. When a service is started on a cluster node, state is pushed from another node to the new node. When another node starts, the node may be asked to provide its state to initialise the newly started node.
Method Summary | |
---|---|
Serializable |
getCurrentState()
Called when a new node needs to be initialized. |
void |
setCurrentState(Serializable newState)
This callback method is called when a new service starts on a new node; the state that it should hold is transfered to it through this callback. |
Method Detail |
---|
Serializable getCurrentState()
void setCurrentState(Serializable newState)
newState
- The serialized representation of the state of the new service.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |