Class ClusterMessageStatistics

java.lang.Object
com.atlassian.bamboo.cluster.clustermessage.ClusterMessageStatistics

public final class ClusterMessageStatistics extends Object
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 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 message
      senderNodeId - the ID of the sender node