edu.isi.pegasus.planner.code
Interface POSTScript

All Known Implementing Classes:
ExitCode, ExitPOST, NetloggerPostScript, NoPOSTScript, PegasusExitCode, UserPOSTScript, VDSPOSTScript

public interface POSTScript

The interface that defines the creation of a POSTSCRIPT for a job. The POSTSCRIPT created is dependant on the GridStart being used to enable the job.

Version:
$Revision: 2590 $
Author:
Karan Vahi vahi@isi.edu

Field Summary
static String VERSION
          The version number associated with this API of GridStart.
 
Method Summary
 boolean construct(Job job, String key)
          Constructs the postscript that has to be invoked on the submit host after the job has executed on the remote end.
 void initialize(PegasusProperties properties, String path, String submitDir)
          Initialize the POSTScript implementation.
 String shortDescribe()
          Returns a short textual description of the implementing class.
 

Field Detail

VERSION

static final String VERSION
The version number associated with this API of GridStart.

See Also:
Constant Field Values
Method Detail

initialize

void initialize(PegasusProperties properties,
                String path,
                String submitDir)
Initialize the POSTScript implementation.

Parameters:
properties - the PegasusProperties object containing all the properties required by Pegasus.
path - the path to the POSTScript on the submit host.
submitDir - the submit directory where the submit file for the job has to be generated.

construct

boolean construct(Job job,
                  String key)
Constructs the postscript that has to be invoked on the submit host after the job has executed on the remote end. The postscript usually works on the output generated by the executable that is used to grid enable a job, and has been piped back by Condor.

The postscript should be constructed and populated as a profile in the DAGMAN namespace.

Parameters:
job - the Job object containing the job description of the job that has to be enabled on the grid.
key - the DAGMan profile key that has to be inserted.
Returns:
boolean true if postscript was generated,else false.

shortDescribe

String shortDescribe()
Returns a short textual description of the implementing class.

Returns:
short textual description.


Copyright © 2011 The University of Southern California. All Rights Reserved.