org.apache.hadoop.hbase.snapshot
Class ClientSnapshotDescriptionUtils

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

@InterfaceAudience.Private
public 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
ClientSnapshotDescriptionUtils()
           
 
Method Summary
static void assertSnapshotRequestIsValid(HBaseProtos.SnapshotDescription snapshot)
          Check to make sure that the description of the snapshot requested is valid
static String toString(HBaseProtos.SnapshotDescription ssd)
          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 Detail

ClientSnapshotDescriptionUtils

public ClientSnapshotDescriptionUtils()
Method Detail

assertSnapshotRequestIsValid

public static void assertSnapshotRequestIsValid(HBaseProtos.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(HBaseProtos.SnapshotDescription ssd)
Returns a single line (no \n) representation of snapshot metadata. Use this instead of AbstractMessage.toString(). We don't replace SnapshotDescrpition's toString because it is auto-generated by protoc.

Parameters:
ssd -
Returns:
Single line string with a summary of the snapshot parameters


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.