org.gridbus.broker.gatekeeper
Class Gatekeeper

java.lang.Object
  extended byorg.gridbus.broker.gatekeeper.Gatekeeper

public class Gatekeeper
extends java.lang.Object

This class contains methods to generate compute server lists by discovering the server state

Author:
Srikumar Venugopal (srikumar@cs.mu.oz.au)

Constructor Summary
Gatekeeper()
          Constructor for the gatekeeper class
Gatekeeper(GridbusFarmingEngine fe)
          Constructor for the gatekeeper class
 
Method Summary
 void generateComputeServerList(java.util.Collection hostList)
          Generates a compute server list from the hostlist collection
 void generateComputeServerList(java.lang.Object o)
          This class is a wrapper class which calls the appropriate method to generate the list of compute servers.
 void generateComputeServerList(java.lang.String gkprFile)
          Generates the compute server list from the gatekeeper file
 java.util.Vector getComputeServerList()
          Returns the list of compute servers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Gatekeeper

public Gatekeeper()
Constructor for the gatekeeper class


Gatekeeper

public Gatekeeper(GridbusFarmingEngine fe)
Constructor for the gatekeeper class

Parameters:
fe - (farming engine)
Method Detail

getComputeServerList

public java.util.Vector getComputeServerList()
Returns the list of compute servers

Returns:
List of computer servers

generateComputeServerList

public void generateComputeServerList(java.lang.Object o)
                               throws java.lang.Throwable
This class is a wrapper class which calls the appropriate method to generate the list of compute servers. It can either be the name of the file or a list of hosts implemented as a Collection

Parameters:
o -
Throws:
java.lang.Throwable

generateComputeServerList

public void generateComputeServerList(java.lang.String gkprFile)
                               throws java.lang.Exception
Generates the compute server list from the gatekeeper file

Parameters:
gkprFile - : name of the gatekeeper file
Throws:
java.lang.Exception

generateComputeServerList

public void generateComputeServerList(java.util.Collection hostList)
                               throws java.lang.Exception
Generates a compute server list from the hostlist collection

Parameters:
hostList -
Throws:
java.lang.Exception