|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridbus.broker.common.Service
org.gridbus.broker.common.ComputeServer
public abstract class ComputeServer
This class describes a general computational server and provides the methods for accessing and manipulating the information contained.
| Constructor Summary | |
|---|---|
protected |
ComputeServer()
|
|
ComputeServer(java.lang.String hostname)
|
| Method Summary | |
|---|---|
void |
addQueue(JobQueue jq)
|
protected abstract boolean |
discoverProperties(UserCredential uc)
Discover the dynamic server properties |
java.lang.String |
getArch()
Returns the architecture of the compute server |
float |
getAvgJobComputationTime()
Returns the average job completion time |
java.lang.String |
getCPU()
Returns the processor in the compute server |
java.lang.String |
getCPUspeed()
Returns the processor speed. |
long |
getFreeMemory()
Returns the free RAM available |
java.lang.String |
getHostname()
|
int |
getJobLimit()
Returns the maximum number of jobs that can be allocated to this server. |
JobStatistics |
getJobStats()
|
abstract int |
getMiddlewareType()
|
int |
getNumCPUs()
Returns the number of processors. |
java.lang.String |
getOS()
Returns the OS string |
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.List |
getQueues()
|
int |
getServiceType()
|
long |
getTotalMemory()
Returns total physical memory (RAM) available |
boolean |
hasQueues()
|
boolean |
isFirewalled()
|
boolean |
isGateway()
|
abstract int |
queryJobStatus(Job j)
|
abstract int |
queryJobStatus(org.gridbus.scs.common.SCSJob j)
|
void |
setArch(java.lang.String string)
Sets the architecture of this server |
void |
setAvgJobComputationTime(float f)
Sets the average job completion time |
protected void |
setCPU(java.lang.String string)
Sets the processor for this server |
protected void |
setCPUspeed(java.lang.String string)
Sets the processor speed value. |
void |
setFirewalled(boolean isFirewalled)
|
protected void |
setFreeMemory(long f)
Sets the value for the free physical memory for this server (in bytes) |
void |
setGateway(boolean gateway)
|
void |
setHostname(java.lang.String hostname)
|
void |
setJobLimit(int jobLimit)
Sets the maximum number of jobs that can be allocated to this server. |
void |
setJobStats(JobStatistics jobStats)
|
void |
setNumCPUs(int i)
Sets the number of processors. |
void |
setOS(java.lang.String string)
Sets the OS |
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 |
setQueues(java.util.List queues)
|
void |
setTotalMemory(long f)
Sets the value for the total physical memory for this server |
boolean |
supportServiceDiscovery()
only the compute server who implements the ServiceFinder interface will support service discovery |
| Methods inherited from class org.gridbus.broker.common.Service |
|---|
getApplicationID, getId, getMappingID, getName, isAvailable, setApplicationID, setAvailable, setMappingID, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ComputeServer()
public ComputeServer(java.lang.String hostname)
hostname - | Method Detail |
|---|
public abstract int queryJobStatus(org.gridbus.scs.common.SCSJob j)
throws java.lang.Exception
java.lang.Exception
public abstract int queryJobStatus(Job j)
throws java.lang.Exception
j -
java.lang.Exceptionpublic abstract int getMiddlewareType()
public int getServiceType()
getServiceType in class ServiceService.getServiceType()public float getPricePerCpuSec()
public float getPricePerJob()
public int getJobLimit()
public void setPricePerCpuSec(float cost)
cost - public void setPricePerJob(float cost)
cost - public void setJobLimit(int jobLimit)
jobLimit - The jobLimit to set
protected abstract boolean discoverProperties(UserCredential uc)
throws GridBrokerException
discoverProperties in class Serviceuc - : credential to use while discovering properties
java.lang.Exception
GridBrokerExceptionpublic java.lang.String getOS()
public void setOS(java.lang.String string)
string - public float getAvgJobComputationTime()
public void setAvgJobComputationTime(float f)
f - public java.lang.String getArch()
public long getTotalMemory()
public void setArch(java.lang.String string)
string - public void setTotalMemory(long f)
f - public int getNumCPUs()
public void setNumCPUs(int i)
i - intpublic boolean isFirewalled()
public void setFirewalled(boolean isFirewalled)
isFirewalled - The firewalled to set.public java.lang.String getCPU()
public long getFreeMemory()
protected void setCPU(java.lang.String string)
string - protected void setFreeMemory(long f)
f - - memorypublic java.lang.String getCPUspeed()
protected void setCPUspeed(java.lang.String string)
string - public java.lang.String getHostname()
public void setHostname(java.lang.String hostname)
hostname - The hostname to set.public void setQueues(java.util.List queues)
queues - public java.util.List getQueues()
public void addQueue(JobQueue jq)
jq - public boolean hasQueues()
public JobStatistics getJobStats()
public void setJobStats(JobStatistics jobStats)
public boolean isGateway()
public void setGateway(boolean gateway)
public boolean supportServiceDiscovery()
|
Copyright © The University of Melbourne. 2006 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||