Class ClusterContainerStatsImpl

    • Method Detail

      • start

        public void start()
      • getMemoryAvailable

        @ManagedAttribute(description="The maximum amount of free memory in bytes across the cluster JVMs",
                          displayName="Cluster wide available memory.")
        public long getMemoryAvailable()
        Specified by:
        getMemoryAvailable in interface ClusterContainerStats
        Returns:
        the maximum amount of free memory in bytes across the cluster JVMs.
      • getMemoryMax

        @ManagedAttribute(description="The maximum amount of memory that JVMs across the cluster will attempt to utilise in bytes",
                          displayName="Cluster wide max memory of JVMs")
        public long getMemoryMax()
        Specified by:
        getMemoryMax in interface ClusterContainerStats
        Returns:
        the maximum amount of memory that JVMs across the cluster will attempt to utilise in bytes.
      • getMemoryTotal

        @ManagedAttribute(description="The total amount of memory in the JVMs across the cluster in bytes",
                          displayName="Cluster wide total memory")
        public long getMemoryTotal()
        Specified by:
        getMemoryTotal in interface ClusterContainerStats
        Returns:
        the total amount of memory in the JVMs across the cluster in bytes.
      • getMemoryUsed

        @ManagedAttribute(description="The amount of memory used by JVMs across the cluster in bytes",
                          displayName="Cluster wide memory utilisation")
        public long getMemoryUsed()
        Specified by:
        getMemoryUsed in interface ClusterContainerStats
        Returns:
        the amount of memory used by JVMs across the cluster in bytes.
      • getStaleStatsThreshold

        public abstract long getStaleStatsThreshold()
        Returns:
        The time in milliseconds, to wait between requests before re-retrieving cluster wide stats
      • setStaleStatsThreshold

        public abstract void setStaleStatsThreshold​(long threshold)
        Parameters:
        threshold - the time in milliseconds, to wait between requests before re-retrieving cluster wide stats
      • reset

        public abstract void reset()
        Reset the collected statistics