org.apache.hadoop.hbase.snapshot
Class CreateSnapshot

java.lang.Object
  extended by org.apache.hadoop.hbase.util.AbstractHBaseTool
      extended by org.apache.hadoop.hbase.snapshot.CreateSnapshot
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.util.Tool

public class CreateSnapshot
extends AbstractHBaseTool

This is a command line class that will snapshot a given table.


Field Summary
 
Fields inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
cmdLineArgs, conf, EXIT_FAILURE, EXIT_SUCCESS
 
Constructor Summary
CreateSnapshot()
           
 
Method Summary
protected  void addOptions()
          Override this to add command-line options using AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String) and similar methods.
protected  int doWork()
          The "main function" of the tool
static void main(String[] args)
           
protected  void processOptions(org.apache.commons.cli.CommandLine cmd)
          This method is called to process the options after they have been parsed.
 
Methods inherited from class org.apache.hadoop.hbase.util.AbstractHBaseTool
addOptNoArg, addOptNoArg, addOptWithArg, addOptWithArg, addRequiredOptWithArg, addRequiredOptWithArg, doStaticMain, getConf, parseArgs, parseInt, parseLong, printUsage, printUsage, run, setConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateSnapshot

public CreateSnapshot()
Method Detail

main

public static void main(String[] args)

addOptions

protected void addOptions()
Description copied from class: AbstractHBaseTool
Override this to add command-line options using AbstractHBaseTool.addOptWithArg(java.lang.String, java.lang.String) and similar methods.

Specified by:
addOptions in class AbstractHBaseTool

processOptions

protected void processOptions(org.apache.commons.cli.CommandLine cmd)
Description copied from class: AbstractHBaseTool
This method is called to process the options after they have been parsed.

Specified by:
processOptions in class AbstractHBaseTool

doWork

protected int doWork()
              throws Exception
Description copied from class: AbstractHBaseTool
The "main function" of the tool

Specified by:
doWork in class AbstractHBaseTool
Throws:
Exception


Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.