Class ServerCommandLine


  • public abstract class ServerCommandLine
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void doMain​(java.lang.String[] args)
      Parse and run the given command line.
      protected abstract java.lang.String getUsage()
      Implementing subclasses should return a usage string to print out
      protected abstract int run​(java.lang.String[] args)
      run command
      protected void usage​(java.lang.String message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServerCommandLine

        public ServerCommandLine()
    • Method Detail

      • getUsage

        protected abstract java.lang.String getUsage()
        Implementing subclasses should return a usage string to print out
        Returns:
        usage
      • run

        protected abstract int run​(java.lang.String[] args)
                            throws java.lang.Exception
        run command
        Parameters:
        args - system args
        Returns:
        return 0 if exec success
        Throws:
        java.lang.Exception
      • usage

        protected void usage​(java.lang.String message)
      • doMain

        public void doMain​(java.lang.String[] args)
        Parse and run the given command line.
        Parameters:
        args - system args