org.gridbus.broker.farming.condor
Class CondorComputeServer

java.lang.Object
  |
  +--org.gridbus.broker.farming.common.Server
        |
        +--org.gridbus.broker.farming.common.ComputeServer
              |
              +--org.gridbus.broker.farming.condor.CondorComputeServer

public class CondorComputeServer
extends ComputeServer

This class represents a compute server running Condor

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

Field Summary
 
Fields inherited from class org.gridbus.broker.farming.common.ComputeServer
ALCHEMI, ALCHEMI_0_8, CONDOR, CONDOR_6_6_9, CONDOR_SHAREDFS, FORK_LOCAL, GLOBUS, GLOBUS_2_4, GLOBUS_3_2, GLOBUS_4_0, NORDUGRID, PBS, UNICORE, UNICORE_4_1, UNKNOWN, XGRID
 
Fields inherited from class org.gridbus.broker.farming.common.Server
BUSY, READY
 
Constructor Summary
CondorComputeServer(java.lang.String hostname)
           
CondorComputeServer(java.lang.String hostname, boolean mySharedFS)
           
 
Method Summary
 boolean discoverProperties()
          Checks if the compute server is up, and sets all its attributes
 java.lang.String getCPU()
          Returns the processor in the compute server
 java.lang.String getCPUspeed()
          Returns the processor speed.
 float getMemfree()
          Returns the free RAM available
 void prepareJob(Job j)
           
 void updateStatus()
          Updates the status of this server.
 
Methods inherited from class org.gridbus.broker.farming.common.ComputeServer
addJobListener, calcJobLimit, checkRequirements, decAllocatedJobs, decExecutingJobs, getAllocatedJobs, getArch, getAvgJobComputationTime, getAvgRateofCompletion, getBusytime, getContactString, getExecutingJobs, getFailedJobs, getJobLimit, getJobsCompletedCurrentPoll, getMemtotal, getNodeRequirements, getNumCPUs, getOS, getPrevtime, getPricePerCpuSec, getPricePerJob, getQueueCollection, getTimeperjob, getTotalFinishedJobs, getType, getUserCredential, incAllocatedJobs, incExecutingJobs, incFailedJobs, incJobsCompletedCurrentPoll, incTotalFinishedJobs, isAlive, isRequirementSatisfied, recoverJob, removeAllJobListeners, removeJobListener, setAliveFlag, setAllocatedJobs, setArch, setAvgJobComputationTime, setBusytime, setContactString, setExecutingJobs, setFailedJobs, setJobLimit, setJobsCompletedCurrentPoll, setManager, setMemtotal, setNodeRequirements, setNumCPUs, setOS, setPrevtime, setPricePerCpuSec, setPricePerJob, setQueueCollection, setServerID, setTimeperjob, setTotalFinishedJobs, setType, setUserCredential, shutdown, startMonitoring, startup, submitJob, updateAvgRateofCompletion
 
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
 

Constructor Detail

CondorComputeServer

public CondorComputeServer(java.lang.String hostname)
Parameters:
hostname -

CondorComputeServer

public CondorComputeServer(java.lang.String hostname,
                           boolean mySharedFS)
Parameters:
hostname -
mySharedFS -
Method Detail

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

getCPU

public java.lang.String getCPU()
Returns the processor in the compute server

Returns:
string

getMemfree

public float getMemfree()
Returns the free RAM available

Returns:
float

getCPUspeed

public java.lang.String getCPUspeed()
Returns the processor speed.

Returns:
string

updateStatus

public void updateStatus()
Description copied from class: ComputeServer
Updates the status of this server.

Specified by:
updateStatus in class ComputeServer
See Also:
* Updates the status of the compute server

prepareJob

public void prepareJob(Job j)
Overrides:
prepareJob in class ComputeServer
Parameters:
j - - job object
See Also:
* Submits the job to the job manager