org.gridbus.broker.farming.xgrid
Class XgridComputeServer

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.xgrid.XgridComputeServer

public class XgridComputeServer
extends ComputeServer

This class represents a compute server running Apple Xgrid

Version:
0.1.0
Author:
Marcos Assunção (marcosd@cs.mu.oz.au)

Field Summary
static int XGRID_1
           
static int XGRID_PREVIEW_2
           
 
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
XgridComputeServer()
          Default Constructor
XgridComputeServer(java.lang.Object o)
           
XgridComputeServer(java.lang.String hostname, java.lang.Object o)
          Default Constructor
 
Method Summary
 boolean discoverProperties()
          Checks if the compute server is up, and sets all its attributes
 java.lang.String getControllerHostname()
          Returns the controller hostname to be used by the client.
 int getXgridVersion()
          Returns Xgrid version
 void setControllerHostname(java.lang.String string)
          Sets the controller hostname to be used by the client with a Xgrid client.
 void setXgridVersion(int version)
          Sets Xgrid version
 
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
 

Field Detail

XGRID_PREVIEW_2

public static final int XGRID_PREVIEW_2
See Also:
Constant Field Values

XGRID_1

public static final int XGRID_1
See Also:
Constant Field Values
Constructor Detail

XgridComputeServer

public XgridComputeServer()
Default Constructor


XgridComputeServer

public XgridComputeServer(java.lang.String hostname,
                          java.lang.Object o)
Default Constructor

Parameters:
o -
hostname -

XgridComputeServer

public XgridComputeServer(java.lang.Object o)
Parameters:
o -
Method Detail

getControllerHostname

public java.lang.String getControllerHostname()
Returns the controller hostname to be used by the client.

Returns:
string

setControllerHostname

public void setControllerHostname(java.lang.String string)
Sets the controller hostname to be used by the client with a Xgrid client.

Parameters:
string -

setXgridVersion

public void setXgridVersion(int version)
Sets Xgrid version

Parameters:
version -

getXgridVersion

public int getXgridVersion()
Returns Xgrid version

Returns:
the version of xgrid

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