|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--gridsim.Gridlet
GridSim Gridlet class acts as job package that contains job length in Millions Instructions (MI), the length of input and output data in bytes, execution start and end time, and the originator of the job.
Individual users model their application by creating Gridlets for processing them on Grid resources assigned by scheduling entities (resource brokers).
Field Summary | |
static int |
CREATED
The Gridlet has been created and added to the GridletList object |
static int |
FAILED
The Gridlet is failed |
static int |
INEXEC
The Gridlet is in execution in a Grid node |
static int |
QUEUED
The Gridlet has moved to a Grid node |
static int |
READY
The Gridlet has been assigned to a GridResource object as planned |
static int |
SUCCESS
The Gridlet has been executed successfully |
Constructor Summary | |
Gridlet(int gridletID,
double gridletLength,
long gridletFileSize,
long gridletOutputSize)
Allocates a new Gridlet object |
Method Summary | |
double |
getActualCPUTime()
Gets the CPU time |
double |
GetActualCPUTime()
Deprecated. As of GridSim 2.1, replaced by getActualCPUTime() |
double |
getCostPerSec()
Gets the cost associated with a resource |
double |
GetCostPerSec()
Deprecated. As of GridSim 2.1, replaced by getCostPerSec() |
double |
getExecStartTime()
Gets the execution start time |
double |
getFinishTime()
Gets the time to complete processing a Gridlet |
double |
GetFinishTime()
Deprecated. As of GridSim 2.1, replaced by getFinishTime() |
long |
getGridletFileSize()
Gets the file size of a Gridlet |
long |
GetGridletFileSize()
Deprecated. As of GridSim 2.1, replaced by getGridletFileSize() |
int |
getGridletID()
Gets the Gridlet ID |
int |
GetGridletID()
Deprecated. As of GridSim 2.1, replaced by getGridletID() |
double |
getGridletLength()
Gets the length of a Gridlet |
double |
GetGridletLength()
Deprecated. As of GridSim 2.1, replaced by getGridletLength() |
long |
getGridletOutputSize()
Gets the output size of a Gridlet |
long |
GetGridletOutputSize()
Deprecated. As of GridSim 2.1, replaced by getGridletOutputSize() |
int |
getGridletStatus()
Gets the status code of a Gridlet |
String |
getGridletStatusString()
Gets the string representation of the current Gridlet status code |
double |
getProcessingCost()
Gets the cost of processing Gridlet |
double |
GetProcessingCost()
Deprecated. As of GridSim 2.1, replaced by getProcessingCost() |
int |
getResourceID()
Gets the resource ID |
int |
GetResourceID()
Deprecated. As of GridSim 2.1, replaced by getResourceID() |
int |
GetStatus()
Deprecated. As of GridSim 2.1, replaced by getGridletStatus() |
String |
GetStatusString()
Deprecated. As of GridSim 2.1, replaced by getGridletStatusString() |
double |
getSubmissionTime()
Gets the submission time |
int |
getUserID()
Gets the user ID |
int |
GetUserID()
Deprecated. As of GridSim 2.1, replaced by getUserID() |
double |
getWallClockTime()
Gets the actual real time |
double |
GetWallClockTime()
Deprecated. As of GridSim 2.1, replaced by getWallClockTime() |
void |
setExecParam(double wallClockTime,
double actualCPUTime)
Sets execution parameters. |
void |
SetExecParam(double wallClockTime,
double actualCPUTime)
Deprecated. As of GridSim 2.1, replaced by setExecParam(double, double) |
void |
setExecStartTime(double clockTime)
Sets the execution start time |
void |
SetExecStartTime(double clockTime)
Deprecated. As of GridSim 2.1, replaced by setExecStartTime(double) |
void |
setGridletStatus(int status)
Sets the status code of a Gridlet |
void |
setResourceParameter(int resourceID,
double costPerSec)
Sets the resource parameters |
void |
SetResParam(int resourceID,
double costPerSec)
Deprecated. As of GridSim 2.1, replaced by setResourceParameter(int, double) |
void |
SetStatus(int status)
Deprecated. As of GridSim 2.1, replaced by setGridletStatus(int) |
void |
setSubmissionTime(double clockTime)
Sets the submission time |
void |
SetSubmissionTime(double clockTime)
Deprecated. As of GridSim 2.1, replaced by setSubmissionTime(double) |
void |
setUserID(int id)
Sets the user ID |
void |
SetUserID(int id)
Deprecated. As of GridSim 2.1, replaced by setUserID(int) |
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int CREATED
public static final int READY
public static final int QUEUED
public static final int INEXEC
public static final int SUCCESS
public static final int FAILED
Constructor Detail |
public Gridlet(int gridletID, double gridletLength, long gridletFileSize, long gridletOutputSize)
gridletID
- the ID of a GridletgridletLength
- the length or size of a GridletgridletFileSize
- the file size of a GridletgridletOutputSize
- the output size of a GridletMethod Detail |
public int GetGridletID()
getGridletID()
public int getGridletID()
public void SetUserID(int id)
setUserID(int)
id
- the user IDpublic void setUserID(int id)
id
- the user IDpublic int GetUserID()
getUserID()
public int getUserID()
public int GetResourceID()
getResourceID()
public int getResourceID()
public long GetGridletFileSize()
getGridletFileSize()
public long getGridletFileSize()
public long GetGridletOutputSize()
getGridletOutputSize()
public long getGridletOutputSize()
public void SetResParam(int resourceID, double costPerSec)
setResourceParameter(int, double)
resourceID
- the resource IDcostPerSec
- the costs associated with this resourcepublic void setResourceParameter(int resourceID, double costPerSec)
resourceID
- the resource IDcostPerSec
- the costs associated with this resourcepublic void SetSubmissionTime(double clockTime)
setSubmissionTime(double)
clockTime
- the submission timepublic void setSubmissionTime(double clockTime)
clockTime
- the submission timepublic double getSubmissionTime()
public void SetExecStartTime(double clockTime)
setExecStartTime(double)
clockTime
- the execution start timepublic void setExecStartTime(double clockTime)
clockTime
- the execution start timepublic double getExecStartTime()
public void SetExecParam(double wallClockTime, double actualCPUTime)
setExecParam(double, double)
wallClockTime
- the virtual real timeactualCPUTime
- the time based on CPU timepublic void setExecParam(double wallClockTime, double actualCPUTime)
wallClockTime
- the virtual real timeactualCPUTime
- the time based on CPU timepublic void SetStatus(int status) throws Exception
setGridletStatus(int)
status
- the status code of a Gridlet
Exception
- Invalid Gridlet statuspublic void setGridletStatus(int status) throws Exception
status
- the status code of a Gridlet
Exception
- Invalid Gridlet statuspublic int GetStatus()
getGridletStatus()
public int getGridletStatus()
public String GetStatusString()
getGridletStatusString()
public String getGridletStatusString()
public double GetGridletLength()
getGridletLength()
public double getGridletLength()
public double GetActualCPUTime()
getActualCPUTime()
public double getActualCPUTime()
public double GetCostPerSec()
getCostPerSec()
public double getCostPerSec()
public double GetProcessingCost()
getProcessingCost()
public double getProcessingCost()
public double GetWallClockTime()
getWallClockTime()
public double getWallClockTime()
public double GetFinishTime()
getFinishTime()
public double getFinishTime()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |