Class RunScript

java.lang.Object
  extended by RunScript
All Implemented Interfaces:
ClientMessageWriter

public class RunScript
extends java.lang.Object
implements ClientMessageWriter

This class defines a specialized SLAMD client that may be used to execute SLAMD scripts without the need for a SLAMD server to be running and without the need for a configuration file as would be used by the standalone client.

Author:
Neil A. Wilson

Constructor Summary
RunScript(java.lang.String[] args)
          Create a new standalone client instance, process the configuration, and run the specified job.
 
Method Summary
 void displayUsage()
          Writes usage information for this program to standard error.
static void main(java.lang.String[] args)
          Create a new standalone client instance and pass all the arguments to it.
 boolean usingVerboseMode()
          Indicates whether the message writer is using verbose mode and therefore will display messages written with the writeVerbose method.
 void writeMessage(java.lang.String message)
          Writes information logged during job processing to standard output.
 void writeVerbose(java.lang.String message)
          Writes verbose information logged during job processing to standard output (if verbose logging is enabled).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RunScript

public RunScript(java.lang.String[] args)
Create a new standalone client instance, process the configuration, and run the specified job.

Parameters:
args - The set of arguments provided on the command line.
Method Detail

main

public static void main(java.lang.String[] args)
Create a new standalone client instance and pass all the arguments to it.

Parameters:
args - The set of arguments provided on the command line.

displayUsage

public void displayUsage()
Writes usage information for this program to standard error.


writeMessage

public void writeMessage(java.lang.String message)
Writes information logged during job processing to standard output.

Specified by:
writeMessage in interface ClientMessageWriter
Parameters:
message - The message to be written to standard output.

writeVerbose

public void writeVerbose(java.lang.String message)
Writes verbose information logged during job processing to standard output (if verbose logging is enabled).

Specified by:
writeVerbose in interface ClientMessageWriter
Parameters:
message - The message to be written to standard output.

usingVerboseMode

public boolean usingVerboseMode()
Indicates whether the message writer is using verbose mode and therefore will display messages written with the writeVerbose method.

Specified by:
usingVerboseMode in interface ClientMessageWriter
Returns:
true if the message writer is using verbose mode, or false if not.