Class ClusterMessageStatistics
java.lang.Object
com.atlassian.bamboo.cluster.clustermessage.ClusterMessageStatistics
This class is responsible for accumulating and logging statistics about cluster messages.
It maintains a count of messages received from different nodes and logs the statistics at regular intervals.
- Since:
- 10.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
processMessage
(@NotNull String messageType, @NotNull String senderNodeId) Processes a received message by incrementing its counter and logging the statistics if the log interval has passed.
-
Constructor Details
-
ClusterMessageStatistics
public ClusterMessageStatistics()
-
-
Method Details
-
processMessage
public void processMessage(@NotNull @NotNull String messageType, @NotNull @NotNull String senderNodeId) Processes a received message by incrementing its counter and logging the statistics if the log interval has passed.- Parameters:
messageType
- the type of the messagesenderNodeId
- the ID of the sender node
-