edu.isi.pegasus.planner.partitioner
public class ClustererCallback extends Object implements Callback
Modifier and Type | Field and Description |
---|---|
private Clusterer |
mClusterer
The handle to the clusterer that does the clustering.
|
private PegasusProperties |
mProps
The handle to the properties object.
|
Constructor and Description |
---|
ClustererCallback()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cbDone()
Callback for the partitioner to signal that it is done with the processing.
|
void |
cbParents(String child,
List parents)
Callback for when a partitioner determines the relations between partitions
that it has previously constructed.
|
void |
cbPartition(Partition p)
Callback for when a partitioner determines that partition has been
constructed.
|
void |
initialize(PegasusProperties properties,
Clusterer clusterer)
Initializes the callback.
|
private Clusterer mClusterer
private PegasusProperties mProps
public void initialize(PegasusProperties properties, Clusterer clusterer)
properties
- the properties passed to the planner.clusterer
- the clusterer that has to be called out, in the callback
methods.public void cbPartition(Partition p)
cbPartition
in interface Callback
p
- the constructed partition.RuntimeException
- in case of callback not being initialized, or
a ClustererException being thrown during the Clusterer operation.public void cbParents(String child, List parents)
cbParents
in interface Callback
child
- the id of a partition.parents
- the list of String
objects that contain
the id's of the parents of the partition.RuntimeException
- in case of callback not being initialized, or
a ClustererException being thrown during the Clusterer operation.