wol
Class WakeOnLan

java.lang.Object
  extended bywol.WakeOnLan

public class WakeOnLan
extends 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
WakeOnLan(JSAPResult cmdConfig)
           
 
Method Summary
protected static JSAP getOptions()
           
static void main(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(JSAPResult cmdConfig)
          throws JSAPException,
                 IOException
Method Detail

main

public static void main(String[] args)
                 throws JSAPException,
                        IOException
The WakeOnLan main method.

Parameters:
args - an array containing the commandline arguments, if any
Throws:
JSAPException
IOException

printHelpAndExit

protected void printHelpAndExit(int exitCode)
                         throws JSAPException
Prints the commandline help and exists with the given code.

Parameters:
exitCode - the exit code
Throws:
JSAPException

printVersionAndExit

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


printHelpAndExit

protected void printHelpAndExit()
                         throws JSAPException
Prints the commandline help and exits with code 0.

Throws:
JSAPException

getOptions

protected static JSAP getOptions()
                          throws JSAPException
Throws:
JSAPException