org.griphyn.cPlanner.classes
Class GRMSJob

java.lang.Object
  extended by org.griphyn.cPlanner.classes.Data
      extended by org.griphyn.cPlanner.classes.SubInfo
          extended by org.griphyn.cPlanner.classes.GRMSJob
All Implemented Interfaces:
Cloneable, GraphNodeContent

public class GRMSJob
extends SubInfo

This extends the job description used in Pegasus to incorporate the input and the output url's that are required to pull in the input and push out the output files. In VDS terms each of these job is a VDS super node without the registration job.

Version:
$Revision: 50 $
Author:
Karan Vahi

Field Summary
private  List inputURLs
          List of the input urls from where to fetch the input files.
private  List outputURLs
          List of the output urls that specify where to transfer the output files.
 
Fields inherited from class org.griphyn.cPlanner.classes.SubInfo
CLEANUP_JOB, COMPUTE_JOB, condorUniverse, condorVariables, CREATE_DIR_JOB, dagmanVariables, dvName, dvNamespace, dvVersion, envVariables, executable, executionPool, globusRSL, globusScheduler, hints, inputFiles, INTER_POOL_JOB, jobClass, jobID, jobName, level, logicalId, logicalName, namespace, outputFiles, REPLICA_REG_JOB, STAGE_IN_JOB, STAGE_OUT_JOB, STAGED_COMPUTE_JOB, stdErr, stdIn, stdOut, strargs, UNASSIGNED_JOB, vdsNS, version
 
Fields inherited from class org.griphyn.cPlanner.classes.Data
mLogger, mLogMsg
 
Constructor Summary
GRMSJob()
          The default constructor
GRMSJob(SubInfo job)
          The overloaded construct that constructs a GRMS job by wrapping around the SubInfo job.
 
Method Summary
 boolean addURL(String lfn, String url, char type)
          Adds a url of the job.
 Object clone()
          Returns a new copy of the Object.
 Iterator iterator(char type)
          It returns an iterator to the underlying associated collection.
 String toString()
          Returns a textual description of the GRMS job.
 
Methods inherited from class org.griphyn.cPlanner.classes.SubInfo
addInputFile, addOutputFile, equals, getArguments, getCompleteDVName, getCompleteTCName, getDOTColor, getDVName, getDVNamespace, getDVVersion, getID, getInputFiles, getJobManager, getJobType, getJobTypeDescription, getJobTypeDescription, getLevel, getLogicalID, getName, getOutputFiles, getPreScriptArguments, getPreScriptPath, getRemoteExecutable, getSiteHandle, getStagedExecutableBaseName, getStagedExecutableBaseName, getStdErr, getStdIn, getStdOut, getTXName, getTXNamespace, getTXVersion, getUniverse, getVDSSuperNode, isMPIJob, mergeProfiles, resetProfiles, runInWorkDirectory, setArguments, setDerivation, setDVName, setDVNamespace, setDVVersion, setInputFiles, setJobManager, setJobType, setLevel, setLogicalID, setName, setOutputFiles, setPreScript, setPreScript, setRemoteExecutable, setSiteHandle, setStdErr, setStdIn, setStdOut, setTransformation, setTXName, setTXNamespace, setTXVersion, setUniverse, setVDSSuperNode, toDOT, toDOT, typeInRange, updateProfiles, updateProfiles, updateProfiles
 
Methods inherited from class org.griphyn.cPlanner.classes.Data
setToString, vectorToString
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

inputURLs

private List inputURLs
List of the input urls from where to fetch the input files. Each object in this list is of type NameValue where name is the logical name of the associated file , and value it the url.


outputURLs

private List outputURLs
List of the output urls that specify where to transfer the output files. Each object in this list is of type NameValue where name is the logical name of the associated file , and value it the url.

Constructor Detail

GRMSJob

public GRMSJob()
The default constructor


GRMSJob

public GRMSJob(SubInfo job)
The overloaded construct that constructs a GRMS job by wrapping around the SubInfo job.

Parameters:
job - the original job description.
Method Detail

addURL

public boolean addURL(String lfn,
                      String url,
                      char type)
Adds a url of the job. The url can be either input or output.

Parameters:
lfn - the lfn associated with the url.
url - the url.
type - i means input o means output
Returns:
boolean true the url was successfully added. false the type of the url was wrong.

iterator

public Iterator iterator(char type)
It returns an iterator to the underlying associated collection. The iterator returns objects of type NameValue.

Parameters:
type - i input urls o output urls
Returns:
the iterator to corresponding collection. null if invalid type.

toString

public String toString()
Returns a textual description of the GRMS job.

Overrides:
toString in class SubInfo
Returns:
textual description of the job.

clone

public Object clone()
Returns a new copy of the Object. However the url list are copied by reference. It is not a true copy.

Overrides:
clone in class SubInfo
Returns:
clone of the object.


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