proper.remote
Class Job

java.lang.Object
  extended by proper.remote.Job

public class Job
extends java.lang.Object

This class encapsulates a job and defines some methods to access its data.
A Job consists of colon separated commands, where the first one is always a class with necessary parameters (but can be empty). The following commands are of the form "request data[ data[ data]]". Here are some examples:

Version:
$Revision: 1.2 $
Author:
FracPete

Field Summary
static java.lang.String SEPARATOR
          the separator for between the parts of a job
 
Constructor Summary
Job(java.lang.String data)
          initializes the object
 
Method Summary
 java.lang.String[] getAdditional()
          returns additional parameters for the job, e.g.
 java.lang.String getClassName()
          returns the class of the job
 java.lang.String getLogFilename()
          returns the value for the parameter "-log", if available
 java.lang.String[] getParameter()
          returns the parameters of the job to be run; can be NULL
 java.lang.String toString()
          the job in a string representation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SEPARATOR

public static final java.lang.String SEPARATOR
the separator for between the parts of a job

See Also:
Constant Field Values
Constructor Detail

Job

public Job(java.lang.String data)
initializes the object

Method Detail

getClassName

public java.lang.String getClassName()
returns the class of the job


getParameter

public java.lang.String[] getParameter()
returns the parameters of the job to be run; can be NULL


getAdditional

public java.lang.String[] getAdditional()
returns additional parameters for the job, e.g. send a file (is NULL if there are no additional parameters)


getLogFilename

public java.lang.String getLogFilename()
returns the value for the parameter "-log", if available


toString

public java.lang.String toString()
the job in a string representation

Overrides:
toString in class java.lang.Object