Package org.apache.hadoop.hbase.snapshot
Class ClientSnapshotDescriptionUtils
java.lang.Object
org.apache.hadoop.hbase.snapshot.ClientSnapshotDescriptionUtils
Class to help with dealing with a snapshot description on the client side. There is a
corresponding class on the server side.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertSnapshotRequestIsValid
(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot) Check to make sure that the description of the snapshot requested is validstatic String
toString
(org.apache.hadoop.hbase.shaded.protobuf.generated.SnapshotProtos.SnapshotDescription snapshot) Returns a single line (no \n) representation of snapshot metadata.
-
Constructor Details
-
ClientSnapshotDescriptionUtils
private ClientSnapshotDescriptionUtils()
-
-
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 ofAbstractMessage.toString()
. We don't replaceHBaseProtos.SnapshotDescription
'stoString
, because it is auto-generated by protoc.- Parameters:
snapshot
- description of the snapshot- Returns:
- single line string with a summary of the snapshot parameters
-