org.gridbus.broker.farming.globus
Class GlobusJobError

java.lang.Object
  extended byorg.gridbus.broker.farming.globus.GlobusJobError
All Implemented Interfaces:
JobOut

public class GlobusJobError
extends java.lang.Object
implements JobOut

This class contains methods to work with the Globus job errors generated

Author:
Srikumar Venugopal(srikumar@cs.mu.oz.au)

Constructor Summary
GlobusJobError(Job j)
          Constructor for this class.
 
Method Summary
 void flush(java.io.Writer out)
          Flushes (writes) output to specified destination.
 java.lang.StringBuffer get(boolean IF_RETAIN)
          This method gets the job output and retains it if needed.
 java.lang.StringBuffer getFiltered(boolean retain)
          Same as @see get(boolean)
 GassServerUtil getGassServer()
          Returns the object representing the GassServer for this job
 void reset()
          Resets the job output
 void setGassServer(GassServerUtil util)
          Sets the Gass Server for this job.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GlobusJobError

public GlobusJobError(Job j)
Constructor for this class.

Parameters:
j -
Method Detail

get

public java.lang.StringBuffer get(boolean IF_RETAIN)
                           throws java.lang.Exception
Description copied from interface: JobOut
This method gets the job output and retains it if needed.

Specified by:
get in interface JobOut
Parameters:
IF_RETAIN -
Returns:
StringBuffer
Throws:
java.lang.Exception
See Also:
JobOut.get(boolean)

getGassServer

public GassServerUtil getGassServer()
Returns the object representing the GassServer for this job

Returns:
gass server

setGassServer

public void setGassServer(GassServerUtil util)
Sets the Gass Server for this job.

Parameters:
util -

reset

public void reset()
Description copied from interface: JobOut
Resets the job output

Specified by:
reset in interface JobOut
See Also:
JobOut.reset()

flush

public void flush(java.io.Writer out)
           throws java.lang.Exception
Description copied from interface: JobOut
Flushes (writes) output to specified destination.

Specified by:
flush in interface JobOut
Parameters:
out -
Throws:
java.lang.Exception
See Also:
JobOut.flush(java.io.Writer)

getFiltered

public java.lang.StringBuffer getFiltered(boolean retain)
                                   throws java.lang.Exception
Same as @see get(boolean)

Specified by:
getFiltered in interface JobOut
Parameters:
retain -
Returns:
filtered job error
Throws:
java.lang.Exception