|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.gridbus.broker.farming.common.ComputeServer
This class describes a general computational server and provides the methods for accessing and manipulating the information contained.
| Constructor Summary | |
ComputeServer()
Constructor - initializes the ComputeServer |
|
| Method Summary | |
void |
calcJobLimit(int totalWaitJobs,
float totalAvgRateCompl)
Calculates the number of jobs that can be allocated to this server. |
void |
decExecutingJobs()
Decrements the number of jobs currently executing on this server |
int |
getAllocatedJobs()
Returns the number of jobs allocated to this server and not in execution |
float |
getAvgJobComputationTime()
Returns the average job completion time |
float |
getAvgRateofCompletion()
Returns the rate of completion of jobs of this server averaged over the number of polling intervals |
float |
getBusytime()
Returns the time interval for which the server was busy. |
int |
getExecutingJobs()
Returns the number of jobs currently executing on the server. |
int |
getFailedJobs()
Returns the number of failed jobs |
java.lang.String |
getHostname()
Returns the hostname for this computational server |
int |
getJobLimit()
Returns the maximum number of jobs that can be allocated to this server. |
int |
getJobsCompletedCurrentPoll()
Returns the number of jobs finished since the last time the server information was updated |
java.lang.String |
getOS()
Returns the OS string |
float |
getPrevtime()
Returns the prevtime. |
int |
getPricePerCpuSec()
Returns the cost of using the server per one second of CPU execution time |
float |
getPricePerJob()
Returns the cost per each job executed on this computeserver |
java.lang.String |
getServerID()
Returns the Unique ID of this server. |
java.lang.String |
getStatus()
returns the Status of this compute Server |
float |
getTimeperjob()
Returns the time taken per job |
int |
getTotalFinishedJobs()
Returns the number of jobs that have been finished on this server so far. |
void |
incAllocatedJobs()
Increments the number of jobs allocated to this server |
void |
incExecutingJobs()
Increments the number of jobs executing on this server |
void |
incFailedJobs()
Increments the number of jobs failed on this server |
void |
incJobsCompletedCurrentPoll()
Increments the number of jobs that have finished on this server |
void |
incTotalFinishedJobs()
Increments the totalFinishedJobs. |
boolean |
isAlive()
Checks if this server is alive or not, that is whether it is reachable and responding to queries |
void |
setAliveFlag(boolean alive)
Sets the alive flag |
void |
setAllocatedJobs(int number)
Sets the number of jobs that have been allocated to this server |
void |
setAvgJobComputationTime(float f)
Sets the average job completion time |
void |
setBusytime(float busytime)
Sets the busytime. |
void |
setHostname(java.lang.String hostname)
Sets the hostname for this server |
void |
setJobLimit(int jobLimit)
Sets the maximum number of jobs that can be allocated to this server. |
void |
setJobsCompletedCurrentPoll(int n)
Sets the number of Finished jobs |
void |
setOS(java.lang.String string)
Sets the OS |
void |
setPrevtime(float prevtime)
Sets the last time the server information was updated |
void |
setPricePerCpuSec(int cost)
Sets the cost of using the server per second of the CPUtime used |
void |
setPricePerJob(float cost)
Sets the cost per job for this compute server |
void |
setServerID(java.lang.String string)
Sets the server ID |
void |
setStatus(java.lang.String string)
Sets the Status |
void |
setTimeperjob(float timeperjob)
Sets the timeperjob. |
void |
setTotalFinishedJobs(int i)
Sets the number of jobs that have been finished so far |
void |
submitJob(Job j)
Submits a job for execution on this server. |
void |
updateAvgRateofCompletion(int numPoll)
Updates the average rate of completion |
void |
updateAvgRateofCompletion(int numPoll,
int pollTime)
Updates the average rate of completion |
void |
updateStatus()
Updates the status of this server. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ComputeServer()
| Method Detail |
public void calcJobLimit(int totalWaitJobs,
float totalAvgRateCompl)
totalWaitJobs - totalAvgRateCompl - public int getAllocatedJobs()
public float getAvgRateofCompletion()
public float getBusytime()
public int getPricePerCpuSec()
public float getPricePerJob()
public int getExecutingJobs()
public int getJobsCompletedCurrentPoll()
public java.lang.String getHostname()
public int getJobLimit()
public java.lang.String getServerID()
public float getPrevtime()
public java.lang.String getStatus()
public float getTimeperjob()
public int getTotalFinishedJobs()
public void incAllocatedJobs()
public void incExecutingJobs()
public void incJobsCompletedCurrentPoll()
public void incTotalFinishedJobs()
public void incFailedJobs()
public boolean isAlive()
public void setAliveFlag(boolean alive)
alive - public void setAllocatedJobs(int number)
number - public void updateAvgRateofCompletion(int numPoll)
numPoll -
public void updateAvgRateofCompletion(int numPoll,
int pollTime)
numPoll - pollTime - public void setBusytime(float busytime)
busytime - The busytime to setpublic void setPricePerCpuSec(int cost)
cost - public void setPricePerJob(float cost)
cost - public void setJobsCompletedCurrentPoll(int n)
n - public void setHostname(java.lang.String hostname)
hostname - public void setJobLimit(int jobLimit)
jobLimit - The jobLimit to setpublic void setPrevtime(float prevtime)
prevtime - The prevtime to setpublic void setStatus(java.lang.String string)
string - public void setTimeperjob(float timeperjob)
timeperjob - The timeperjob to setpublic void setServerID(java.lang.String string)
string - public void setTotalFinishedJobs(int i)
i - public void decExecutingJobs()
public void updateStatus()
public void submitJob(Job j)
j - - the Job to be executed.public java.lang.String getOS()
public void setOS(java.lang.String string)
string - public float getAvgJobComputationTime()
public void setAvgJobComputationTime(float f)
f - public int getFailedJobs()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||