java.lang.Object
org.gridgain.internal.snapshots.communication.metastorage.LocalSnapshotState

public class LocalSnapshotState extends Object
Represents a Local Snapshot State, that is, state of Snapshot operation specific to a given node.

Local States are generated and updated by every participating node and is used to track the progress of a Snapshot Operation on that particular node.

See Also:
  • Constructor Details

    • LocalSnapshotState

      public LocalSnapshotState(SnapshotStatus status, long numRows)
      Constructor.
      Parameters:
      status - Snapshot status on this node.
      numRows - Number of processed rows.
    • LocalSnapshotState

      public LocalSnapshotState(SnapshotStatus status, long numRows, @Nullable @Nullable String errorMessage)
      Constructor for a failed operation result.
      Parameters:
      status - Snapshot status on this node.
      numRows - Number of processed rows.
      errorMessage - Error message that describes the reason of the failure.
  • Method Details

    • status

      public SnapshotStatus status()
    • numRows

      public long numRows()
    • errorMessage

      @Nullable public @Nullable String errorMessage()
    • toString

      public String toString()
      Overrides:
      toString in class Object