Package wol

Class WakeOnLan


  • public class WakeOnLan
    extends java.lang.Object
    The only purpose of this class is to wake up a machine from the commandline using WakeUpUtil
    Author:
    Steffen Moldaner
    See Also:
    WakeUpUtil
    • Constructor Summary

      Constructors 
      Constructor Description
      WakeOnLan​(com.martiansoftware.jsap.JSAPResult cmdConfig)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected static com.martiansoftware.jsap.JSAP getOptions()  
      static void main​(java.lang.String[] args)
      The WakeOnLan main method.
      protected void printHelpAndExit()
      Prints the commandline help and exits with code 0.
      protected void printHelpAndExit​(int exitCode)
      Prints the commandline help and exists with the given code.
      protected void printVersionAndExit()
      Print the WakeOnLan version and exit.
      • Methods inherited from class java.lang.Object

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

      • WakeOnLan

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

      • main

        public static void main​(java.lang.String[] args)
                         throws com.martiansoftware.jsap.JSAPException,
                                java.io.IOException
        The WakeOnLan main method.
        Parameters:
        args - an array containing the commandline arguments, if any
        Throws:
        com.martiansoftware.jsap.JSAPException
        java.io.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