public class BalancingMethod
extends java.lang.Object
| Constructor and Description |
|---|
BalancingMethod(java.util.Map levelMap,
java.util.Map taskMap,
int clusterNum)
Initialize a BalancingMethod
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTaskSet2TaskSet(TaskSet tail,
TaskSet head)
Add all the tasks in tail to head and then clean tail.
|
void |
cleanTaskSetChecked()
Clean all the check points
|
int |
getClusterNum()
Gets clusters.num
|
java.util.Map |
getLevelMap()
Gets the level map
|
java.util.Map |
getTaskMap()
Gets the task map
|
void |
run()
BalancingMethod is the super class and it should not be used.
|
public BalancingMethod(java.util.Map levelMap,
java.util.Map taskMap,
int clusterNum)
levelMap, - taskSets per leveltaskMap, - map from task to taskSetclusterNum - number of clustered jobspublic java.util.Map getTaskMap()
public java.util.Map getLevelMap()
public int getClusterNum()
public void addTaskSet2TaskSet(TaskSet tail, TaskSet head)
tail - head - public void run()
public void cleanTaskSetChecked()