org.gridbus.broker.scheduler
Class DataComputePair

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

public class DataComputePair
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
DataComputePair()
          Default constructor
DataComputePair(ComputeServer cs, DataHost dh, float time, float budget)
          Constructor for DataComputePair, sets up the internal data structures.
 
Method Summary
 float getComputeCost()
          Returns the computeCost.
 ComputeServer getComputeServer()
          Returns the ComputeServer in the pair
 float getDataCost()
          Returns the dataCost.
 DataHost getDataHost()
          Returns the DataHost in the pair
 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 setDataCost(float dataCost)
          Sets the dataCost.
 void setDataHost(DataHost host)
          Sets the data host for this pair
 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 pair
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataComputePair

public DataComputePair()
Default constructor


DataComputePair

public DataComputePair(ComputeServer cs,
                       DataHost dh,
                       float time,
                       float budget)
Constructor for DataComputePair, sets up the internal data structures.

Parameters:
cs - - ComputeServer
dh - - DataHost
time -
budget -
Method Detail

getComputeServer

public ComputeServer getComputeServer()
Returns the ComputeServer in the pair

Returns:
ComputeServer

getDataHost

public DataHost getDataHost()
Returns the DataHost in the pair

Returns:
DataHost

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 -

setDataHost

public void setDataHost(DataHost host)
Sets the data host for this pair

Parameters:
host -

setTotalTime

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

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 -