edu.isi.pegasus.planner.cluster
Class Vertical

java.lang.Object
  extended by edu.isi.pegasus.planner.cluster.Abstract
      extended by edu.isi.pegasus.planner.cluster.Vertical
All Implemented Interfaces:
Clusterer

public class Vertical
extends Abstract

The vertical cluster, that extends the Default clusterer and topologically sorts the partition before clustering the jobs into aggregated jobs.

Version:
$Revision: 2755 $
Author:
Karan Vahi

Field Summary
static String DESCRIPTION
          A short description about the partitioner.
 
Fields inherited from class edu.isi.pegasus.planner.cluster.Abstract
mClusteredRelations, mJobAggregatorFactory, mLogger, mPartitionClusterMap, mProps, mScheduledDAG, mSubInfoMap
 
Fields inherited from interface edu.isi.pegasus.planner.cluster.Clusterer
VERSION
 
Constructor Summary
Vertical()
          The default constructor.
 
Method Summary
protected  String constructClusteredJobID(Partition partition)
          Returns the ID for the clustered job corresponding to a partition.
 String description()
          Returns a textual description of the transfer implementation.
 void determineInputOutputFiles(AggregatedJob job)
          Determine the input and output files of the job on the basis of the order of the constituent jobs in the AggregatedJob.
protected  String getLogicalNameForJobs(List<Job> jobs)
          Returns null as for label based clustering we dont want the transformation name to be considered for constructing the name of the clustered jobs
 List order(Partition p)
          Returns the nodes in the partition as a List in the topologically sorted order.
 
Methods inherited from class edu.isi.pegasus.planner.cluster.Abstract
addJob, associate, clusteredJob, clusteredJob, determineClusters, getClusteredDAG, getJob, initialize, parents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DESCRIPTION

public static final String DESCRIPTION
A short description about the partitioner.

See Also:
Constant Field Values
Constructor Detail

Vertical

public Vertical()
The default constructor.

Method Detail

description

public String description()
Returns a textual description of the transfer implementation.

Returns:
a short textual description

order

public List order(Partition p)
           throws ClustererException
Returns the nodes in the partition as a List in the topologically sorted order.

Specified by:
order in class Abstract
Parameters:
p - the partition whose nodes have to be ordered.
Returns:
an ordered List of String objects that are the ID's of the nodes.
Throws:
ClustererException - in case of error.

determineInputOutputFiles

public void determineInputOutputFiles(AggregatedJob job)
Determine the input and output files of the job on the basis of the order of the constituent jobs in the AggregatedJob. The input and output files are determined on the basis of topologically sorted order of the constituent jobs.

Specified by:
determineInputOutputFiles in class Abstract
Parameters:
job - the AggregatedJob
Throws:
ClustererException - in case of error.

getLogicalNameForJobs

protected String getLogicalNameForJobs(List<Job> jobs)
Returns null as for label based clustering we dont want the transformation name to be considered for constructing the name of the clustered jobs

Overrides:
getLogicalNameForJobs in class Abstract
Parameters:
jobs - List of jobs
Returns:
name

constructClusteredJobID

protected String constructClusteredJobID(Partition partition)
Returns the ID for the clustered job corresponding to a partition.

Overrides:
constructClusteredJobID in class Abstract
Parameters:
partition - the partition.
Returns:
the ID of the clustered job


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