|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectgridbroker.BrokerResource
BrokerResource class acts as a placeholder for the broker to maintain a detailed record on the resources it uses for processing user applications. It maintains resource characteristics, a list of Gridlets assigned to the resource, the actual amount of MIPS (Millions Instruction Per Second) available to the user, and a report on the Gridlets processed. These measurements help in extrapolating and predicating the resource performance from the user point of view and aid in scheduling job dynamically at runtime.
Field Summary | |
GridletList |
glList
List of Gridlets that are currently assigned to a resource |
double |
LatestLoad
Denotes the latest load |
int |
NoOfGridletsDispatchedSoFar
Number of Gridlets that are dispatched so far |
int |
NoOfGridletsFinishedSoFar
Number of Gridlets that are finished so far |
static int |
PARAM_GRIDLETS_COMMITTED_FOR_RESOURCE
Gridlets that are committed |
static int |
PARAM_GRIDLETS_FINISHED
Gridlets that are finished |
static int |
PARAM_GRIDLETS_ON_RESOURCE
Gridlets on a resource |
static int |
PARAM_PROCESSING_EXPENSES
Processing expenses |
double |
ProcessingExpensesSoFar
Processing expenses so far |
ResourceCharacteristics |
resource
A ResourceCharacteristics object |
Constructor Summary | |
BrokerResource(ResourceCharacteristics resObj,
double latestLoad)
Allocates a new BrokerResource object |
Method Summary | |
double |
ExpectedCompletionTime(Gridlet gl)
Deprecated. As of GridBroker 2.1, replaced by getExpectedCompletionTime(Gridlet) |
double |
ExpectedProcessingCost(Gridlet gl)
Deprecated. As of GridBroker 2.1, replaced by getExpectedProcessingCost(Gridlet) |
double |
FirstAvailableSlotTime()
Deprecated. As of GridBroker 2.1, replaced by getFirstAvailableSlotTime() |
double |
getAvailableMI(double endTime)
Gets the available MIs depending on resource load from the end time |
double |
GetAvailableMI(double endTime)
Deprecated. As of GridBroker 2.1, replaced by getAvailableMI(double) |
double |
getAvailableMIPS_PreviousSchedule()
Gets the available MIPS based on previous schedule |
double |
GetAvailableMIPS_PreviousSchedule()
Deprecated. As of GridBroker 2.1, replaced by getAvailableMIPS_PreviousSchedule() |
double |
getAvailableMIPS()
Gets the available MIPS |
double |
GetAvailableMIPS()
Deprecated. As of GridBroker 2.1, replaced by getAvailableMIPS() |
double |
getAvailableMIPSPerPE()
Identifies the actual MIPS available per PE (Processing Element) |
double |
GetAvailableMIPSPerPE()
Deprecated. As of GridBroker 2.1, replaced by getAvailableMIPSPerPE() |
double |
getExpectedCompletionTime(Gridlet gl)
Gets the expected Grid completion time given its current commitmements |
double |
getExpectedProcessingCost(Gridlet gl)
Identifies an expected processing cost on the resource |
double |
getFirstAvailableSlotTime()
Gets the time at which the first slot is available, considering the current committed Gridlets |
int |
getNumGridletCommitted()
Gets the number of Gridlets committed |
int |
getNumGridletInExec()
Gets the number of Gridlets in execution |
int |
getNumGridletInQueue()
Gets the number of Gridlets in queue |
int |
getNumGridletInReady()
Gets the number of Gridlets in ready |
double |
getParameterValue(int parameter)
Gets the parameter value |
double |
GetParameterValue(int parameter)
Deprecated. As of GridBroker 2.1, replaced by getParameterValue(int) |
double |
getRemainingTimePeriod(double endTime)
Gets the number of System Time units (such as second) from the current time to the endTime (such as Deadline) |
double |
getResourceShareVariation()
Gets the resource share since the last schedule. |
Accumulator |
getUnFinishedGridletLengthAccumulator()
Gets an Accumulator object for the length of all gridlets to be completely processed. |
Accumulator |
GetUnFinishedGridletsLengthAccumulator()
Deprecated. As of GridBroker 2.1, replaced by getUnFinishedGridletLengthAccumulator() |
boolean |
isSufficientMIAvailableOnSinglePE(Gridlet gl,
double deadlineTime)
Checks the available MI (Millions Instruction) on a single PE (Processing Element) within the available deadline period |
boolean |
IsSufficientMIAvailableOnSinglePE(Gridlet gl,
double deadlineTime)
Deprecated. As of GridBroker 2.1, replaced by isSufficientMIAvailableOnSinglePE(Gridlet, double) |
int |
NoOfGridletsCommitted()
Deprecated. As of GridBroker 2.1, replaced by getNumGridletCommitted() |
int |
NoOfGridletsInExec()
Deprecated. As of GridBroker 2.1, replaced by getNumGridletInExec() |
int |
NoOfGridletsInQueue()
Deprecated. As of GridBroker 2.1, replaced by getNumGridletInQueue() |
int |
NoOfGridletsInReady()
Deprecated. As of GridBroker 2.1, replaced by getNumGridletInReady() |
double |
RemainingTimePeriodFromNow(double endTime)
Deprecated. As of GridBroker 2.1, replaced by getRemainingTimePeriod(double) |
double |
ResourceShareVariation()
Deprecated. As of GridBroker 2.1, replaced by getResourceShareVariation() |
void |
setAvailableMIPS_PreviousSchedule()
Sets the available MIPS based on previous schedule |
void |
SetAvailableMIPS_PreviousSchedule()
Deprecated. As of GridBroker 2.1, replaced by setAvailableMIPS_PreviousSchedule() |
void |
updateAvailableMIPS(Gridlet glFinished,
int brokerMaxGridletPerPELimit)
Updates the total available MIPS |
void |
UpdateAvailableMIPS(Gridlet glFinished,
int brokerMaxGridletPerPELimit)
Deprecated. As of GridBroker 2.1, replaced by updateAvailableMIPS(Gridlet, int) |
void |
updateAvailableMIPSDuringSchedule()
Updates the available MIPS during simulation schedule |
void |
UpdateAvailableMIPSDuringSchedule()
Deprecated. As of GridBroker 2.1, replaced by updateAvailableMIPSDuringSchedule() |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public ResourceCharacteristics resource
public double LatestLoad
public GridletList glList
public int NoOfGridletsFinishedSoFar
public int NoOfGridletsDispatchedSoFar
public double ProcessingExpensesSoFar
public static final int PARAM_GRIDLETS_ON_RESOURCE
public static final int PARAM_GRIDLETS_COMMITTED_FOR_RESOURCE
public static final int PARAM_GRIDLETS_FINISHED
public static final int PARAM_PROCESSING_EXPENSES
Constructor Detail |
public BrokerResource(ResourceCharacteristics resObj, double latestLoad)
resObj
- an object of ResourceCharacteristicslatestLoad
- the latest resource loadResourceCharacteristics
Method Detail |
public double GetParameterValue(int parameter)
getParameterValue(int)
parameter
- the type of a parameter
public double getParameterValue(int parameter)
parameter
- the type of a parameter
public double GetAvailableMIPS()
getAvailableMIPS()
public double getAvailableMIPS()
public double GetAvailableMIPS_PreviousSchedule()
getAvailableMIPS_PreviousSchedule()
public double getAvailableMIPS_PreviousSchedule()
public void SetAvailableMIPS_PreviousSchedule()
setAvailableMIPS_PreviousSchedule()
public void setAvailableMIPS_PreviousSchedule()
public double ResourceShareVariation()
getResourceShareVariation()
public double getResourceShareVariation()
public void UpdateAvailableMIPS(Gridlet glFinished, int brokerMaxGridletPerPELimit)
updateAvailableMIPS(Gridlet, int)
glFinished
- a Gridlet object that has finishedbrokerMaxGridletPerPELimit
- the max. number of Gridlet per PE
(Processing Element)Gridlet
public void updateAvailableMIPS(Gridlet glFinished, int brokerMaxGridletPerPELimit)
glFinished
- a Gridlet object that has finishedbrokerMaxGridletPerPELimit
- the max. number of Gridlet per PE
(Processing Element)Gridlet
public void UpdateAvailableMIPSDuringSchedule()
updateAvailableMIPSDuringSchedule()
public void updateAvailableMIPSDuringSchedule()
public double GetAvailableMIPSPerPE()
getAvailableMIPSPerPE()
public double getAvailableMIPSPerPE()
public double FirstAvailableSlotTime()
getFirstAvailableSlotTime()
public double getFirstAvailableSlotTime()
public double ExpectedCompletionTime(Gridlet gl)
getExpectedCompletionTime(Gridlet)
gl
- a Gridlet object
public double getExpectedCompletionTime(Gridlet gl)
gl
- a Gridlet object
public Accumulator GetUnFinishedGridletsLengthAccumulator()
getUnFinishedGridletLengthAccumulator()
Accumulator
public Accumulator getUnFinishedGridletLengthAccumulator()
Accumulator
public double RemainingTimePeriodFromNow(double endTime)
getRemainingTimePeriod(double)
endTime
- the ending time
public double getRemainingTimePeriod(double endTime)
endTime
- the ending time
public boolean IsSufficientMIAvailableOnSinglePE(Gridlet gl, double deadlineTime)
isSufficientMIAvailableOnSinglePE(Gridlet, double)
gl
- a Gridlet objectdeadlineTime
- the deadline time period
Gridlet
public boolean isSufficientMIAvailableOnSinglePE(Gridlet gl, double deadlineTime)
gl
- a Gridlet objectdeadlineTime
- the deadline time period
Gridlet
public double GetAvailableMI(double endTime)
getAvailableMI(double)
endTime
- the end time
public double getAvailableMI(double endTime)
endTime
- the end time
public int NoOfGridletsCommitted()
getNumGridletCommitted()
public int getNumGridletCommitted()
public int NoOfGridletsInReady()
getNumGridletInReady()
public int getNumGridletInReady()
public int NoOfGridletsInQueue()
getNumGridletInQueue()
public int getNumGridletInQueue()
public int NoOfGridletsInExec()
getNumGridletInExec()
public int getNumGridletInExec()
public double ExpectedProcessingCost(Gridlet gl)
getExpectedProcessingCost(Gridlet)
gl
- a Gridlet object
Gridlet
public double getExpectedProcessingCost(Gridlet gl)
gl
- a Gridlet object
Gridlet
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |