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 Details

  • Method Details

    • expectedNodeNames

      public Set<String> expectedNodeNames()
    • operationId

      public UUID operationId()
    • onUpdate

      public CompletableFuture<Void> onUpdate(org.apache.ignite.internal.metastorage.WatchEvent event)
      Specified by:
      onUpdate in interface org.apache.ignite.internal.metastorage.WatchListener
    • onComplete

      public CompletableFuture<Void> onComplete(String nodeName)
      Called when a node has reported that it successfully completed operation locally. Once all node have reported completion, distributed operation is considered complete.
    • onFail

      public CompletableFuture<Void> onFail(String nodeName, @Nullable @Nullable String message)
      Called when a node has reported that it failed while doing operation locally.