Package wol

Class WakeOnLan

    • Constructor Detail

      • WakeOnLan

        public WakeOnLan​(com.martiansoftware.jsap.JSAPResult cmdConfig)
                  throws com.martiansoftware.jsap.JSAPException,
                         IOException
        Throws:
        com.martiansoftware.jsap.JSAPException
        IOException
    • Method Detail

      • main

        public static void main​(String[] args)
                         throws com.martiansoftware.jsap.JSAPException,
                                IOException
        The WakeOnLan main method.
        Parameters:
        args - an array containing the commandline arguments, if any
        Throws:
        com.martiansoftware.jsap.JSAPException
        IOException
      • printHelpAndExit

        protected void printHelpAndExit​(int exitCode)
                                 throws com.martiansoftware.jsap.JSAPException
        Prints the commandline help and exists with the given code.
        Parameters:
        exitCode - the exit code
        Throws:
        com.martiansoftware.jsap.JSAPException
      • printVersionAndExit

        protected void printVersionAndExit()
        Print the WakeOnLan version and exit.
      • printHelpAndExit

        protected void printHelpAndExit()
                                 throws com.martiansoftware.jsap.JSAPException
        Prints the commandline help and exits with code 0.
        Throws:
        com.martiansoftware.jsap.JSAPException
      • getOptions

        protected static com.martiansoftware.jsap.JSAP getOptions()
                                                           throws com.martiansoftware.jsap.JSAPException
        Throws:
        com.martiansoftware.jsap.JSAPException