org.gridbus.broker.services.compute.simulation
Class SimComputeServer

java.lang.Object
  extended by org.gridbus.broker.common.Service
      extended by org.gridbus.broker.common.ComputeServer
          extended by org.gridbus.broker.services.compute.simulation.SimComputeServer

public class SimComputeServer
extends ComputeServer

Author:
krishna

Constructor Summary
SimComputeServer(java.lang.String hostname)
           
 
Method Summary
protected  boolean discoverProperties(UserCredential uc)
          Discover the dynamic server properties
 int getMiddlewareType()
           
 int queryJobStatus(Job j)
           
 int queryJobStatus(org.gridbus.scs.common.SCSJob j)
           
 
Methods inherited from class org.gridbus.broker.common.ComputeServer
addQueue, getArch, getAvgJobComputationTime, getCPU, getCPUspeed, getFreeMemory, getHostname, getJobLimit, getJobStats, getNumCPUs, getOS, getPricePerCpuSec, getPricePerJob, getQueues, getServiceType, getTotalMemory, hasQueues, isFirewalled, isGateway, setArch, setAvgJobComputationTime, setCPU, setCPUspeed, setFirewalled, setFreeMemory, setGateway, setHostname, setJobLimit, setJobStats, setNumCPUs, setOS, setPricePerCpuSec, setPricePerJob, setQueues, setTotalMemory, supportServiceDiscovery
 
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

SimComputeServer

public SimComputeServer(java.lang.String hostname)
Parameters:
hostname -
managerType -
o -
Method Detail

queryJobStatus

public int queryJobStatus(org.gridbus.scs.common.SCSJob j)
Specified by:
queryJobStatus in class ComputeServer

queryJobStatus

public int queryJobStatus(Job j)
Specified by:
queryJobStatus in class ComputeServer
Returns:
job status

discoverProperties

protected boolean discoverProperties(UserCredential uc)
                              throws GridBrokerException
Description copied from class: ComputeServer
Discover the dynamic server properties

Specified by:
discoverProperties in class ComputeServer
Parameters:
uc - : credential to use while discovering properties
Returns:
boolean specifying whether this server is available
Throws:
GridBrokerException
See Also:
org.gridbus.broker.farming.common.ComputeServer#discoverProperties(org.gridbus.broker.farming.common.security.UserCredential)

getMiddlewareType

public int getMiddlewareType()
Specified by:
getMiddlewareType in class ComputeServer
Returns:
MiddlewareType constant
See Also:
org.gridbus.broker.farming.common.ComputeServer#getMiddlewareType()

Copyright © The University of Melbourne. 2006