Class PitrLocalStateWatch
java.lang.Object
org.gridgain.internal.pitr.metastorage.PitrLocalStateWatch
- All Implemented Interfaces:
org.apache.ignite.internal.metastorage.WatchListener
public class PitrLocalStateWatch
extends Object
implements org.apache.ignite.internal.metastorage.WatchListener
Watches the metastorage for changes in the local PITR states and updates global state.
-
Constructor Summary
ConstructorsConstructorDescriptionPitrLocalStateWatch(PitrManagerContext context, CoordinatorState coordinatorState, PitrGlobalState initialState) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiononComplete(String nodeName) Called when a node has reported that it successfully completed operation locally.Called when a node has reported that it failed while doing operation locally.onUpdate(org.apache.ignite.internal.metastorage.WatchEvent event)
-
Constructor Details
-
PitrLocalStateWatch
public PitrLocalStateWatch(PitrManagerContext context, CoordinatorState coordinatorState, PitrGlobalState initialState) Constructor.- Parameters:
context- Manager context.initialState- Initial local state.
-
-
Method Details
-
expectedNodeNames
-
operationId
-
onUpdate
- Specified by:
onUpdatein interfaceorg.apache.ignite.internal.metastorage.WatchListener
-
onComplete
Called when a node has reported that it successfully completed operation locally. Once all node have reported completion, distributed operation is considered complete. -
onFail
Called when a node has reported that it failed while doing operation locally.
-