Package alluxio.cli.table.command
Class AbstractTableCommand
- java.lang.Object
-
- alluxio.cli.table.command.AbstractTableCommand
-
- All Implemented Interfaces:
alluxio.cli.Command,java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
AttachDatabaseCommand,DetachDatabaseCommand,ListDatabasesCommand,SyncDatabaseCommand,TransformStatusCommand,TransformTableCommand
public abstract class AbstractTableCommand extends java.lang.Object implements alluxio.cli.CommandA class which should be extended when implementing commands for theTableShell.
-
-
Constructor Summary
Constructors Constructor Description AbstractTableCommand(alluxio.conf.AlluxioConfiguration conf, alluxio.client.table.TableMasterClient client)Creates a new instance ofAbstractTableCommand.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract java.lang.StringgetCommandName()abstract intrun(org.apache.commons.cli.CommandLine cl)abstract voidvalidateArgs(org.apache.commons.cli.CommandLine cl)
-
-
-
Constructor Detail
-
AbstractTableCommand
public AbstractTableCommand(alluxio.conf.AlluxioConfiguration conf, alluxio.client.table.TableMasterClient client)Creates a new instance ofAbstractTableCommand.- Parameters:
conf- the alluxio configurationclient- the client interface which can be used to make RPCs against the table master
-
-
Method Detail
-
getCommandName
public abstract java.lang.String getCommandName()
- Specified by:
getCommandNamein interfacealluxio.cli.Command
-
validateArgs
public abstract void validateArgs(org.apache.commons.cli.CommandLine cl) throws alluxio.exception.status.InvalidArgumentException- Specified by:
validateArgsin interfacealluxio.cli.Command- Throws:
alluxio.exception.status.InvalidArgumentException
-
run
public abstract int run(org.apache.commons.cli.CommandLine cl) throws alluxio.exception.AlluxioException, java.io.IOException- Specified by:
runin interfacealluxio.cli.Command- Throws:
alluxio.exception.AlluxioExceptionjava.io.IOException
-
-