|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.gridbus.broker.farming.common.Server
|
+--org.gridbus.broker.farming.common.ComputeServer
This class describes a general computational server and provides the methods for accessing and manipulating the information contained.
| Field Summary | |
static int |
ALCHEMI
Default Alchemi version supported |
static int |
ALCHEMI_0_8
|
static int |
CONDOR
Default Condor Version supported |
static int |
CONDOR_6_6_9
|
static int |
CONDOR_SHAREDFS
Condor server with a shared-file-system |
static int |
FORK_LOCAL
|
static int |
GLOBUS
Default Globus version supported |
static int |
GLOBUS_2_4
|
static int |
GLOBUS_3_2
|
static int |
GLOBUS_4_0
|
static int |
NORDUGRID
|
static int |
PBS
Default PBS version supported |
static int |
UNICORE
Default Unicore version supported |
static int |
UNICORE_4_1
|
static int |
UNKNOWN
|
static int |
XGRID
|
| Fields inherited from class org.gridbus.broker.farming.common.Server |
BUSY, READY |
| Constructor Summary | |
ComputeServer()
|
|
| Method Summary | |
void |
addJobListener(JobListener jl)
Registers a joblistener with the server. |
void |
calcJobLimit(long totalWaitJobs,
float totalAvgRateCompl)
Calculates the number of jobs that can be allocated to this server. |
boolean |
checkRequirements()
Sends off a job to check if the requirements are satisfied, and tries to perform the appropriate operations to satisfy the requirement. |
void |
decAllocatedJobs()
Decrements the number of jobs allocated to this server |
void |
decExecutingJobs()
Deprecated. |
abstract boolean |
discoverProperties()
Discover the dynamic server properties |
int |
getAllocatedJobs()
Returns the number of jobs allocated to this server and not in execution |
java.lang.String |
getArch()
Returns the architecture of the compute server |
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. |
java.lang.String |
getContactString()
Returns the server contact string. |
int |
getExecutingJobs()
Returns the number of jobs currently executing on the server. |
int |
getFailedJobs()
Returns the number of failed jobs |
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 |
float |
getMemtotal()
Returns total physical memory (RAM) available |
NodeRequirement |
getNodeRequirements()
|
int |
getNumCPUs()
Returns the number of processors. |
java.lang.String |
getOS()
Returns the OS string |
float |
getPrevtime()
Returns the prevtime. |
float |
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.util.Collection |
getQueueCollection()
|
float |
getTimeperjob()
Returns the time taken per job |
int |
getTotalFinishedJobs()
Returns the number of jobs that have been finished on this server so far. |
int |
getType()
|
UserCredential |
getUserCredential()
|
void |
incAllocatedJobs()
Increments the number of jobs allocated to this server |
void |
incExecutingJobs()
Deprecated. |
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. |
boolean |
isRequirementSatisfied()
|
void |
recoverJob(Job j)
This method queries the remote-node for the latest job-status and tries to recover the job output from the remote-node. |
void |
removeAllJobListeners()
Unregisters all the joblisteners |
void |
removeJobListener(JobListener jl)
Unregisters a joblistener. |
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 |
setArch(java.lang.String string)
Sets the architecture of this server |
void |
setAvgJobComputationTime(float f)
Sets the average job completion time |
void |
setBusytime(float busytime)
Sets the busytime. |
void |
setContactString(java.lang.String string)
Sets the server contact string. |
void |
setExecutingJobs(int executingJobs)
|
void |
setFailedJobs(int failedJobs)
|
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 |
setManager(ComputeServerManager manager)
|
void |
setMemtotal(float f)
Sets the value for the total physical memory for this server |
void |
setNodeRequirements(NodeRequirement nodeRequirements)
|
void |
setNumCPUs(int i)
Sets the number of processors. |
void |
setOS(java.lang.String string)
Sets the OS |
void |
setPrevtime(float prevtime)
Sets the last time the server information was updated |
void |
setPricePerCpuSec(float 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 |
setQueueCollection(java.util.Collection queueCollection)
|
void |
setServerID(java.lang.String string)
Sets the server ID |
void |
setTimeperjob(float timeperjob)
Sets the timeperjob. |
void |
setTotalFinishedJobs(int i)
Sets the number of jobs that have been finished so far |
void |
setType(int type)
|
void |
setUserCredential(UserCredential userCredential)
|
void |
shutdown()
This method will stop the manager for this compute server, and shutdown the compute server. |
void |
startMonitoring(Job j)
Starts monitoring the job passed in, if it was submitted to this server. |
void |
startup()
Start the ComputeServer, and its Manager and JobMonitor for this server. |
void |
submitJob(Job j)
Submits a job for execution on this server. |
void |
updateAvgRateofCompletion(int numPoll,
int pollTime)
Updates the average rate of completion |
abstract void |
updateStatus()
Updates the status of this server. |
| Methods inherited from class org.gridbus.broker.farming.common.Server |
getHostname, getServerID, getServerStatus, getStatus, setHostname, setServerStatus, setStatus, statusInt, statusString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int UNKNOWN
public static final int FORK_LOCAL
public static final int GLOBUS_2_4
public static final int GLOBUS_3_2
public static final int GLOBUS_4_0
public static final int GLOBUS
public static final int UNICORE_4_1
public static final int UNICORE
public static final int ALCHEMI_0_8
public static final int ALCHEMI
public static final int CONDOR_6_6_9
public static final int CONDOR
public static final int CONDOR_SHAREDFS
public static final int PBS
public static final int NORDUGRID
public static final int XGRID
| Constructor Detail |
public ComputeServer()
| Method Detail |
public void setManager(ComputeServerManager manager)
manager - public final void startup()
public final void shutdown()
public void calcJobLimit(long totalWaitJobs,
float totalAvgRateCompl)
totalWaitJobs - totalAvgRateCompl - public int getAllocatedJobs()
public float getAvgRateofCompletion()
public float getBusytime()
public float getPricePerCpuSec()
public float getPricePerJob()
public int getExecutingJobs()
public int getJobsCompletedCurrentPoll()
public int getJobLimit()
public float getPrevtime()
public float getTimeperjob()
public int getTotalFinishedJobs()
public void incAllocatedJobs()
public void decAllocatedJobs()
public void incExecutingJobs()
public void incJobsCompletedCurrentPoll()
public void incTotalFinishedJobs()
public void incFailedJobs()
public final boolean checkRequirements()
public boolean isAlive()
public void setAliveFlag(boolean alive)
alive - public void setAllocatedJobs(int number)
number - public void setExecutingJobs(int executingJobs)
executingJobs - The executingJobs to set.public void setFailedJobs(int failedJobs)
failedJobs - The failedJobs to set.
public void updateAvgRateofCompletion(int numPoll,
int pollTime)
numPoll - pollTime - public void setBusytime(float busytime)
busytime - The busytime to setpublic void setPricePerCpuSec(float cost)
cost - public void setPricePerJob(float cost)
cost - public void setJobsCompletedCurrentPoll(int n)
n - public void setJobLimit(int jobLimit)
jobLimit - The jobLimit to setpublic void setPrevtime(float prevtime)
prevtime - The prevtime to setpublic void setTimeperjob(float timeperjob)
timeperjob - The timeperjob to setpublic void setServerID(java.lang.String string)
string - public void setTotalFinishedJobs(int i)
i -
public abstract boolean discoverProperties()
throws java.lang.Exception
java.lang.Exceptionpublic void decExecutingJobs()
public abstract void updateStatus()
public final void submitJob(Job j)
j - - the Job to be executed.public final void startMonitoring(Job j)
j - 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()
public java.lang.String getContactString()
public void setContactString(java.lang.String string)
string - public java.lang.String getArch()
public float getMemtotal()
public void setArch(java.lang.String string)
string - public void setMemtotal(float f)
f - public int getNumCPUs()
public void setNumCPUs(int i)
i - intpublic int getType()
public void setType(int type)
type - The type to set.public void setNodeRequirements(NodeRequirement nodeRequirements)
nodeRequirements - public NodeRequirement getNodeRequirements()
public boolean isRequirementSatisfied()
public final void addJobListener(JobListener jl)
jl - public final void removeJobListener(JobListener jl)
jl - public final void removeAllJobListeners()
public final void recoverJob(Job j)
j - (Job whose output needs to be recovered).public UserCredential getUserCredential()
public void setUserCredential(UserCredential userCredential)
userCredential - The userCredential to set.public java.util.Collection getQueueCollection()
public void setQueueCollection(java.util.Collection queueCollection)
queueCollection - The queueCollection to set.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||