org.gridbus.broker.farming.globus
Class GlobusComputeServer

java.lang.Object
  |
  +--org.gridbus.broker.farming.common.Server
        |
        +--org.gridbus.broker.farming.common.ComputeServer
              |
              +--org.gridbus.broker.farming.globus.GlobusComputeServer

public class GlobusComputeServer
extends ComputeServer

This class represents a compute server running Globus middleware

Version:
2.0
Author:
Srikumar Venugopal (srikumar@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
GlobusComputeServer()
          Default Constructor
GlobusComputeServer(java.lang.String contact)
          Constructor for this class.
 
Method Summary
 boolean checkPing()
          Checks if the compute server is up
 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
 int getCPUFree15min()
          Returns the processors which will be free in 15 minutes.
 int getCPUFree1min()
          Returns the processors which will be free in 1 minute.
 int getCPUFree5min()
          Returns the processors which will be free in 5 minutes.
 java.lang.String getCPUspeed()
          Returns the processor speed.
 GlobusGassServer getGassServer()
           
 int getGatekeeperPort()
          Returns the remote gatekeeper port.
 float getMemfree()
          Returns the free RAM available
 org.ietf.jgss.GSSCredential getProxy()
          Returns the proxy for this server.
 void prepareJob(Job j)
           
 void setContactString(java.lang.String contact)
          Over-rides the ComputeServer.setContactString, since it needs to be parsed in this case to get the jobmanager string
 void setGatekeeperPort(int gkprPt)
          Sets the remote gatekeeper port.
 void setProxy(org.ietf.jgss.GSSCredential credential)
          Sets the proxy for this server.
 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, 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

GlobusComputeServer

public GlobusComputeServer()
Default Constructor


GlobusComputeServer

public GlobusComputeServer(java.lang.String contact)
Constructor for this class.

Parameters:
contact -
Method Detail

setContactString

public void setContactString(java.lang.String contact)
Over-rides the ComputeServer.setContactString, since it needs to be parsed in this case to get the jobmanager string

Overrides:
setContactString in class ComputeServer
Parameters:
contact -
See Also:
ComputeServer.setContactString(java.lang.String)

checkPing

public boolean checkPing()
Checks if the compute server is up

Returns:
true if the server is alive

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

getCPUFree15min

public int getCPUFree15min()
Returns the processors which will be free in 15 minutes.

Returns:
int

getCPUFree1min

public int getCPUFree1min()
Returns the processors which will be free in 1 minute.

Returns:
# of free CPUS in 5 minutes

getCPUFree5min

public int getCPUFree5min()
Returns the processors which will be free in 5 minutes.

Returns:
# of free CPUS in 5 minutes

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

getGatekeeperPort

public int getGatekeeperPort()
Returns the remote gatekeeper port.

Returns:
int

setGatekeeperPort

public void setGatekeeperPort(int gkprPt)
Sets the remote gatekeeper port.

Parameters:
gkprPt - - gatekeeper port

getProxy

public org.ietf.jgss.GSSCredential getProxy()
Returns the proxy for this server.

Returns:
GSSCredential proxy object

setProxy

public void setProxy(org.ietf.jgss.GSSCredential credential)
Sets the proxy for this server.

Parameters:
credential -

getGassServer

public GlobusGassServer getGassServer()
Returns:
Returns the gass_server.(This method also starts the gass server if it is not started already)