Package wol
Class WakeOnLan
- java.lang.Object
-
- wol.WakeOnLan
-
public class WakeOnLan extends java.lang.ObjectThe only purpose of this class is to wake up a machine from the commandline usingWakeUpUtil- 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.JSAPgetOptions()static voidmain(java.lang.String[] args)The WakeOnLan main method.protected voidprintHelpAndExit()Prints the commandline help and exits with code 0.protected voidprintHelpAndExit(int exitCode)Prints the commandline help and exists with the given code.protected voidprintVersionAndExit()Print the WakeOnLan version and exit.
-
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws com.martiansoftware.jsap.JSAPException, java.io.IOExceptionThe WakeOnLan main method.- Parameters:
args- an array containing the commandline arguments, if any- Throws:
com.martiansoftware.jsap.JSAPExceptionjava.io.IOException
-
printHelpAndExit
protected void printHelpAndExit(int exitCode) throws com.martiansoftware.jsap.JSAPExceptionPrints 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.JSAPExceptionPrints 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
-
-