Class BrokerUsage


  • public class BrokerUsage
    extends java.lang.Object
    BrokerUsage object encapsulates the resources that are only used by broker, for now, it's connections both to outside JVM and to the local.
    • Constructor Detail

      • BrokerUsage

        public BrokerUsage()
    • Method Detail

      • getConnectionCount

        public long getConnectionCount()
      • getReplicationConnectionCount

        public long getReplicationConnectionCount()
      • setConnectionCount

        public void setConnectionCount​(long connectionCount)
      • setReplicationConnectionCount

        public void setReplicationConnectionCount​(long replicationConnectionCount)
      • populateFrom

        public static BrokerUsage populateFrom​(java.util.Map<java.lang.String,​java.lang.Object> metrics)
        Factory method that returns an instance of this class populated from metrics we expect the keys that we are looking there's no explicit type checked object which guarantees that we have a specific type of metrics.
        Parameters:
        metrics - metrics object containing the metrics collected per minute from mbeans
        Returns:
        new instance of the class populated from metrics