Package wol
Class WakeOnLan
- java.lang.Object
-
- wol.WakeOnLan
-
public class WakeOnLan extends Object
The 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.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.
-
-
-
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
-
-