public class DefaultControlMessage extends Object implements ControlMessage
ControlMessage.Type
Constructor and Description |
---|
DefaultControlMessage(ControlMessage.Type type,
DeviceId deviceId,
long load,
long rate,
long count,
long timestamp)
Generates a control message instance using given type and statistic
information.
|
Modifier and Type | Method and Description |
---|---|
long |
count()
Returns the latest control message packet count.
|
DeviceId |
deviceId()
Returns the device identification.
|
boolean |
equals(Object obj) |
int |
hashCode() |
long |
load()
Returns the latest control message load.
|
long |
rate()
Returns the latest control message rate.
|
long |
timestamp()
Returns the time that this control message stats collected.
|
String |
toString() |
ControlMessage.Type |
type()
Returns the control message type.
|
public DefaultControlMessage(ControlMessage.Type type, DeviceId deviceId, long load, long rate, long count, long timestamp)
type
- control message typedeviceId
- device identificationload
- control message loadrate
- control message ratecount
- control message counttimestamp
- time stamp of the control message statspublic ControlMessage.Type type()
ControlMessage
type
in interface ControlMessage
public DeviceId deviceId()
ControlMessage
deviceId
in interface ControlMessage
public long load()
ControlMessage
load
in interface ControlMessage
public long rate()
ControlMessage
rate
in interface ControlMessage
public long count()
ControlMessage
count
in interface ControlMessage
public long timestamp()
ControlMessage
timestamp
in interface ControlMessage