Package io.aeron

Class AeronCounters

java.lang.Object
io.aeron.AeronCounters

public final class AeronCounters extends Object
This class serves as a registry for all counter type IDs used by Aeron.

Type IDs less than 1000 are reserved for Aeron use. Any custom counters should use a typeId of 1000 or higher.

Aeron uses the following specific ranges:

  • 0 - 99: for client/driver counters.
  • 100 - 199: for archive counters.
  • 200 - 299: for cluster counters.
  • Field Details

    • SYSTEM_COUNTER_ID_BYTES_SENT

      public static final int SYSTEM_COUNTER_ID_BYTES_SENT
      Counter id for bytes sent over the network.
      See Also:
    • SYSTEM_COUNTER_ID_BYTES_RECEIVED

      public static final int SYSTEM_COUNTER_ID_BYTES_RECEIVED
      Counter id for bytes sent over the network.
      See Also:
    • SYSTEM_COUNTER_ID_RECEIVER_PROXY_FAILS

      public static final int SYSTEM_COUNTER_ID_RECEIVER_PROXY_FAILS
      Counter id for failed offers to the receiver proxy.
      See Also:
    • SYSTEM_COUNTER_ID_SENDER_PROXY_FAILS

      public static final int SYSTEM_COUNTER_ID_SENDER_PROXY_FAILS
      Counter id for failed offers to the sender proxy.
      See Also:
    • SYSTEM_COUNTER_ID_CONDUCTOR_PROXY_FAILS

      public static final int SYSTEM_COUNTER_ID_CONDUCTOR_PROXY_FAILS
      Counter id for failed offers to the conductor proxy.
      See Also:
    • SYSTEM_COUNTER_ID_NAK_MESSAGES_SENT

      public static final int SYSTEM_COUNTER_ID_NAK_MESSAGES_SENT
      Counter id for NAKs sent back to senders requesting re-transmits.
      See Also:
    • SYSTEM_COUNTER_ID_NAK_MESSAGES_RECEIVED

      public static final int SYSTEM_COUNTER_ID_NAK_MESSAGES_RECEIVED
      Counter id for NAKs received from receivers requesting re-transmits.
      See Also:
    • SYSTEM_COUNTER_ID_STATUS_MESSAGES_SENT

      public static final int SYSTEM_COUNTER_ID_STATUS_MESSAGES_SENT
      Counter id for status messages sent back to senders for flow control.
      See Also:
    • SYSTEM_COUNTER_ID_STATUS_MESSAGES_RECEIVED

      public static final int SYSTEM_COUNTER_ID_STATUS_MESSAGES_RECEIVED
      Counter id for status messages received from receivers for flow control.
      See Also:
    • SYSTEM_COUNTER_ID_HEARTBEATS_SENT

      public static final int SYSTEM_COUNTER_ID_HEARTBEATS_SENT
      Counter id for heartbeat data frames sent to indicate liveness in the absence of data to send.
      See Also:
    • SYSTEM_COUNTER_ID_HEARTBEATS_RECEIVED

      public static final int SYSTEM_COUNTER_ID_HEARTBEATS_RECEIVED
      Counter id for heartbeat data frames received to indicate liveness in the absence of data to send.
      See Also:
    • SYSTEM_COUNTER_ID_RETRANSMITS_SENT

      public static final int SYSTEM_COUNTER_ID_RETRANSMITS_SENT
      Counter id for data packets re-transmitted as a result of NAKs.
      See Also:
    • SYSTEM_COUNTER_ID_FLOW_CONTROL_UNDER_RUNS

      public static final int SYSTEM_COUNTER_ID_FLOW_CONTROL_UNDER_RUNS
      Counter id for packets received which under-run the current flow control window for images.
      See Also:
    • SYSTEM_COUNTER_ID_FLOW_CONTROL_OVER_RUNS

      public static final int SYSTEM_COUNTER_ID_FLOW_CONTROL_OVER_RUNS
      Counter id for packets received which over-run the current flow control window for images.
      See Also:
    • SYSTEM_COUNTER_ID_INVALID_PACKETS

      public static final int SYSTEM_COUNTER_ID_INVALID_PACKETS
      Counter id for invalid packets received.
      See Also:
    • SYSTEM_COUNTER_ID_ERRORS

      public static final int SYSTEM_COUNTER_ID_ERRORS
      Counter id for errors observed by the driver and an indication to read the distinct error log.
      See Also:
    • SYSTEM_COUNTER_ID_SHORT_SENDS

      public static final int SYSTEM_COUNTER_ID_SHORT_SENDS
      Counter id for socket send operation which resulted in less than the packet length being sent.
      See Also:
    • SYSTEM_COUNTER_ID_FREE_FAILS

      public static final int SYSTEM_COUNTER_ID_FREE_FAILS
      Counter id for attempts to free log buffers no longer required by the driver which as still held by clients.
      See Also:
    • SYSTEM_COUNTER_ID_SENDER_FLOW_CONTROL_LIMITS

      public static final int SYSTEM_COUNTER_ID_SENDER_FLOW_CONTROL_LIMITS
      Counter id for the times a sender has entered the state of being back-pressured when it could have sent faster.
      See Also:
    • SYSTEM_COUNTER_ID_UNBLOCKED_PUBLICATIONS

      public static final int SYSTEM_COUNTER_ID_UNBLOCKED_PUBLICATIONS
      Counter id for the times a publication has been unblocked after a client failed to complete an offer within a timeout.
      See Also:
    • SYSTEM_COUNTER_ID_UNBLOCKED_COMMANDS

      public static final int SYSTEM_COUNTER_ID_UNBLOCKED_COMMANDS
      Counter id for the times a command has been unblocked after a client failed to complete an offer within a timeout.
      See Also:
    • SYSTEM_COUNTER_ID_POSSIBLE_TTL_ASYMMETRY

      public static final int SYSTEM_COUNTER_ID_POSSIBLE_TTL_ASYMMETRY
      Counter id for the times the channel endpoint detected a possible TTL asymmetry between its config and new connection.
      See Also:
    • SYSTEM_COUNTER_ID_CONTROLLABLE_IDLE_STRATEGY

      public static final int SYSTEM_COUNTER_ID_CONTROLLABLE_IDLE_STRATEGY
      Counter id for status of the ControllableIdleStrategy if configured.
      See Also:
    • SYSTEM_COUNTER_ID_LOSS_GAP_FILLS

      public static final int SYSTEM_COUNTER_ID_LOSS_GAP_FILLS
      Counter id for the times a loss gap has been filled when NAKs have been disabled.
      See Also:
    • SYSTEM_COUNTER_ID_CLIENT_TIMEOUTS

      public static final int SYSTEM_COUNTER_ID_CLIENT_TIMEOUTS
      Counter id for the Aeron clients that have timed out without a graceful close.
      See Also:
    • SYSTEM_COUNTER_ID_RESOLUTION_CHANGES

      public static final int SYSTEM_COUNTER_ID_RESOLUTION_CHANGES
      Counter id for the times a connection endpoint has been re-resolved resulting in a change.
      See Also:
    • SYSTEM_COUNTER_ID_CONDUCTOR_MAX_CYCLE_TIME

      public static final int SYSTEM_COUNTER_ID_CONDUCTOR_MAX_CYCLE_TIME
      Counter id for the maximum time spent by the conductor between work cycles.
      See Also:
    • SYSTEM_COUNTER_ID_CONDUCTOR_CYCLE_TIME_THRESHOLD_EXCEEDED

      public static final int SYSTEM_COUNTER_ID_CONDUCTOR_CYCLE_TIME_THRESHOLD_EXCEEDED
      Counter id for the number of times the cycle time threshold has been exceeded by the conductor in its work cycle.
      See Also:
    • SYSTEM_COUNTER_ID_SENDER_MAX_CYCLE_TIME

      public static final int SYSTEM_COUNTER_ID_SENDER_MAX_CYCLE_TIME
      Counter id for the maximum time spent by the sender between work cycles.
      See Also:
    • SYSTEM_COUNTER_ID_SENDER_CYCLE_TIME_THRESHOLD_EXCEEDED

      public static final int SYSTEM_COUNTER_ID_SENDER_CYCLE_TIME_THRESHOLD_EXCEEDED
      Counter id for the number of times the cycle time threshold has been exceeded by the sender in its work cycle.
      See Also:
    • SYSTEM_COUNTER_ID_RECEIVER_MAX_CYCLE_TIME

      public static final int SYSTEM_COUNTER_ID_RECEIVER_MAX_CYCLE_TIME
      Counter id for the maximum time spent by the receiver between work cycles.
      See Also:
    • SYSTEM_COUNTER_ID_RECEIVER_CYCLE_TIME_THRESHOLD_EXCEEDED

      public static final int SYSTEM_COUNTER_ID_RECEIVER_CYCLE_TIME_THRESHOLD_EXCEEDED
      Counter id for the number of times the cycle time threshold has been exceeded by the receiver in its work cycle.
      See Also:
    • SYSTEM_COUNTER_ID_NAME_RESOLVER_MAX_TIME

      public static final int SYSTEM_COUNTER_ID_NAME_RESOLVER_MAX_TIME
      Counter id for the maximum time spent by the NameResolver in one of its operations.
      See Also:
    • SYSTEM_COUNTER_ID_NAME_RESOLVER_TIME_THRESHOLD_EXCEEDED

      public static final int SYSTEM_COUNTER_ID_NAME_RESOLVER_TIME_THRESHOLD_EXCEEDED
      Counter id for the number of times the time threshold has been exceeded by the NameResolver.
      See Also:
    • SYSTEM_COUNTER_ID_AERON_VERSION

      public static final int SYSTEM_COUNTER_ID_AERON_VERSION
      Counter id for the version of the media driver.
      See Also:
    • SYSTEM_COUNTER_ID_BYTES_CURRENTLY_MAPPED

      public static final int SYSTEM_COUNTER_ID_BYTES_CURRENTLY_MAPPED
      Counter id for the total number of bytes currently mapped in log buffers, CnC file, and loss report.
      See Also:
    • SYSTEM_COUNTER_ID_RETRANSMITTED_BYTES

      public static final int SYSTEM_COUNTER_ID_RETRANSMITTED_BYTES
      Counter id for the minimum bound on the number of bytes re-transmitted as a result of NAKs.
      See Also:
    • SYSTEM_COUNTER_ID_RETRANSMIT_OVERFLOW

      public static final int SYSTEM_COUNTER_ID_RETRANSMIT_OVERFLOW
      Counter id for the number of times that the retransmit pool has been overflowed.
      See Also:
    • SYSTEM_COUNTER_ID_ERROR_FRAMES_RECEIVED

      public static final int SYSTEM_COUNTER_ID_ERROR_FRAMES_RECEIVED
      Counter id for the number of error frames received by this driver.
      See Also:
    • SYSTEM_COUNTER_ID_ERROR_FRAMES_SENT

      public static final int SYSTEM_COUNTER_ID_ERROR_FRAMES_SENT
      Counter id for the number of error frames sent by this driver.
      See Also:
    • SYSTEM_COUNTER_ID_PUBLICATIONS_REVOKED

      public static final int SYSTEM_COUNTER_ID_PUBLICATIONS_REVOKED
      Counter id for the number of publications that have been revoked.
      See Also:
    • SYSTEM_COUNTER_ID_PUBLICATION_IMAGES_REVOKED

      public static final int SYSTEM_COUNTER_ID_PUBLICATION_IMAGES_REVOKED
      Counter id for the number of publication images that have been revoked.
      See Also:
    • SYSTEM_COUNTER_ID_IMAGES_REJECTED

      public static final int SYSTEM_COUNTER_ID_IMAGES_REJECTED
      Counter id for the number of images that have been rejected.
      See Also:
    • SYSTEM_COUNTER_ID_CONTROL_PROTOCOL_VERSION

      public static final int SYSTEM_COUNTER_ID_CONTROL_PROTOCOL_VERSION
      Counter id for the control protocol between clients and media driver.
      Since:
      1.49.0
      See Also:
    • DRIVER_SYSTEM_COUNTER_TYPE_ID

      public static final int DRIVER_SYSTEM_COUNTER_TYPE_ID
      System-wide counters for monitoring. These are separate from counters used for position tracking on streams.
      See Also:
    • DRIVER_PUBLISHER_LIMIT_TYPE_ID

      public static final int DRIVER_PUBLISHER_LIMIT_TYPE_ID
      The limit as a position in bytes applied to publishers on a session-channel-stream tuple. Publishers will experience back pressure when this position is passed as a means of flow control.
      See Also:
    • DRIVER_SENDER_POSITION_TYPE_ID

      public static final int DRIVER_SENDER_POSITION_TYPE_ID
      The position the Sender has reached for sending data to the media on a session-channel-stream tuple.
      See Also:
    • DRIVER_RECEIVER_HWM_TYPE_ID

      public static final int DRIVER_RECEIVER_HWM_TYPE_ID
      The highest position the Receiver has observed on a session-channel-stream tuple while rebuilding the stream. It is possible the stream is not complete to this point if the stream has experienced loss.
      See Also:
    • DRIVER_SUBSCRIBER_POSITION_TYPE_ID

      public static final int DRIVER_SUBSCRIBER_POSITION_TYPE_ID
      The position an individual Subscriber has reached on a session-channel-stream tuple. It is possible to have multiple
      See Also:
    • DRIVER_RECEIVER_POS_TYPE_ID

      public static final int DRIVER_RECEIVER_POS_TYPE_ID
      The highest position the Receiver has rebuilt up to on a session-channel-stream tuple while rebuilding the stream.The stream is complete up to this point.
      See Also:
    • DRIVER_SEND_CHANNEL_STATUS_TYPE_ID

      public static final int DRIVER_SEND_CHANNEL_STATUS_TYPE_ID
      The status of a send-channel-endpoint represented as a counter value.
      See Also:
    • DRIVER_RECEIVE_CHANNEL_STATUS_TYPE_ID

      public static final int DRIVER_RECEIVE_CHANNEL_STATUS_TYPE_ID
      The status of a receive-channel-endpoint represented as a counter value.
      See Also:
    • DRIVER_SENDER_LIMIT_TYPE_ID

      public static final int DRIVER_SENDER_LIMIT_TYPE_ID
      The position the Sender can immediately send up-to on a session-channel-stream tuple.
      See Also:
    • DRIVER_PER_IMAGE_TYPE_ID

      public static final int DRIVER_PER_IMAGE_TYPE_ID
      A counter per Image indicating presence of the congestion control.
      See Also:
    • DRIVER_HEARTBEAT_TYPE_ID

      public static final int DRIVER_HEARTBEAT_TYPE_ID
      A counter for tracking the last heartbeat of an entity with a given registration id.
      See Also:
    • DRIVER_PUBLISHER_POS_TYPE_ID

      public static final int DRIVER_PUBLISHER_POS_TYPE_ID
      The position in bytes a publication has reached appending to the log.

      Note: This is a not a real-time value like the other and is updated one per second for monitoring purposes.

      See Also:
    • DRIVER_SENDER_BPE_TYPE_ID

      public static final int DRIVER_SENDER_BPE_TYPE_ID
      Count of back-pressure events (BPE)s a sender has experienced on a stream.
      See Also:
    • DRIVER_LOCAL_SOCKET_ADDRESS_STATUS_TYPE_ID

      public static final int DRIVER_LOCAL_SOCKET_ADDRESS_STATUS_TYPE_ID
      Counter used to store the status of a bind address and port for the local end of a channel.

      When the value is ChannelEndpointStatus.ACTIVE then the key value and label will be updated with the socket address and port which is bound.

      See Also:
    • NAME_RESOLVER_NEIGHBORS_COUNTER_TYPE_ID

      public static final int NAME_RESOLVER_NEIGHBORS_COUNTER_TYPE_ID
      Count of media driver neighbors for name resolution.
      See Also:
    • NAME_RESOLVER_CACHE_ENTRIES_COUNTER_TYPE_ID

      public static final int NAME_RESOLVER_CACHE_ENTRIES_COUNTER_TYPE_ID
      Count of entries in the name resolver cache.
      See Also:
    • FLOW_CONTROL_RECEIVERS_COUNTER_TYPE_ID

      public static final int FLOW_CONTROL_RECEIVERS_COUNTER_TYPE_ID
      Count of number of active receivers for flow control strategy.
      See Also:
    • MDC_DESTINATIONS_COUNTER_TYPE_ID

      public static final int MDC_DESTINATIONS_COUNTER_TYPE_ID
      Count of number of destinations for multi-destination cast channels.
      See Also:
    • DRIVER_SENDER_NAKS_RECEIVED_TYPE_ID

      public static final int DRIVER_SENDER_NAKS_RECEIVED_TYPE_ID
      The number of NAK messages received by the Sender.
      See Also:
    • DRIVER_RECEIVER_NAKS_SENT_TYPE_ID

      public static final int DRIVER_RECEIVER_NAKS_SENT_TYPE_ID
      The number of NAK messages sent by the Receiver.
      See Also:
    • EF_VI_PORT_INFO_TYPE_ID

      public static final int EF_VI_PORT_INFO_TYPE_ID
      EF_VI_PORT_INFO_TYPE_ID.
      See Also:
    • EF_VI_TRANSPORT_TYPE_ID

      public static final int EF_VI_TRANSPORT_TYPE_ID
      EF_VI_TRANSPORT_TYPE_ID.
      See Also:
    • EF_VI_TX_NOBUFS_TYPE_ID

      public static final int EF_VI_TX_NOBUFS_TYPE_ID
      EF_VI_TX_NOBUFS_TYPE_ID.
      See Also:
    • EF_VI_TX_EAGAIN_TYPE_ID

      public static final int EF_VI_TX_EAGAIN_TYPE_ID
      EF_VI_TX_EAGAIN_TYPE_ID.
      See Also:
    • EF_VI_TX_ERROR_TYPE_ID

      public static final int EF_VI_TX_ERROR_TYPE_ID
      EF_VI_TX_ERROR_TYPE_ID.
      See Also:
    • EF_VI_RX_DISCARD_TYPE_ID

      public static final int EF_VI_RX_DISCARD_TYPE_ID
      EF_VI_RX_DISCARD_TYPE_ID.
      See Also:
    • EF_VI_RX_INVALID_TYPE_ID

      public static final int EF_VI_RX_INVALID_TYPE_ID
      EF_VI_RX_INVALID_TYPE_ID.
      See Also:
    • EF_VI_RX_PKTS_TYPE_ID

      public static final int EF_VI_RX_PKTS_TYPE_ID
      EF_VI_RX_PKTS_TYPE_ID.
      See Also:
    • EF_VI_RX_BYTES_TYPE_ID

      public static final int EF_VI_RX_BYTES_TYPE_ID
      EF_VI_RX_BYTES_TYPE_ID.
      See Also:
    • EF_VI_TX_PKTS_TYPE_ID

      public static final int EF_VI_TX_PKTS_TYPE_ID
      EF_VI_TX_PKTS_TYPE_ID.
      See Also:
    • EF_VI_TX_BYTES_TYPE_ID

      public static final int EF_VI_TX_BYTES_TYPE_ID
      EF_VI_TX_BYTES_TYPE_ID.
      See Also:
    • VMA_TRANSPORTS_TYPE_ID

      public static final int VMA_TRANSPORTS_TYPE_ID
      VMA_TRANSPORTS_TYPE_ID.
      See Also:
    • VMA_RX_ZERO_COPY_BYTES_TYPE_ID

      public static final int VMA_RX_ZERO_COPY_BYTES_TYPE_ID
      VMA_RX_ZERO_COPY_BYTES_TYPE_ID.
      See Also:
    • VMA_RX_DATA_COPY_BYTES_TYPE_ID

      public static final int VMA_RX_DATA_COPY_BYTES_TYPE_ID
      VMA_RX_DATA_COPY_BYTES_TYPE_ID.
      See Also:
    • ATS_TRANSPORTS_TYPE_ID

      public static final int ATS_TRANSPORTS_TYPE_ID
      ATS_TRANSPORTS_TYPE_ID.
      See Also:
    • ATS_DISCARDS_NON_ATS_TYPE_ID

      public static final int ATS_DISCARDS_NON_ATS_TYPE_ID
      ATS_DISCARDS_NON_ATS_TYPE_ID.
      See Also:
    • ATS_BYTES_ENCRYPTED_TYPE_ID

      public static final int ATS_BYTES_ENCRYPTED_TYPE_ID
      ATS_BYTES_ENCRYPTED_TYPE_ID.
      See Also:
    • ATS_BYTES_DECRYPTED_TYPE_ID

      public static final int ATS_BYTES_DECRYPTED_TYPE_ID
      ATS_BYTES_DECRYPTED_TYPE_ID.
      See Also:
    • ATS_AEAD_ERRORS_TYPE_ID

      public static final int ATS_AEAD_ERRORS_TYPE_ID
      ATS_AEAD_ERRORS_TYPE_ID.
      See Also:
    • ATS_RSA_KEY_UNKNOWN_TYPE_ID

      public static final int ATS_RSA_KEY_UNKNOWN_TYPE_ID
      ATS_RSA_KEY_UNKNOWN_TYPE_ID.
      See Also:
    • ATS_EC_KEY_SIG_ERRORS_TYPE_ID

      public static final int ATS_EC_KEY_SIG_ERRORS_TYPE_ID
      ATS_EC_KEY_SIG_ERRORS_TYPE_ID.
      See Also:
    • ATS_UNICAST_RE_KEYINGS_TYPE_ID

      public static final int ATS_UNICAST_RE_KEYINGS_TYPE_ID
      ATS_UNICAST_RE_KEYINGS_TYPE_ID.
      See Also:
    • ATS_UNICAST_RE_KEYING_RSA_KEY_MISMATCH_TYPE_ID

      public static final int ATS_UNICAST_RE_KEYING_RSA_KEY_MISMATCH_TYPE_ID
      ATS_UNICAST_RE_KEYING_RSA_KEY_MISMATCH_TYPE_ID.
      See Also:
    • ATS_DROPPED_SM_TYPE_ID

      public static final int ATS_DROPPED_SM_TYPE_ID
      ATS_DROPPED_SM_TYPE_ID.
      See Also:
    • DPDK_PORT_INFO_TYPE_ID

      public static final int DPDK_PORT_INFO_TYPE_ID
      DPDK_PORT_INFO_TYPE_ID.
      See Also:
    • DPDK_TRANSPORT_TYPE_ID

      public static final int DPDK_TRANSPORT_TYPE_ID
      DPDK_TRANSPORT_TYPE_ID.
      See Also:
    • DPDK_NOBUFS_TYPE_ID

      public static final int DPDK_NOBUFS_TYPE_ID
      DPDK_NOBUFS_TYPE_ID.
      See Also:
    • DPDK_TX_EAGAIN_TYPE_ID

      public static final int DPDK_TX_EAGAIN_TYPE_ID
      DPDK_TX_EAGAIN_TYPE_ID.
      See Also:
    • DPDK_ERROR_TYPE_ID

      public static final int DPDK_ERROR_TYPE_ID
      DPDK_ERROR_TYPE_ID.
      See Also:
    • DPDK_PKTS_TYPE_ID

      public static final int DPDK_PKTS_TYPE_ID
      DPDK_PKTS_TYPE_ID.
      See Also:
    • DPDK_BYTES_TYPE_ID

      public static final int DPDK_BYTES_TYPE_ID
      DPDK_BYTES_TYPE_ID.
      See Also:
    • DPDK_MISSED_PACKETS_TYPE_ID

      public static final int DPDK_MISSED_PACKETS_TYPE_ID
      DPDK_MISSED_PACKETS_TYPE_ID.
      See Also:
    • DPDK_ARP_MISS_TYPE_ID

      public static final int DPDK_ARP_MISS_TYPE_ID
      DPDK_ARP_MISS_TYPE_ID.
      See Also:
    • DPDK_RX_SENDER_DISCARD_TYPE_ID

      public static final int DPDK_RX_SENDER_DISCARD_TYPE_ID
      DPDK_RX_SENDER_DISCARD_TYPE_ID.
      See Also:
    • DPDK_POLLER_TYPE_ID

      public static final int DPDK_POLLER_TYPE_ID
      DPDK_POLLER_TYPE_ID.
      See Also:
    • DPDK_QUEUE_DROP_COUNT_TYPE_ID

      public static final int DPDK_QUEUE_DROP_COUNT_TYPE_ID
      DPDK_QUEUE_DROP_COUNT_TYPE_ID.
      See Also:
    • DPDK_CHECKSUM_FAILURE_TYPE_ID

      public static final int DPDK_CHECKSUM_FAILURE_TYPE_ID
      DPDK_CHECKSUM_FAILURE_TYPE_ID.
      See Also:
    • DPDK_FRAGMENTED_PACKETS_TYPE_ID

      public static final int DPDK_FRAGMENTED_PACKETS_TYPE_ID
      DPDK_FRAGMENTED_PACKETS_TYPE_ID.
      See Also:
    • DPDK_MEMPOOL_AVAILABLE_TYPE_ID

      public static final int DPDK_MEMPOOL_AVAILABLE_TYPE_ID
      DPDK_MEMPOOL_AVAILABLE_TYPE_ID.
      See Also:
    • DPDK_EXTENDED_STATS_TYPE_ID

      public static final int DPDK_EXTENDED_STATS_TYPE_ID
      DPDK_EXTENDED_STATS_TYPE_ID.
      See Also:
    • DPDK_RX_UNSUPPORTED_ETHERNET_TYPE_TYPE_ID

      public static final int DPDK_RX_UNSUPPORTED_ETHERNET_TYPE_TYPE_ID
      DPDK_RX_UNSUPPORTED_ETHERNET_TYPE_TYPE_ID.
      See Also:
    • DPDK_RX_UNSUPPORTED_PROTOCOL_TYPE_ID

      public static final int DPDK_RX_UNSUPPORTED_PROTOCOL_TYPE_ID
      DPDK_RX_UNSUPPORTED_PROTOCOL_TYPE_ID.
      See Also:
    • DPDK_RX_RECEIVER_DISCARD_TYPE_ID

      public static final int DPDK_RX_RECEIVER_DISCARD_TYPE_ID
      DPDK_RX_RECEIVER_DISCARD_TYPE_ID.
      See Also:
    • ARCHIVE_RECORDING_POSITION_TYPE_ID

      public static final int ARCHIVE_RECORDING_POSITION_TYPE_ID
      The position a recording has reached when being archived.
      See Also:
    • ARCHIVE_ERROR_COUNT_TYPE_ID

      public static final int ARCHIVE_ERROR_COUNT_TYPE_ID
      The type id of the Counter used for keeping track of the number of errors that have occurred.
      See Also:
    • ARCHIVE_CONTROL_SESSIONS_TYPE_ID

      public static final int ARCHIVE_CONTROL_SESSIONS_TYPE_ID
      The type id of the Counter used for keeping track of the count of concurrent control sessions.
      See Also:
    • ARCHIVE_MAX_CYCLE_TIME_TYPE_ID

      public static final int ARCHIVE_MAX_CYCLE_TIME_TYPE_ID
      The type id of the Counter used for keeping track of the max duty cycle time of an archive agent.
      See Also:
    • ARCHIVE_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID

      public static final int ARCHIVE_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID
      The type id of the Counter used for keeping track of the count of cycle time threshold exceeded of an archive agent.
      See Also:
    • ARCHIVE_RECORDER_MAX_WRITE_TIME_TYPE_ID

      public static final int ARCHIVE_RECORDER_MAX_WRITE_TIME_TYPE_ID
      The type id of the Counter used for keeping track of the max time it took recorder to write a block of data to the storage.
      See Also:
    • ARCHIVE_RECORDER_TOTAL_WRITE_BYTES_TYPE_ID

      public static final int ARCHIVE_RECORDER_TOTAL_WRITE_BYTES_TYPE_ID
      The type id of the Counter used for keeping track of the total number of bytes written by the recorder to the storage.
      See Also:
    • ARCHIVE_RECORDER_TOTAL_WRITE_TIME_TYPE_ID

      public static final int ARCHIVE_RECORDER_TOTAL_WRITE_TIME_TYPE_ID
      The type id of the Counter used for keeping track of the total time the recorder spent writing data to the storage.
      See Also:
    • ARCHIVE_REPLAYER_MAX_READ_TIME_TYPE_ID

      public static final int ARCHIVE_REPLAYER_MAX_READ_TIME_TYPE_ID
      The type id of the Counter used for keeping track of the max time it took replayer to read a block from the storage.
      See Also:
    • ARCHIVE_REPLAYER_TOTAL_READ_BYTES_TYPE_ID

      public static final int ARCHIVE_REPLAYER_TOTAL_READ_BYTES_TYPE_ID
      The type id of the Counter used for keeping track of the total number of bytes read by the replayer from the storage.
      See Also:
    • ARCHIVE_REPLAYER_TOTAL_READ_TIME_TYPE_ID

      public static final int ARCHIVE_REPLAYER_TOTAL_READ_TIME_TYPE_ID
      The type id of the Counter used for keeping track of the total time the replayer spent reading data from the storage.
      See Also:
    • ARCHIVE_RECORDING_SESSION_COUNT_TYPE_ID

      public static final int ARCHIVE_RECORDING_SESSION_COUNT_TYPE_ID
      The type id of the Counter used for tracking the count of active recording sessions.
      See Also:
    • ARCHIVE_REPLAY_SESSION_COUNT_TYPE_ID

      public static final int ARCHIVE_REPLAY_SESSION_COUNT_TYPE_ID
      The type id of the Counter used for tracking the count of active replay sessions.
      See Also:
    • ARCHIVE_CONTROL_SESSION_TYPE_ID

      public static final int ARCHIVE_CONTROL_SESSION_TYPE_ID
      The type id of the Counter used for tracking Archive clients.
      Since:
      1.49.0.
      See Also:
    • CLUSTER_CONSENSUS_MODULE_STATE_TYPE_ID

      public static final int CLUSTER_CONSENSUS_MODULE_STATE_TYPE_ID
      Counter type id for the consensus module state.
      See Also:
    • CLUSTER_NODE_ROLE_TYPE_ID

      public static final int CLUSTER_NODE_ROLE_TYPE_ID
      Counter type id for the cluster node role.
      See Also:
    • CLUSTER_CONTROL_TOGGLE_TYPE_ID

      public static final int CLUSTER_CONTROL_TOGGLE_TYPE_ID
      Counter type id for the control toggle.
      See Also:
    • CLUSTER_COMMIT_POSITION_TYPE_ID

      public static final int CLUSTER_COMMIT_POSITION_TYPE_ID
      Counter type id of the commit position.
      See Also:
    • CLUSTER_RECOVERY_STATE_TYPE_ID

      public static final int CLUSTER_RECOVERY_STATE_TYPE_ID
      Counter representing the Recovery State for the cluster.
      See Also:
    • CLUSTER_SNAPSHOT_COUNTER_TYPE_ID

      public static final int CLUSTER_SNAPSHOT_COUNTER_TYPE_ID
      Counter type id for count of snapshots taken.
      See Also:
    • CLUSTER_ELECTION_STATE_TYPE_ID

      public static final int CLUSTER_ELECTION_STATE_TYPE_ID
      Type id for election state counter.
      See Also:
    • CLUSTER_BACKUP_STATE_TYPE_ID

      public static final int CLUSTER_BACKUP_STATE_TYPE_ID
      The type id of the Counter used for the backup state.
      See Also:
    • CLUSTER_BACKUP_LIVE_LOG_POSITION_TYPE_ID

      public static final int CLUSTER_BACKUP_LIVE_LOG_POSITION_TYPE_ID
      The type id of the Counter used for the live log position counter.
      See Also:
    • CLUSTER_BACKUP_QUERY_DEADLINE_TYPE_ID

      public static final int CLUSTER_BACKUP_QUERY_DEADLINE_TYPE_ID
      The type id of the Counter used for the next query deadline counter.
      See Also:
    • CLUSTER_BACKUP_ERROR_COUNT_TYPE_ID

      public static final int CLUSTER_BACKUP_ERROR_COUNT_TYPE_ID
      The type id of the Counter used for keeping track of the number of errors that have occurred.
      See Also:
    • CLUSTER_CONSENSUS_MODULE_ERROR_COUNT_TYPE_ID

      public static final int CLUSTER_CONSENSUS_MODULE_ERROR_COUNT_TYPE_ID
      Counter type id for the consensus module error count.
      See Also:
    • CLUSTER_CLIENT_TIMEOUT_COUNT_TYPE_ID

      public static final int CLUSTER_CLIENT_TIMEOUT_COUNT_TYPE_ID
      Counter type id for the number of cluster clients which have been timed out.
      See Also:
    • CLUSTER_INVALID_REQUEST_COUNT_TYPE_ID

      public static final int CLUSTER_INVALID_REQUEST_COUNT_TYPE_ID
      Counter type id for the number of invalid requests which the cluster has received.
      See Also:
    • CLUSTER_CLUSTERED_SERVICE_ERROR_COUNT_TYPE_ID

      public static final int CLUSTER_CLUSTERED_SERVICE_ERROR_COUNT_TYPE_ID
      Counter type id for the clustered service error count.
      See Also:
    • CLUSTER_MAX_CYCLE_TIME_TYPE_ID

      public static final int CLUSTER_MAX_CYCLE_TIME_TYPE_ID
      The type id of the Counter used for keeping track of the max duty cycle time of the consensus module.
      See Also:
    • CLUSTER_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID

      public static final int CLUSTER_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID
      The type id of the Counter used for keeping track of the count of cycle time threshold exceeded of the consensus module.
      See Also:
    • CLUSTER_CLUSTERED_SERVICE_MAX_CYCLE_TIME_TYPE_ID

      public static final int CLUSTER_CLUSTERED_SERVICE_MAX_CYCLE_TIME_TYPE_ID
      The type id of the Counter used for keeping track of the max duty cycle time of the service container.
      See Also:
    • CLUSTER_CLUSTERED_SERVICE_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID

      public static final int CLUSTER_CLUSTERED_SERVICE_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID
      The type id of the Counter used for keeping track of the count of cycle time threshold exceeded of the service container.
      See Also:
    • CLUSTER_STANDBY_STATE_TYPE_ID

      public static final int CLUSTER_STANDBY_STATE_TYPE_ID
      The type id of the Counter used for the cluster standby state.
      See Also:
    • CLUSTER_STANDBY_ERROR_COUNT_TYPE_ID

      public static final int CLUSTER_STANDBY_ERROR_COUNT_TYPE_ID
      Counter type id for the clustered service error count.
      See Also:
    • CLUSTER_STANDBY_HEARTBEAT_RESPONSE_COUNT_TYPE_ID

      public static final int CLUSTER_STANDBY_HEARTBEAT_RESPONSE_COUNT_TYPE_ID
      Counter type for responses to heartbeat request from the cluster.
      See Also:
    • CLUSTER_STANDBY_CONTROL_TOGGLE_TYPE_ID

      public static final int CLUSTER_STANDBY_CONTROL_TOGGLE_TYPE_ID
      Standby control toggle type id.
      See Also:
    • TRANSITION_MODULE_STATE_TYPE_ID

      public static final int TRANSITION_MODULE_STATE_TYPE_ID
      The type if of the Counter used for transition module state.
      See Also:
    • TRANSITION_MODULE_ERROR_COUNT_TYPE_ID

      public static final int TRANSITION_MODULE_ERROR_COUNT_TYPE_ID
      Counter type id for the transition module error count.
      See Also:
    • CLUSTER_STANDBY_MAX_CYCLE_TIME_TYPE_ID

      public static final int CLUSTER_STANDBY_MAX_CYCLE_TIME_TYPE_ID
      The type id of the Counter used for keeping track of the max duty cycle time of the cluster standby.
      See Also:
    • CLUSTER_STANDBY_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID

      public static final int CLUSTER_STANDBY_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID
      The type id of the Counter used for keeping track of the count of cycle time threshold exceeded of the cluster standby.
      See Also:
    • TRANSITION_MODULE_MAX_CYCLE_TIME_TYPE_ID

      public static final int TRANSITION_MODULE_MAX_CYCLE_TIME_TYPE_ID
      The type id of the Counter used for keeping track of the max duty cycle time of the transition module.
      See Also:
    • TRANSITION_MODULE_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID

      public static final int TRANSITION_MODULE_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID
      The type id of the Counter used for keeping track of the count of cycle time threshold exceeded of the transition module.
      See Also:
    • CLUSTER_STANDBY_SOURCE_MEMBER_ID_TYPE_ID

      public static final int CLUSTER_STANDBY_SOURCE_MEMBER_ID_TYPE_ID
      The type id of the Counter to make visible the memberId that the cluster standby is currently using to as a source for the cluster log.
      See Also:
    • CLUSTER_STANDBY_SNAPSHOT_COUNTER_TYPE_ID

      public static final int CLUSTER_STANDBY_SNAPSHOT_COUNTER_TYPE_ID
      Counter type for count of standby snapshots received.
      See Also:
    • NODE_CONTROL_TOGGLE_TYPE_ID

      public static final int NODE_CONTROL_TOGGLE_TYPE_ID
      The type of the Counter used for handling node specific operations.
      See Also:
    • CLUSTER_TOTAL_MAX_SNAPSHOT_DURATION_TYPE_ID

      public static final int CLUSTER_TOTAL_MAX_SNAPSHOT_DURATION_TYPE_ID
      The type id of the Counter used for keeping track of the maximum total snapshot duration.
      See Also:
    • CLUSTER_TOTAL_SNAPSHOT_DURATION_THRESHOLD_EXCEEDED_TYPE_ID

      public static final int CLUSTER_TOTAL_SNAPSHOT_DURATION_THRESHOLD_EXCEEDED_TYPE_ID
      The type id of the Counter used for keeping track of the count total snapshot duration has exceeded the threshold.
      See Also:
    • CLUSTERED_SERVICE_MAX_SNAPSHOT_DURATION_TYPE_ID

      public static final int CLUSTERED_SERVICE_MAX_SNAPSHOT_DURATION_TYPE_ID
      The type id of the Counter used for keeping track of the maximum snapshot duration for a given clustered service.
      See Also:
    • CLUSTERED_SERVICE_SNAPSHOT_DURATION_THRESHOLD_EXCEEDED_TYPE_ID

      public static final int CLUSTERED_SERVICE_SNAPSHOT_DURATION_THRESHOLD_EXCEEDED_TYPE_ID
      The type id of the Counter used for keeping track of the count snapshot duration has exceeded the threshold for a given clustered service.
      See Also:
    • CLUSTER_ELECTION_COUNT_TYPE_ID

      public static final int CLUSTER_ELECTION_COUNT_TYPE_ID
      The type id of the Counter used for keeping track of the number of elections that have occurred.
      See Also:
    • CLUSTER_LEADERSHIP_TERM_ID_TYPE_ID

      public static final int CLUSTER_LEADERSHIP_TERM_ID_TYPE_ID
      The type id of the Counter used for keeping track of the Cluster leadership term id.
      See Also:
    • CLUSTER_BACKUP_SNAPSHOT_RETRIEVE_COUNT_TYPE_ID

      public static final int CLUSTER_BACKUP_SNAPSHOT_RETRIEVE_COUNT_TYPE_ID
      The type id of the Counter used for tracking the number of snapshots downloaded.
      See Also:
    • CLUSTER_SESSION_TYPE_ID

      public static final int CLUSTER_SESSION_TYPE_ID
      The type id of the Counter used for tracking Cluster clients.
      Since:
      1.49.0.
      See Also:
    • SELECTOR_CLIENTS_COUNTER_TYPE_ID

      public static final int SELECTOR_CLIENTS_COUNTER_TYPE_ID
      SELECTOR_CLIENTS_COUNTER_TYPE_ID.
      See Also:
    • SELECTOR_SUBSCRIPTIONS_COUNTER_TYPE_ID

      public static final int SELECTOR_SUBSCRIPTIONS_COUNTER_TYPE_ID
      SELECTOR_SUBSCRIPTIONS_COUNTER_TYPE_ID.
      See Also:
    • SELECTOR_MAX_CYCLE_TIME_TYPE_ID

      public static final int SELECTOR_MAX_CYCLE_TIME_TYPE_ID
      SELECTOR_MAX_CYCLE_TIME_TYPE_ID.
      See Also:
    • SELECTOR_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID

      public static final int SELECTOR_CYCLE_TIME_THRESHOLD_EXCEEDED_TYPE_ID
      SELECTOR_MAX_CYCLE_TIME_TYPE_ID.
      See Also:
    • SEQUENCER_INDEX_COUNTER_TYPE_ID

      public static final int SEQUENCER_INDEX_COUNTER_TYPE_ID
      Counter id for Sequencer Index.
      See Also:
    • SEQUENCER_GROUP_HWM_COUNTER_TYPE_ID

      public static final int SEQUENCER_GROUP_HWM_COUNTER_TYPE_ID
      Counter id for application group last message.
      See Also:
    • SEQUENCER_SESSION_GREATEST_MESSAGE_ID_COUNTER_TYPE_ID

      public static final int SEQUENCER_SESSION_GREATEST_MESSAGE_ID_COUNTER_TYPE_ID
      Counter id for session last message.
      See Also:
    • SEQUENCER_SESSION_MESSAGES_COUNTER_TYPE_ID

      public static final int SEQUENCER_SESSION_MESSAGES_COUNTER_TYPE_ID
      Counter id for session messages.
      See Also:
    • SEQUENCER_SESSION_GREATEST_MESSAGE_TIMESTAMP_COUNTER_TYPE_ID

      public static final int SEQUENCER_SESSION_GREATEST_MESSAGE_TIMESTAMP_COUNTER_TYPE_ID
      Counter id for session last message timestamp.
      See Also:
    • SEQUENCER_CLIENT_SNAPSHOT_ID_COUNTER_TYPE_ID

      public static final int SEQUENCER_CLIENT_SNAPSHOT_ID_COUNTER_TYPE_ID
      Counter id for the next snapshot id.
      See Also:
    • SEQUENCER_APPLICATION_SEQUENCE_INDEX_COUNTER_TYPE_ID

      public static final int SEQUENCER_APPLICATION_SEQUENCE_INDEX_COUNTER_TYPE_ID
      Counter id for sequence index.
      See Also:
    • SEQUENCER_APPLICATION_STATE_COUNTER_TYPE_ID

      public static final int SEQUENCER_APPLICATION_STATE_COUNTER_TYPE_ID
      Application state counter type id.
      See Also:
    • SEQUENCER_APPLICATION_ERROR_COUNT_TYPE_ID

      public static final int SEQUENCER_APPLICATION_ERROR_COUNT_TYPE_ID
      Counter id for error count.
      See Also:
    • SEQUENCER_APPLICATION_MAX_SERVICE_TIME_TYPE_ID

      public static final int SEQUENCER_APPLICATION_MAX_SERVICE_TIME_TYPE_ID
      Counter id for max service time.
      See Also:
    • SEQUENCER_APPLICATION_SERVICE_TIME_THRESHOLD_EXCEEDED_COUNT_TYPE_ID

      public static final int SEQUENCER_APPLICATION_SERVICE_TIME_THRESHOLD_EXCEEDED_COUNT_TYPE_ID
      Counter id for the number of times the service time threshold was exceeded.
      See Also:
    • SEQUENCER_APPLICATION_INTERVAL_SERVICE_TIME_TYPE_ID

      public static final int SEQUENCER_APPLICATION_INTERVAL_SERVICE_TIME_TYPE_ID
      Counter id for the total service time during the last interval.
      See Also:
    • SEQUENCER_APPLICATION_INTERVAL_MAX_SERVICE_TIME_TYPE_ID

      public static final int SEQUENCER_APPLICATION_INTERVAL_MAX_SERVICE_TIME_TYPE_ID
      Counter id for the maximum individual service time during the last interval.
      See Also:
    • SEQUENCER_APPLICATION_INTERVAL_TOTAL_INVOCATIONS_TYPE_ID

      public static final int SEQUENCER_APPLICATION_INTERVAL_TOTAL_INVOCATIONS_TYPE_ID
      Counter id for the total number of invocations during the last interval.
      See Also:
    • SEQUENCER_APPLICATION_SNAPSHOT_LOAD_TIME_TYPE_ID

      public static final int SEQUENCER_APPLICATION_SNAPSHOT_LOAD_TIME_TYPE_ID
      Counter id for the load time, in milliseconds, of a snapshot.
      See Also:
    • SEQUENCER_APPLICATION_SNAPSHOT_STORE_TIME_TYPE_ID

      public static final int SEQUENCER_APPLICATION_SNAPSHOT_STORE_TIME_TYPE_ID
      Counter id for the store time, in milliseconds, of a snapshot.
      See Also:
    • SEQUENCER_APPLICATION_TAKE_SNAPSHOT_FAILURES_TYPE_ID

      public static final int SEQUENCER_APPLICATION_TAKE_SNAPSHOT_FAILURES_TYPE_ID
      Counter id for the number of 'take snapshot' failures.
      See Also:
    • SEQUENCER_APPLICATION_TAKE_SNAPSHOT_COUNT_TYPE_ID

      public static final int SEQUENCER_APPLICATION_TAKE_SNAPSHOT_COUNT_TYPE_ID
      Counter id for the number of 'take snapshot' instances.
      See Also:
    • SEQUENCER_APPLICATION_SESSION_ID_TYPE_ID

      public static final int SEQUENCER_APPLICATION_SESSION_ID_TYPE_ID
      Counter id for the application service's session with the sequencer.
      See Also:
    • SEQUENCER_REPLAY_INDEX_MIN_SEQUENCE_INDEX_COUNTER_TYPE_ID

      public static final int SEQUENCER_REPLAY_INDEX_MIN_SEQUENCE_INDEX_COUNTER_TYPE_ID
      Counter id for the replay index's minimum sequence index.
      See Also:
    • SEQUENCER_REPLAY_INDEX_MIN_SEQUENCE_LOG_POSITION_COUNTER_TYPE_ID

      public static final int SEQUENCER_REPLAY_INDEX_MIN_SEQUENCE_LOG_POSITION_COUNTER_TYPE_ID
      Counter id for the replay index's minimum log position.
      See Also:
    • SEQUENCER_REPLAY_INDEX_MAX_SEQUENCE_INDEX_COUNTER_TYPE_ID

      public static final int SEQUENCER_REPLAY_INDEX_MAX_SEQUENCE_INDEX_COUNTER_TYPE_ID
      Counter id for the replay index's maximum sequence index.
      See Also:
    • SEQUENCER_REPLAY_INDEX_MAX_SEQUENCE_LOG_POSITION_COUNTER_TYPE_ID

      public static final int SEQUENCER_REPLAY_INDEX_MAX_SEQUENCE_LOG_POSITION_COUNTER_TYPE_ID
      Counter id for the replay index's maximum log position.
      See Also:
    • SEQUENCER_REPLAY_INDEX_INITIAL_SEQUENCE_INDEX_COUNTER_TYPE_ID

      public static final int SEQUENCER_REPLAY_INDEX_INITIAL_SEQUENCE_INDEX_COUNTER_TYPE_ID
      Counter id for the replay index's initial sequence index.
      See Also:
    • SEQUENCER_REPLAY_INDEX_INITIAL_SEQUENCE_LOG_POSITION_COUNTER_TYPE_ID

      public static final int SEQUENCER_REPLAY_INDEX_INITIAL_SEQUENCE_LOG_POSITION_COUNTER_TYPE_ID
      Counter id for the replay index's initial log position.
      See Also:
  • Method Details

    • validateCounterTypeId

      public static void validateCounterTypeId(CountersReader countersReader, int counterId, int expectedCounterTypeId)
      Checks that the counter specified by counterId has the counterTypeId that matches the specified value. If not it will throw a ConfigurationException.
      Parameters:
      countersReader - to look up the counter type id.
      counterId - counter to reference.
      expectedCounterTypeId - the expected type id for the counter.
      Throws:
      ConfigurationException - if the type id does not match.
      IllegalArgumentException - if the counterId is not valid.
    • validateCounterTypeId

      public static void validateCounterTypeId(Aeron aeron, Counter counter, int expectedCounterTypeId)
      Parameters:
      aeron - to resolve a counters' reader.
      counter - to be checked for the appropriate counterTypeId.
      expectedCounterTypeId - the expected type id for the counter.
      Throws:
      ConfigurationException - if the type id does not match.
      IllegalArgumentException - if the counterId is not valid.
      See Also:
    • appendVersionInfo

      public static int appendVersionInfo(MutableDirectBuffer tempBuffer, int offset, String fullVersion, String commitHashCode)
      Append version information at the end of the counter's label.
      Parameters:
      tempBuffer - to append label to.
      offset - at which current label data ends.
      fullVersion - of the component.
      commitHashCode - Git commit SHA.
      Returns:
      length of the suffix appended.
    • appendToLabel

      public static int appendToLabel(AtomicBuffer metaDataBuffer, int counterId, String value)
      Append specified value at the end of the counter's label as ASCII encoded value up to the CountersReader.MAX_LABEL_LENGTH.
      Parameters:
      metaDataBuffer - containing the counter metadata.
      counterId - to append version info to.
      value - to be appended to the label.
      Returns:
      number of bytes that got appended.
      Throws:
      IllegalArgumentException - if counterId is invalid or points to non-allocated counter.
    • formatVersionInfo

      public static String formatVersionInfo(String fullVersion, String commitHash)
      Format version information for display purposes.
      Parameters:
      fullVersion - of the component.
      commitHash - Git commit SHA.
      Returns:
      formatted String.
    • setReferenceId

      public static void setReferenceId(AtomicBuffer metaDataBuffer, AtomicBuffer valuesBuffer, int counterId, long referenceId)
      Set a reference id for a given counter id.
      Parameters:
      metaDataBuffer - containing the counter metadata.
      valuesBuffer - containing the counter values.
      counterId - to be set.
      referenceId - to set for the counter.
      Since:
      1.49.0
      See Also: