org.gridbus.broker.farming.globus
Class GlobusComputeServer

java.lang.Object
  extended byorg.gridbus.broker.farming.common.ComputeServer
      extended byorg.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)

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, and sets the alive flag
 java.lang.String getArch()
          Returns the architecture of the compute server
 java.lang.String getContactString()
          Returns the server contact string.
 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.
 int getGatekeeperPort()
          Returns the remote gatekeeper port.
 RemoteJobManager getJobManager()
          Returns the remote job manager.
 float getMemfree()
          Returns the free RAM available
 float getMemtotal()
          Returns total physical memory (RAM) available
 int getNumCPUs()
          Returns the number of processors.
 org.ietf.jgss.GSSCredential getProxy()
          Returns the proxy for this server.
 void setContactString(java.lang.String string)
          Sets the server contact string.
 void setGatekeeperPort(int gkprPt)
          Sets the remote gatekeeper port.
 void setJobManager(RemoteJobManager manager)
          Sets the remote job manager.
 void setProxy(org.ietf.jgss.GSSCredential credential)
          Sets the proxy for this server.
 void setValues()
          Checks if the compute server is up, and sets all its attributes
 void submitJob(Job j)
          Submits the job to the job manager
 void updateStatus()
          Updates the status of the compute server
 
Methods inherited from class org.gridbus.broker.farming.common.ComputeServer
calcJobLimit, decExecutingJobs, getAllocatedJobs, getAvgJobComputationTime, getAvgRateofCompletion, getBusytime, getExecutingJobs, getFailedJobs, getHostname, getJobLimit, getJobsCompletedCurrentPoll, getOS, getPrevtime, getPricePerCpuSec, getPricePerJob, getServerID, getStatus, getTimeperjob, getTotalFinishedJobs, incAllocatedJobs, incExecutingJobs, incFailedJobs, incJobsCompletedCurrentPoll, incTotalFinishedJobs, isAlive, setAliveFlag, setAllocatedJobs, setAvgJobComputationTime, setBusytime, setHostname, setJobLimit, setJobsCompletedCurrentPoll, setOS, setPrevtime, setPricePerCpuSec, setPricePerJob, setServerID, setStatus, setTimeperjob, setTotalFinishedJobs, updateAvgRateofCompletion, updateAvgRateofCompletion
 
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

checkPing

public boolean checkPing()
Checks if the compute server is up, and sets the alive flag


setValues

public void setValues()
               throws java.lang.Exception
Checks if the compute server is up, and sets all its attributes

Throws:
java.lang.Exception

getArch

public java.lang.String getArch()
Returns the architecture of the compute server

Returns:
string

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

getMemtotal

public float getMemtotal()
Returns total physical memory (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

getNumCPUs

public int getNumCPUs()
Returns the number of processors.

Returns:
int

getCPUspeed

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

Returns:
string

updateStatus

public void updateStatus()
Updates the status of the compute server

Overrides:
updateStatus in class ComputeServer

submitJob

public void submitJob(Job j)
Submits the job to the job manager

Overrides:
submitJob in class ComputeServer
Parameters:
j - - job object

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

getContactString

public java.lang.String getContactString()
Returns the server contact string.

Returns:
string

setContactString

public void setContactString(java.lang.String string)
Sets the server contact string.

Parameters:
string -

getJobManager

public RemoteJobManager getJobManager()
Returns the remote job manager.

Returns:
RemoteJobManager object

setJobManager

public void setJobManager(RemoteJobManager manager)
Sets the remote job manager.

Parameters:
manager - object

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 -