org.gridbus.broker.common
Class NetworkLink
java.lang.Object
org.gridbus.broker.common.NetworkLink
public class NetworkLink
- extends java.lang.Object
Represents a network link between two hosts on the grid.
We normally use the NetworkLink with a datahost as dataHostname, and a computeserver as serverHostname
- Author:
- Krishna
|
Constructor Summary |
NetworkLink()
|
NetworkLink(java.lang.String datahostname,
java.lang.String serverHostname,
float bandwidth,
float cost)
Constructor for the NetworkLink class |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NetworkLink
public NetworkLink()
NetworkLink
public NetworkLink(java.lang.String datahostname,
java.lang.String serverHostname,
float bandwidth,
float cost)
- Constructor for the NetworkLink class
- Parameters:
dataHostname - serverHostname - bandwidth - cost -
getBandwidth
public float getBandwidth()
- Returns:
- bandwidth
getCost
public float getCost()
- Returns:
- cost
setBandwidth
public void setBandwidth(float bandwidth)
- Parameters:
bandwidth -
setCost
public void setCost(float cost)
- Parameters:
cost -
getDataHostname
public java.lang.String getDataHostname()
- Returns:
- Returns the dataHostname.
setDataHostname
public void setDataHostname(java.lang.String host1)
- Parameters:
dataHostname - The dataHostname to set.
getServerHostname
public java.lang.String getServerHostname()
- Returns:
- Returns the serverHostname.
setServerHostname
public void setServerHostname(java.lang.String host2)
- Parameters:
serverHostname - The serverHostname to set.
getApplicationID
public java.lang.String getApplicationID()
- Returns:
- Returns the applicationID.
setApplicationID
public void setApplicationID(java.lang.String applicationID)
- Parameters:
applicationID - The applicationID to set.