nizhikov commented on a change in pull request #6814: IGNITE-12108 TCP
Communication Metrics ported to a new framework.
URL: https://github.com/apache/ignite/pull/6814#discussion_r323260979
##########
File path:
modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java
##########
@@ -403,6 +401,50 @@
/** Handshake wait message type. */
public static final short HANDSHAKE_WAIT_MSG_TYPE = -28;
+ /** Communication metrics group name. */
+ public static final String COMMUNICATION_METRICS_GROUP_NAME =
"communication.tcp";
+
+ /** */
+ public static final String SENT_MESSAGES_METRIC_NAME = "sentMessagesCount";
+
+ /** */
+ public static final String SENT_MESSAGES_METRIC_DESC = "Total number of
messages sent by current node";
+
+ /** */
+ public static final String RECEIVED_MESSAGES_METRIC_NAME =
"receivedMessagesCount";
+
+ /** */
+ public static final String RECEIVED_MESSAGES_METRIC_DESC = "Total number
of messages received by current node";
+
+
+ /** */
+ public static String sentMessagesByTypeMetricName(Short directType) {
Review comment:
Let's declare all constants, first, and methods after.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services