|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gridbus.broker.farming.common.Server
org.gridbus.broker.farming.common.data.DataHost
public class 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 DataHost 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 |
void |
clearFilePaths()
Clears all the file paths associated with 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 |
getEnv()
Gets the required environment script for the DataHost, used during job submission. |
java.util.Hashtable |
getFileList()
|
java.lang.String |
getFilePath(java.lang.String filename)
Returns the path of the file on this host specified by the filename |
java.lang.String |
getFullFilePath(java.lang.String filename)
Returns the full path of the file (including the filename) on this host specified by the filename |
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 |
setNetworkService(NetworkStatusService nss)
Sets the NetworkStatusService to use for querying information about the network. |
void |
setRankedservers(java.lang.Object o)
Sets the list containing the servers ranked according to total costs |
void |
setRanks(java.lang.Object o)
|
void |
setRanks(java.lang.Object o,
java.lang.String opt)
Ranks the compute servers based on the network bandwidth between the compute server and this datahost |
| Methods inherited from class org.gridbus.broker.farming.common.Server |
|---|
getHostname, getServerID, setHostname, setServerID |
| 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 void clearFilePaths()
public java.lang.String getFilePath(java.lang.String filename)
filename -
public void setNetworkService(NetworkStatusService nss)
nss - public java.lang.String getFullFilePath(java.lang.String filename)
filename -
public boolean isFilePresent(java.lang.String filename)
filename -
public void setRanks(java.lang.Object o)
throws GridBrokerException
o -
GridBrokerException
public void setRanks(java.lang.Object o,
java.lang.String opt)
throws GridBrokerException
o - - Computeservers to be rankedopt -
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
GridBrokerExceptionsetCosts(Object)public 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 -
GridBrokerExceptionpublic java.lang.String getEnv()
public java.util.Hashtable getFileList()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||