|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.griphyn.cPlanner.partitioner.ClustererCallback
public class ClustererCallback
A Callback implementation that passes the partitions detected during the partitioning of the worflow to a Clusterer for clustering. The clusterer is passed off to the callback during the callback initialization.
| Field Summary | |
|---|---|
private Clusterer |
mClusterer
The handle to the clusterer that does the clustering. |
private PegasusProperties |
mProps
The handle to the properties object. |
| Constructor Summary | |
|---|---|
ClustererCallback()
The default constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Clusterer mClusterer
private PegasusProperties mProps
| Constructor Detail |
|---|
public ClustererCallback()
| Method Detail |
|---|
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 Callbackp - 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 Callbackchild - 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.public void cbDone()
cbDone in interface Callback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||