Class CMRInetMetricsCollector
- java.lang.Object
-
- jmri.jmrix.cmri.serial.cmrinetmetrics.CMRInetMetricsCollector
-
- All Implemented Interfaces:
java.util.EventListener,AbstractMRListener,SerialListener
public class CMRInetMetricsCollector extends java.lang.Object implements SerialListener
Listener class for collecting CMRInet network traffic and error messages.
-
-
Constructor Summary
Constructors Constructor Description CMRInetMetricsCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMRInetMetricsDatagetMetricData()Expose collected data.protected voidinit()voidmessage(SerialMessage l)Transmit packets.voidreply(SerialReply l)Receive packets.
-
-
-
Constructor Detail
-
CMRInetMetricsCollector
public CMRInetMetricsCollector()
-
-
Method Detail
-
init
protected void init()
-
getMetricData
public CMRInetMetricsData getMetricData()
Expose collected data.- Returns:
- collected data
-
message
public void message(SerialMessage l)
Transmit packets. Monitor any transmit packets to collect metrics.- Specified by:
messagein interfaceSerialListener
-
reply
public void reply(SerialReply l)
Receive packets. Monitor any read (reply) packets to collect metrics.- Specified by:
replyin interfaceSerialListener
-
-