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 CMRInetMetricsData
getMetricData()
Expose collected data.protected void
init()
void
message(SerialMessage l)
Transmit packets.void
reply(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:
message
in interfaceSerialListener
-
reply
public void reply(SerialReply l)
Receive packets. Monitor any read (reply) packets to collect metrics.- Specified by:
reply
in interfaceSerialListener
-
-