at.ac.tuwien.infosys.rnue.interfaces
Interface IHostInfo

All Known Implementing Classes:
HostInfoImpl

public interface IHostInfo

A class implementing this interface specifies an object storing a HostInfoMessage and a timestamp indicating when the HostInfoMessage has been received the last time.


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)
          Sets the HostInfoMessage encapsulated by this object to a new value.
 void setTimestamp(long timestamp)
          Sets the timestamp of the last update of the HostInfoMessage encapsulated by this object.
 

Method Detail

getHostInfoMessage

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

Returns:
HostInfoMessage

setHostInfoMessage

public void setHostInfoMessage(IHostInfoMessage msg)
Sets the HostInfoMessage encapsulated by this object to a new value.

Parameters:
msg - IHostInfoMessage

getTimestamp

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

Returns:
long timestamp

setTimestamp

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

Parameters:
timestamp - long timestamp of the last update