Class SyncDatabaseCommand

  • All Implemented Interfaces:
    alluxio.cli.Command, java.io.Closeable, java.lang.AutoCloseable

    public class SyncDatabaseCommand
    extends AbstractTableCommand
    A command which can be used to sync a database with the underlying udb.
    • Constructor Summary

      Constructors 
      Constructor Description
      SyncDatabaseCommand​(alluxio.conf.AlluxioConfiguration conf, alluxio.client.table.TableMasterClient client)
      Creates a new instance of SyncDatabaseCommand.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getCommandName()  
      java.lang.String getDescription()  
      java.lang.String getUsage()  
      int run​(org.apache.commons.cli.CommandLine cli)  
      void validateArgs​(org.apache.commons.cli.CommandLine cli)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface alluxio.cli.Command

        close, getOptions, getSubCommands, hasSubCommand, parseAndValidateArgs
    • Constructor Detail

      • SyncDatabaseCommand

        public SyncDatabaseCommand​(alluxio.conf.AlluxioConfiguration conf,
                                   alluxio.client.table.TableMasterClient client)
        Creates a new instance of SyncDatabaseCommand.
        Parameters:
        conf - alluxio configuration
        client - the table master client
    • Method Detail

      • validateArgs

        public void validateArgs​(org.apache.commons.cli.CommandLine cli)
                          throws alluxio.exception.status.InvalidArgumentException
        Specified by:
        validateArgs in interface alluxio.cli.Command
        Specified by:
        validateArgs in class AbstractTableCommand
        Throws:
        alluxio.exception.status.InvalidArgumentException
      • getCommandName

        public java.lang.String getCommandName()
        Specified by:
        getCommandName in interface alluxio.cli.Command
        Specified by:
        getCommandName in class AbstractTableCommand
      • getUsage

        public java.lang.String getUsage()
      • getDescription

        public java.lang.String getDescription()
      • run

        public int run​(org.apache.commons.cli.CommandLine cli)
                throws alluxio.exception.status.AlluxioStatusException
        Specified by:
        run in interface alluxio.cli.Command
        Specified by:
        run in class AbstractTableCommand
        Throws:
        alluxio.exception.status.AlluxioStatusException