|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.refiner.Engine
edu.isi.pegasus.planner.refiner.NodeCollapser
public class NodeCollapser
This collapses the nodes of the same logical name scheduled on the same pool into fewer fat nodes. The idea behind this is to collapse jobs that take a few seconds to run into a larger job, and hence reducing time because of lesser delays due to lesser number of Condor Globus interactions. Note that the merging of the edges for the jobs being collapsed at present, is not the best implementation. Once the graph structure is correct , it would be modified.
| Field Summary | |
|---|---|
private PegasusBag |
mBag
The bag of initialization objects. |
private String |
mDirectory
The directory, where the stdin file of the fat jobs are created. |
private Map |
mGraph
The internal map that contains the adjacency list representation of the Graph referred to by the workflow. |
protected LogManager |
mLogger
The handle to the logger object. |
| Fields inherited from class edu.isi.pegasus.planner.refiner.Engine |
|---|
mLogMsg, mOutputPool, mPoolFile, mPOptions, mProps, mRLIUrl, mSiteStore, mTCFile, mTCHandle, mTCMode, REGISTRATION_UNIVERSE, TRANSFER_UNIVERSE |
| Constructor Summary | |
|---|---|
NodeCollapser(PegasusBag bag)
The overloaded constructor. |
|
| Method Summary | |
|---|---|
ADag |
cluster(ADag dag)
Clusters the jobs in the workflow. |
ADag |
cluster(ADag dag,
String type)
Clusters the jobs in the workflow. |
protected Map |
edgeList2Graph(Vector relations,
Map nameIDMap)
Returns an adjacency list representation of the graph referred to by the list of edges. |
void |
setDirectory(String directory)
Sets the directory where the stdin files are to be generated. |
| Methods inherited from class edu.isi.pegasus.planner.refiner.Engine |
|---|
addVector, appendArrayList, loadProperties, printVector, stringInList, stringInPegVector, stringInVector, vectorToString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected LogManager mLogger
private String mDirectory
private Map mGraph
private PegasusBag mBag
| Constructor Detail |
|---|
public NodeCollapser(PegasusBag bag)
bag - the bag of initialization objects.| Method Detail |
|---|
public void setDirectory(String directory)
directory - the path to the directory to which it needs to be set.
public ADag cluster(ADag dag)
throws ClustererException
dag - the scheduled dag that has to be clustered.
ClustererException - in case of error while clustering
public ADag cluster(ADag dag,
String type)
throws ClustererException
dag - the scheduled dag that has to be clustered.type - the type of clustering to do.
ClustererException - in case of error while clustering
protected Map edgeList2Graph(Vector relations,
Map nameIDMap)
relations - vector of PCRelation objects that does
the conversion.nameIDMap - map with the key as the jobname and value as the
logical id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||