|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.selector.site.heft.HeftBag
public class HeftBag
A data class that implements the Bag interface and stores the extra information that is required by the HEFT algorithm for each node.
| Field Summary | |
|---|---|
static Integer |
ACTUAL_FINISH_TIME
The constant to be passed to the accessor functions to get or set the actual end time for a job. |
static Integer |
ACTUAL_START_TIME
The constant to be passed to the accessor functions to get or set the actual start time for a job. |
static Integer |
AVG_COMPUTE_TIME
The constant to be passed to the accessor functions to get or set the average compute time for the node. |
static Integer |
DOWNWARD_RANK
The constant to be passed to the accessor functions to get or set the downward rank for a node. |
static String[] |
HEFTINFO
Array storing the names of the attributes that are stored with the site. |
private float |
mAvgComputeTime
The average compute time for a node. |
private float |
mDownwardRank
The downward rank for a node. |
private long |
mEndTime
The estimated end time for a job. |
private String |
mScheduledSite
The site where a job is scheduled to run. |
private long |
mStartTime
The estimated start time for a job. |
private float |
mUpwardRank
The upward rank for a node. |
static Integer |
SCHEDULED_SITE
The site where the job is scheduled. |
static Integer |
UPWARD_RANK
The constant to be passed to the accessor functions to get or set the upward rank for a node. |
| Constructor Summary | |
|---|---|
HeftBag()
The default constructor. |
|
| Method Summary | |
|---|---|
boolean |
add(Object key,
Object value)
Adds an object to the underlying bag corresponding to a particular key. |
boolean |
containsKey(Object key)
Returns true if the namespace contains a mapping for the specified key. |
Object |
get(Object key)
Returns an objects corresponding to the key passed. |
private int |
getIntValue(Object key)
A convenience method to get the intValue for the object passed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String[] HEFTINFO
public static final Integer AVG_COMPUTE_TIME
public static final Integer DOWNWARD_RANK
public static final Integer UPWARD_RANK
public static final Integer ACTUAL_START_TIME
public static final Integer ACTUAL_FINISH_TIME
public static final Integer SCHEDULED_SITE
private float mAvgComputeTime
private float mDownwardRank
private float mUpwardRank
private long mStartTime
private long mEndTime
private String mScheduledSite
| Constructor Detail |
|---|
public HeftBag()
| Method Detail |
|---|
public boolean add(Object key,
Object value)
add in interface Bagkey - the key with which the value has to be associated.value - the value to be associated with the key.
public boolean containsKey(Object key)
containsKey in interface Bagkey - The key that you want to search for in the bag.
public Object get(Object key)
get in interface Bagkey - the key corresponding to which the objects need to be
returned.
private int getIntValue(Object key)
key - the key to be converted
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||