org.griphyn.cPlanner.classes
Class AggregatedJob

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

public class AggregatedJob
extends SubInfo

This class holds all the specifics of an aggregated job. An aggregated job or a clustered job is a job, that contains a collection of smaller jobs. An aggregated job during execution may explode into n smaller job executions. At present it does not store information about the dependencies between the jobs.

Version:
$Revision: 50 $
Author:
Karan Vahi

Field Summary
private  Collection mConstituentJobs
          The collection of jobs that are contained in the aggregated job.
 
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
AggregatedJob()
          The default constructor.
AggregatedJob(int num)
          The overloaded constructor.
AggregatedJob(SubInfo job, int num)
          The overloaded constructor.
 
Method Summary
 void add(SubInfo job)
          Adds a job to the aggregated job.
 Object clone()
          Returns a new copy of the Object.
 Iterator constituentJobsIterator()
          Returns an iterator to the constituent jobs of the AggregatedJob.
 String toString()
          Returns a textual description of the object.
 
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

mConstituentJobs

private Collection mConstituentJobs
The collection of jobs that are contained in the aggregated job.

Constructor Detail

AggregatedJob

public AggregatedJob()
The default constructor.


AggregatedJob

public AggregatedJob(int num)
The overloaded constructor.

Parameters:
num - the number of constituent jobs

AggregatedJob

public AggregatedJob(SubInfo job,
                     int num)
The overloaded constructor.

Parameters:
job - the job whose shallow copy is created, and is the main job.
num - the number of constituent jobs.
Method Detail

add

public void add(SubInfo job)
Adds a job to the aggregated job.

Parameters:
job - the job to be added.

clone

public Object clone()
Returns a new copy of the Object. The constituent jobs are also cloned.

Overrides:
clone in class SubInfo
Returns:
Object

constituentJobsIterator

public Iterator constituentJobsIterator()
Returns an iterator to the constituent jobs of the AggregatedJob.

Returns:
Iterator

toString

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

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


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