|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectplanetLabVideoClient.BandwidthResultBean
public class BandwidthResultBean
An instance of this class represents a bandwidth result.
It is similar to the StructBandwidthInfoBean
class
except that the member which contains the destination of the measurement is not a StructIPBean
but a Node
.
The reason why is that the ip may change (and it will!) so the hostname and node-id are better to rely on ;-)
It has getters and setters for each member variable, so that it is possible to save/load it using the XMLEncoder
.
Field Summary | |
---|---|
private double |
bw
|
private Node |
destNode
|
Constructor Summary | |
---|---|
BandwidthResultBean()
Create an empty instance of this class. |
|
BandwidthResultBean(StructBandwidthInfoBean bwInfo,
Node destNode)
Create an instance of BandwidthResultBean |
|
BandwidthResultBean(structBandwidthInfo bwInfo,
Node destNode)
Create an instance of BandwidthResultBean |
Method Summary | |
---|---|
double |
getBw()
|
Node |
getDestNode()
Returns the destination Node of this bandwidth measurement. |
structBandwidthInfo |
getStructBandwidthInfo()
Create a new structBandwidthInfo object, fill it with the values of this instance and return it to the caller. |
StructBandwidthInfoBean |
getStructBandwidthInfoBean()
Create a new structBandwidthInfoBean object, fill it with the values of this instance and return it to the caller. |
void |
setBw(double bw)
|
void |
setData(structBandwidthInfo bwInfo,
Node destNode)
Write all values from bwInfo to own ones. |
void |
setDestNode(Node destNode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private double bw
private Node destNode
Constructor Detail |
---|
public BandwidthResultBean()
public BandwidthResultBean(structBandwidthInfo bwInfo, Node destNode)
BandwidthResultBean representing the given bwInfo.
- Parameters:
bwInfo
-
public BandwidthResultBean(StructBandwidthInfoBean bwInfo, Node destNode)
BandwidthResultBean representing the given bwInfo.
- Parameters:
bwInfo
-
Method Detail |
---|
public void setData(structBandwidthInfo bwInfo, Node destNode)
bwInfo
- public structBandwidthInfo getStructBandwidthInfo()
structBandwidthInfo
object, fill it with the values of this instance and return it to the caller.
public StructBandwidthInfoBean getStructBandwidthInfoBean()
structBandwidthInfoBean
object, fill it with the values of this instance and return it to the caller.
public double getBw()
public void setBw(double bw)
bw
- the bw to setpublic Node getDestNode()
Node
of this bandwidth measurement.
public void setDestNode(Node destNode)
destNode
- the destNode to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |