org.gridbus.broker.farming.globus
Class GlobusJobOutput

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

public class GlobusJobOutput
extends java.lang.Object
implements JobOut

This class represents the output of a job running on a Globus node.

Author:
Srikumar Venugopal(srikumar@cs.mu.oz.au), Brett Beeson (bbeeson@ph.unimelb.edu.au)

Constructor Summary
GlobusJobOutput(Job j)
           
 
Method Summary
 void flush(java.io.Writer out)
          This function writes the output Buffer to whatever Writer is provided to it..
 java.lang.StringBuffer get(boolean IF_RETAIN)
          This method gets the job output and retains it if needed.
 java.lang.StringBuffer getFiltered(boolean retain)
          Gets the output of a job (given by get(...)) and strips DataBroker output, leaving only the job's output.
 GassServerUtil getGassServer()
          Returns the object representing the GASS server 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

GlobusJobOutput

public GlobusJobOutput(Job j)
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 GASS server for this job

Returns:
GassServerUtil

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
This function writes the output Buffer to whatever Writer is provided to it.. Could be a FileWriter (for files), BufferedWriter or OutputStreamWriter (through a socket) If the output buffer is null, then it retrieves the output from remote site.

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
Gets the output of a job (given by get(...)) and strips DataBroker output, leaving only the job's output.

Specified by:
getFiltered in interface JobOut
Parameters:
retain -
Returns:
StringBuffer - containing the job's output. Null is never returned, but StringBuffer may be empty.
Throws:
java.lang.Exception
See Also:
get(boolean)