org.gridbus.broker.farming.unicore
Class UnicoreComputeServer

java.lang.Object
  extended byorg.gridbus.broker.farming.common.ComputeServer
      extended byorg.gridbus.broker.farming.unicore.UnicoreComputeServer

public class UnicoreComputeServer
extends ComputeServer

This class describes a UNICORE server and its properties and provides the methods to execute its functions and access its members.

Author:
Deepa Nayar (dnayar@students.cs.mu.oz.au), Chun Ling Kei (clkei@students.cs.mu.oz.au), Parvin Asadzadeh (parvina@students.cs.mu.oz.au)

Constructor Summary
UnicoreComputeServer()
          Constructor for this class
 
Method Summary
 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.
 com.fujitsu.arcon.servlet.Identity getIdentity()
          Returns the identity for this server
 RemoteJobManager getJobManager()
          Returns the remote job manager.
 java.lang.String getKeystore()
          Gets the keystore for this server
 float getMemfree()
          Returns the free RAM available
 float getMemtotal()
          Returns total physical memory (RAM) available
 int getNumCPUs()
          Returns the number of processors.
 com.fujitsu.arcon.servlet.Reference getReference()
          Gets the refernce for this server
 com.fujitsu.arcon.servlet.VsiteTh getVsiteTh()
          Sets the refernce for this server
 void setContactString(java.lang.String string)
          Sets the server contact string.
 void setGatekeeperPort(int gkprPt)
          Sets the remote gatekeeper port.
 void setIdentity(com.fujitsu.arcon.servlet.Identity identity)
          Sets the identity for this server
 void setJobManager(RemoteJobManager manager)
          Sets the remote job manager.
 void setReference(com.fujitsu.arcon.servlet.Reference reference)
          Sets the reference for this server
 void setValues()
          Checks if the compute server is up, and sets all its attributes
 void setVsiteTh(com.fujitsu.arcon.servlet.VsiteTh vsite)
          Gets the Vsite for this server
 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

UnicoreComputeServer

public UnicoreComputeServer()
Constructor for this class

Method Detail

setValues

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

Throws:
java.lang.Exception

setIdentity

public void setIdentity(com.fujitsu.arcon.servlet.Identity identity)
Sets the identity for this server

Parameters:
identity -

getIdentity

public com.fujitsu.arcon.servlet.Identity getIdentity()
Returns the identity for this server

Returns:
Identity object

setReference

public void setReference(com.fujitsu.arcon.servlet.Reference reference)
Sets the reference for this server

Parameters:
reference -

getReference

public com.fujitsu.arcon.servlet.Reference getReference()
Gets the refernce for this server

Returns:
Reference object

setVsiteTh

public void setVsiteTh(com.fujitsu.arcon.servlet.VsiteTh vsite)
Gets the Vsite for this server

Parameters:
vsite -

getVsiteTh

public com.fujitsu.arcon.servlet.VsiteTh getVsiteTh()
Sets the refernce for this server

Returns:
vsite

getKeystore

public java.lang.String getKeystore()
Gets the keystore for this server

Returns:
keystore string

getArch

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

Returns:
architecture

getCPU

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

Returns:
CPU name

getMemfree

public float getMemfree()
Returns the free RAM available

Returns:
free RAM

getMemtotal

public float getMemtotal()
Returns total physical memory (RAM) available

Returns:
total RAM

getCPUFree15min

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

Returns:
free CPUs in 15 min.

getCPUFree1min

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

Returns:
free CPUs in 1 min.

getCPUFree5min

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

Returns:
# of processors

getNumCPUs

public int getNumCPUs()
Returns the number of processors.

Returns:
# of processors

getCPUspeed

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

Returns:
CPU speed

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:
gatekeeper port

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:
server contact

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