at.ac.tuwien.infosys.rnue.helpers.multicast
Class HostInfoImpl

java.lang.Object
  |
  +--at.ac.tuwien.infosys.rnue.helpers.multicast.HostInfoImpl
All Implemented Interfaces:
IHostInfo

public class HostInfoImpl
extends java.lang.Object
implements IHostInfo

Specifies an object storing a HostInfoMessage and a timestamp indicating when the HostInfoMessage has been received the last time.


Constructor Summary
HostInfoImpl()
          Constructs an "empty" HostInfoImpl object.
 
Method Summary
 IHostInfoMessage getHostInfoMessage()
          Returns the HostInfoMessage encapsulated by this object.
 long getTimestamp()
          Retrieve the timestamp of the last update of the HostInfoMessage encapsulated by this object.
 void setHostInfoMessage(IHostInfoMessage msg)
          Returns the HostInfoMessage encapsulated by this object.
 void setTimestamp(long timestamp)
          Sets the timestamp of the last update of the HostInfoMessage encapsulated by this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HostInfoImpl

public HostInfoImpl()
Constructs an "empty" HostInfoImpl object.

Method Detail

getHostInfoMessage

public IHostInfoMessage getHostInfoMessage()
Returns the HostInfoMessage encapsulated by this object.

Specified by:
getHostInfoMessage in interface IHostInfo
Returns:
HostInfoMessage

setHostInfoMessage

public void setHostInfoMessage(IHostInfoMessage msg)
Returns the HostInfoMessage encapsulated by this object.

Specified by:
setHostInfoMessage in interface IHostInfo
Parameters:
msg - IHostInfoMessage

getTimestamp

public long getTimestamp()
Retrieve the timestamp of the last update of the HostInfoMessage encapsulated by this object.

Specified by:
getTimestamp in interface IHostInfo
Returns:
long timestamp

setTimestamp

public void setTimestamp(long timestamp)
Sets the timestamp of the last update of the HostInfoMessage encapsulated by this object.

Specified by:
setTimestamp in interface IHostInfo
Parameters:
timestamp - long timestamp of the last update