Class GetJob

java.lang.Object
  extended by GetJob

public class GetJob
extends java.lang.Object

This class defines a utility that may be used to retrieve information about a job or optimizing job in the SLAMD server. It does this by communicating with the administrative interface over HTTP to ensure that all appropriate validity checking is performed, and that any required authentication is honored.

Author:
Neil A. Wilson

Constructor Summary
GetJob(java.lang.String[] args)
          Parses the provided command-line arguments.
 
Method Summary
 void debug(java.lang.String message)
          Prints the provided message if the program is operating in verbose mode.
static void displayUsage()
          Displays usage information for this program.
static void main(java.lang.String[] args)
          Invokes the constructor and provides it with the command-line arguments.
 boolean sendRequest()
          Sends the request to the SLAMD server and parses the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetJob

public GetJob(java.lang.String[] args)
Parses the provided command-line arguments.

Parameters:
args - The command-line arguments provided to this program.
Method Detail

main

public static void main(java.lang.String[] args)
Invokes the constructor and provides it with the command-line arguments.

Parameters:
args - The command-line arguments provided to this program.

sendRequest

public boolean sendRequest()
Sends the request to the SLAMD server and parses the response.

Returns:
true if the job information was retrieved successfully, or false if not.

debug

public void debug(java.lang.String message)
Prints the provided message if the program is operating in verbose mode.

Parameters:
message - The message to be printed.

displayUsage

public static void displayUsage()
Displays usage information for this program.