public class HeftBag extends Object implements edu.isi.pegasus.planner.partitioner.graph.Bag
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
HeftBag()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public boolean add(Object key, Object value)
add
in interface edu.isi.pegasus.planner.partitioner.graph.Bag
key
- 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 edu.isi.pegasus.planner.partitioner.graph.Bag
key
- The key that you want to search for in the bag.public Object get(Object key)
get
in interface edu.isi.pegasus.planner.partitioner.graph.Bag
key
- the key corresponding to which the objects need to be
returned.private int getIntValue(Object key)
key
- the key to be converted