Class CMRInetMetricsCollector
java.lang.Object
jmri.jmrix.cmri.serial.cmrinetmetrics.CMRInetMetricsCollector
- All Implemented Interfaces:
EventListener,AbstractMRListener,SerialListener
Listener class for collecting CMRInet network traffic and error messages.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExpose collected data.protected voidinit()voidTransmit packets.voidreply(SerialReply l) Receive packets.
-
Constructor Details
-
CMRInetMetricsCollector
public CMRInetMetricsCollector()
-
-
Method Details
-
init
-
getMetricData
Expose collected data.- Returns:
- collected data
-
message
Transmit packets. Monitor any transmit packets to collect metrics.- Specified by:
messagein interfaceSerialListener
-
reply
Receive packets. Monitor any read (reply) packets to collect metrics.- Specified by:
replyin interfaceSerialListener
-