org.gridbus.broker.farming.pbs
Class PBSComputeServer

java.lang.Object
  extended by org.gridbus.broker.farming.common.Server
      extended by org.gridbus.broker.farming.common.ComputeServer
          extended by org.gridbus.broker.farming.pbs.PBSComputeServer

public class PBSComputeServer
extends ComputeServer

This class represents a compute server running PBS

Version:
2.0
Author:
Tianchi Ma (tcmar@cs.mu.oz.au)

Field Summary
 
Fields inherited from class org.gridbus.broker.farming.common.ComputeServer
ALCHEMI, ALCHEMI_0_8, BUSY, CHECKING_REQUIREMENTS, CONDOR, CONDOR_6_6_9, CONDOR_SHAREDFS, FORK, GLOBUS, GLOBUS_2_4, GLOBUS_3_2, GLOBUS_4_0, NORDUGRID, PBS, READY, SGE, STATUS_ANY, UNICORE, UNICORE_4_1, UNKNOWN, XGRID
 
Constructor Summary
PBSComputeServer()
          Default Constructor
PBSComputeServer(java.lang.Object o)
           
PBSComputeServer(java.lang.String host)
           
PBSComputeServer(java.lang.String host, java.util.Vector queues)
           
PBSComputeServer(java.lang.String hostname, java.util.Vector queues, java.lang.Object o)
           
PBSComputeServer(java.util.Vector queues)
           
 
Method Summary
 boolean discoverProperties()
          Checks if the compute server is up, and sets all its attributes
 java.util.Vector getAvailableQueues()
           
 void setAvailableQueues(java.util.Vector queues)
           
 
Methods inherited from class org.gridbus.broker.farming.common.ComputeServer
addJobListener, addQueue, calcJobLimit, decAllocatedJobs, discoverPropertiesGeneric, getAllocatedJobs, getArch, getAvgJobComputationTime, getAvgRateofCompletion, getBufferedJobs, getBusytime, getConfig, getContactString, getCPU, getCPUspeed, getDispatcher, getExecutingJobs, getFailedJobs, getJobLimit, getJobManager, getJobsCompletedCurrentPoll, getMaxnumjobs, getMemfree, getMemtotal, getNodeRequirements, getNumCPUs, getOS, getPrevtime, getPricePerCpuSec, getPricePerJob, getQueues, getServerStatus, getStatus, getTimeperjob, getTotalFinishedJobs, getType, getUserCredential, incAllocatedJobs, incFailedJobs, incJobsCompletedCurrentPoll, incTotalFinishedJobs, isAlive, isFirewalled, isRequirementSatisfied, notifyListeners, recoverJob, removeAllJobListeners, removeJobListener, serverTypeString, setAliveFlag, setAllocatedJobs, setArch, setAvgJobComputationTime, setBufferedJobs, setBusytime, setConfig, setContactString, setDispatcher, setExecutingJobs, setFailedJobs, setFirewalled, setJobLimit, setJobManager, setJobsCompletedCurrentPoll, setMaxnumjobs, setMemtotal, setNodeRequirements, setNumCPUs, setOS, setPrevtime, setPricePerCpuSec, setPricePerJob, setQueues, setTimeperjob, setTotalFinishedJobs, setType, setUserCredential, shutdown, startMonitoring, startup, statusInt, statusString, submitJob, updateAvgRateofCompletion, updateStatus
 
Methods inherited from class org.gridbus.broker.farming.common.Server
getHostname, getServerID, setHostname, setServerID
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PBSComputeServer

public PBSComputeServer()
Default Constructor


PBSComputeServer

public PBSComputeServer(java.util.Vector queues)
Parameters:
queues -

PBSComputeServer

public PBSComputeServer(java.lang.Object o)
Parameters:
o -

PBSComputeServer

public PBSComputeServer(java.lang.String host)
Parameters:
host -

PBSComputeServer

public PBSComputeServer(java.lang.String host,
                        java.util.Vector queues)
Parameters:
host -
queues -

PBSComputeServer

public PBSComputeServer(java.lang.String hostname,
                        java.util.Vector queues,
                        java.lang.Object o)
Parameters:
hostname -
queues -
o -
Method Detail

setAvailableQueues

public void setAvailableQueues(java.util.Vector queues)
Parameters:
queues -

getAvailableQueues

public java.util.Vector getAvailableQueues()
Returns:

discoverProperties

public boolean discoverProperties()
Checks if the compute server is up, and sets all its attributes

Specified by:
discoverProperties in class ComputeServer
Returns:
true if the properties have been discovered