org.gridbus.broker.scheduler
Class DataComputeSet

java.lang.Object
  extended by org.gridbus.broker.scheduler.DataComputeSet

public class DataComputeSet
extends java.lang.Object

This class represents a DataCompute pair, which includes a data host, and a compute server

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

Constructor Summary
DataComputeSet()
          Default constructor
DataComputeSet(ComputeServer cs, DataHostFilePair dhp, float time, float budget)
          Constructor for DataComputePair, sets up the internal data structures.
 
Method Summary
 void addDataHostFilePair(DataHostFilePair dhp)
          Sets the data host for this pair
 float getComputeCost()
          Returns the computeCost.
 ComputeServer getComputeServer()
          Returns the ComputeServer in the pair
 float getComputeTime()
           
 float getDataCost()
          Returns the dataCost.
 DataHost getDataHost(DataFile df)
          Returns the DataHost in the pair
 java.util.Hashtable getDataTable()
           
 float getDataTransferTime()
          Returns the time for transferring data from the data host to the compute server
 float getTotalCost()
          Returns the totalCost.
 float getTotalTime()
          Returns the totalTime estimate for this pair
 void setComputeCost(float computeCost)
          Sets the computeCost.
 void setComputeServer(ComputeServer server)
          Sets the compute server for this pair
 void setComputeTime(float computeTime)
           
 void setDataCost(float dataCost)
          Sets the dataCost.
 void setDataTransferTime(float f)
          Sets the time for transferring data from the data host to the compute server
 void setTotalCost(float totalCost)
          Returns the totalCost.
 void setTotalTime(float f)
          Sets the total time for this set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataComputeSet

public DataComputeSet()
Default constructor


DataComputeSet

public DataComputeSet(ComputeServer cs,
                      DataHostFilePair dhp,
                      float time,
                      float budget)
Constructor for DataComputePair, sets up the internal data structures.

Parameters:
cs - - ComputeServer
dhp -
time -
budget -
Method Detail

getComputeServer

public ComputeServer getComputeServer()
Returns the ComputeServer in the pair

Returns:
ComputeServer

getDataHost

public DataHost getDataHost(DataFile df)
Returns the DataHost in the pair

Parameters:
df -
Returns:
DataHost

getComputeTime

public float getComputeTime()
Returns:
Returns the computeTime.

getDataTable

public java.util.Hashtable getDataTable()
Returns:
Returns the dataTable.

setComputeTime

public void setComputeTime(float computeTime)
Parameters:
computeTime - The computeTime to set.

getTotalTime

public float getTotalTime()
Returns the totalTime estimate for this pair

Returns:
float

setComputeServer

public void setComputeServer(ComputeServer server)
Sets the compute server for this pair

Parameters:
server -

addDataHostFilePair

public void addDataHostFilePair(DataHostFilePair dhp)
Sets the data host for this pair

Parameters:
dhp -

setTotalTime

public void setTotalTime(float f)
Sets the total time for this set

Parameters:
f -

getDataTransferTime

public float getDataTransferTime()
Returns the time for transferring data from the data host to the compute server

Returns:
float

setDataTransferTime

public void setDataTransferTime(float f)
Sets the time for transferring data from the data host to the compute server

Parameters:
f -

getComputeCost

public float getComputeCost()
Returns the computeCost.

Returns:
float

setComputeCost

public void setComputeCost(float computeCost)
Sets the computeCost.

Parameters:
computeCost -

getDataCost

public float getDataCost()
Returns the dataCost.

Returns:
float

setDataCost

public void setDataCost(float dataCost)
Sets the dataCost.

Parameters:
dataCost -

getTotalCost

public float getTotalCost()
Returns the totalCost.

Returns:
float

setTotalCost

public void setTotalCost(float totalCost)
Returns the totalCost.

Parameters:
totalCost -