|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.gridbus.broker.farming.common.DataHost
This class represents a DataHost and its attributes
| Field Summary | |
static float |
MAX_BW
Maximum Bandwidth |
static int |
MAX_COST
Maximum Cost |
static float |
MIN_BW
Minimum Bandwidth |
static int |
MIN_COST
Minimum Cost |
| Constructor Summary | |
DataHost(java.lang.String hostname)
Constructor for HEPDataHost class |
|
| Method Summary | |
void |
addFilePath(java.lang.String filename,
java.lang.String path)
Adds a filepath to the list of existing files hosted by this datahost |
float |
getBandwidth(java.lang.String cs)
Returns the bandwidth that was last recorded between this data host and the hostname supplied as argument. |
float |
getCost(java.lang.String cs)
Returns the cost for the network link between this data host and the hostname supplied as argument. |
java.lang.String |
getFilePath(java.lang.String filename)
Returns the path of the file on this host specified by the filename |
java.lang.String |
getHostname()
Returns the hostname. |
java.lang.Object |
getRankedservers()
|
boolean |
isFilePresent(java.lang.String filename)
Returns whether the file specified by the filename exists on this host or not |
void |
setCosts(java.lang.Object o)
Sets the costs for the compute servers randomly between 0 and MAX_COST for this data host and the compute servers in the list |
void |
setCosts(java.lang.String costStr,
java.lang.Object o)
Sets the costs for the compute servers after reading from a file specified by COST_FILE in Broker Properties. |
void |
setRankedservers(java.lang.Object o)
Sets the list containing the servers ranked according to total costs |
void |
setRanks(java.lang.Object o)
Ranks the compute servers based on the network bandwidth between the compute server and this datahost |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final float MAX_BW
public static final float MIN_BW
public static final int MIN_COST
public static final int MAX_COST
| Constructor Detail |
public DataHost(java.lang.String hostname)
hostname - | Method Detail |
public void addFilePath(java.lang.String filename,
java.lang.String path)
filename - path - public java.lang.String getFilePath(java.lang.String filename)
filename -
public java.lang.String getHostname()
public boolean isFilePresent(java.lang.String filename)
filename -
public void setRanks(java.lang.Object o)
throws GridBrokerException
o - - Computeservers to be ranked
GridBrokerExceptionpublic void setCosts(java.lang.Object o)
o - - Compute server list object
public void setCosts(java.lang.String costStr,
java.lang.Object o)
throws java.io.FileNotFoundException,
GridBrokerException
costStr - o - - Compute server list object
java.io.FileNotFoundException
GridBrokerExceptionpublic java.lang.Object getRankedservers()
public void setRankedservers(java.lang.Object o)
o - - rankedServer list
public float getBandwidth(java.lang.String cs)
throws GridBrokerException
cs - - compute server id
GridBrokerException
public float getCost(java.lang.String cs)
throws GridBrokerException
cs -
GridBrokerException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||