Class ClientSnapshotDescriptionUtils

java.lang.Object
org.apache.hadoop.hbase.snapshot.ClientSnapshotDescriptionUtils

@Private public final class ClientSnapshotDescriptionUtils extends Object
Class to help with dealing with a snapshot description on the client side. There is a corresponding class on the server side.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    assertSnapshotRequestIsValid(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot)
    Check to make sure that the description of the snapshot requested is valid
    static String
    toString(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot)
    Returns a single line (no \n) representation of snapshot metadata.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • assertSnapshotRequestIsValid

      public static void assertSnapshotRequestIsValid(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot) throws IllegalArgumentException
      Check to make sure that the description of the snapshot requested is valid
      Parameters:
      snapshot - description of the snapshot
      Throws:
      IllegalArgumentException - if the name of the snapshot or the name of the table to snapshot are not valid names
    • toString

      public static String toString(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot)
      Returns a single line (no \n) representation of snapshot metadata. Use this instead of AbstractMessage.toString(). We don't replace HBaseProtos.SnapshotDescription's toString, because it is auto-generated by protoc.
      Parameters:
      snapshot - description of the snapshot
      Returns:
      single line string with a summary of the snapshot parameters