Class Starter


  • public class Starter
    extends Command
    Author:
    Simon Walter , Markus Neumann
    • Field Summary

      • Fields inherited from class org.opennms.features.jmxconfiggenerator.commands.Command

        LOG
    • Constructor Summary

      Constructors 
      Constructor Description
      Starter()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void execute()
      Each subclass should implement an execute methode to implement its behaviour.
      protected java.lang.String getDescription()
      Returns the description (used for the usage) of the command.
      protected static void handleException​(java.lang.Exception ex, ConsoleLogAdapter logAdapter)  
      static void main​(java.lang.String[] args)  
      void printUsage()
      Prints the usage of the command.
      protected void validate​(org.kohsuke.args4j.CmdLineParser parser)  
      • Methods inherited from class java.lang.Object

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

      • Starter

        public Starter()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
      • handleException

        protected static void handleException​(java.lang.Exception ex,
                                              ConsoleLogAdapter logAdapter)
      • execute

        protected void execute()
                        throws CmdRunException,
                               org.kohsuke.args4j.CmdLineException
        Description copied from class: Command
        Each subclass should implement an execute methode to implement its behaviour.
        Specified by:
        execute in class Command
        Throws:
        org.kohsuke.args4j.CmdLineException
        CmdRunException
      • validate

        protected void validate​(org.kohsuke.args4j.CmdLineParser parser)
                         throws org.kohsuke.args4j.CmdLineException
        Specified by:
        validate in class Command
        Throws:
        org.kohsuke.args4j.CmdLineException
      • getDescription

        protected java.lang.String getDescription()
        Description copied from class: Command
        Returns the description (used for the usage) of the command.
        Specified by:
        getDescription in class Command
        Returns:
        the command's description (used for the usage).
      • printUsage

        public void printUsage()
        Description copied from class: Command
        Prints the usage of the command.
        Overrides:
        printUsage in class Command