org.gridbus.broker.initializer
Class Initialization

java.lang.Object
  extended byorg.gridbus.broker.initializer.Initialization

public class Initialization
extends java.lang.Object

This class handles initialization of variables for the Broker

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

Constructor Summary
Initialization()
          Constructor initialises the internal data structures for the broker properties, gatekeeper, datafiles and datahosts
 
Method Summary
 java.lang.Object getComputeServers()
          Returns the list of compute servers found
 java.util.Vector getDataFileList()
          Returns the datafiles table
 java.util.Hashtable getDatahosts()
          Returns the datahosts table
 java.util.Properties getDBProperties()
          Returns the Broker properties object
 java.lang.Object getHostListObject()
          Returns the hostlist object, which is a string (file name containing hosts) / collection of hosts
 java.lang.Object getJobs()
          Gets the jobs prepared from the XML file.
 java.lang.String getPlanFileName()
          Returns the plan file name
 RunFile getRunFileObj()
           
 boolean isInputDataFilePresent()
          True / False based on whether the input data file is present
 boolean isOutputDataFilePresent()
          To be implemented
 void setDBProperties(java.util.Properties properties)
           
 void setHostListObject(java.lang.Object object)
          Sets the host list object which is a string(file name) / collection
 void setPlanFileName(java.lang.String string)
          Sets the plan file name
 void setUp()
          The setup method reads the following files: - plan file - gatekeeper file From the plan file, this method retrieves the logical filenames, resolves these to the actual physical file location, retrieves the file attributes for each file and sets up the datafiles and datahosts tables The plan file contents are also used to prepare the jobs to be scheduled From the gatekeeper file, the compute servers are discovered and probed.
 boolean transfer(Task task)
          To be implemented in the future
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Initialization

public Initialization()
Constructor initialises the internal data structures for the broker properties, gatekeeper, datafiles and datahosts

Method Detail

setUp

public void setUp()
           throws java.lang.Exception
The setup method reads the following files: - plan file - gatekeeper file From the plan file, this method retrieves the logical filenames, resolves these to the actual physical file location, retrieves the file attributes for each file and sets up the datafiles and datahosts tables The plan file contents are also used to prepare the jobs to be scheduled From the gatekeeper file, the compute servers are discovered and probed. This sets up the computeserverlist. These lists (datafiles, datahosts, computeservers) are used by the scheduler to schedule jobs.

Throws:
java.lang.Exception

transfer

public boolean transfer(Task task)
                 throws java.lang.Exception
To be implemented in the future

Parameters:
task -
Returns:
Throws:
java.lang.Exception

getJobs

public java.lang.Object getJobs()
Gets the jobs prepared from the XML file. (which is the result of processing the plan file)

Returns:
jobs list as a java vector

getPlanFileName

public java.lang.String getPlanFileName()
Returns the plan file name

Returns:
plan file name

setPlanFileName

public void setPlanFileName(java.lang.String string)
Sets the plan file name

Parameters:
string - (plan file name)

getComputeServers

public java.lang.Object getComputeServers()
Returns the list of compute servers found

Returns:
compute server list object

getHostListObject

public java.lang.Object getHostListObject()
Returns the hostlist object, which is a string (file name containing hosts) / collection of hosts

Returns:
hostlist object

setHostListObject

public void setHostListObject(java.lang.Object object)
Sets the host list object which is a string(file name) / collection

Parameters:
object -

getDataFileList

public java.util.Vector getDataFileList()
Returns the datafiles table

Returns:
datafile list as a vector

getDBProperties

public java.util.Properties getDBProperties()
Returns the Broker properties object

Returns:

setDBProperties

public void setDBProperties(java.util.Properties properties)
Parameters:
properties -

isInputDataFilePresent

public boolean isInputDataFilePresent()
True / False based on whether the input data file is present

Returns:
True / False based on whether the input data file is present for the plan file the farming engine is operating on.

isOutputDataFilePresent

public boolean isOutputDataFilePresent()
To be implemented

Returns:
true if the output data file is present

getDatahosts

public java.util.Hashtable getDatahosts()
Returns the datahosts table

Returns:
datahosts table as a java hashtable object

getRunFileObj

public RunFile getRunFileObj()
Returns: