Class AbstractClusterStats

    • Field Detail

      • DEFAULT_STALE_STATS_THRESHOLD

        public static final long DEFAULT_STALE_STATS_THRESHOLD
        See Also:
        Constant Field Values
    • Method Detail

      • reset

        public void reset()
      • getStaleStatsThreshold

        @ManagedAttribute(description="Gets the threshold for cluster wide stats refresh (milliseconds)",
                          displayName="Stale Stats Threshold",
                          dataType=TRAIT,
                          writable=true)
        public long getStaleStatsThreshold()
      • setStaleStatsThreshold

        public void setStaleStatsThreshold​(long staleStatsThreshold)
      • resetStatistics

        @ManagedOperation(description="Resets statistics gathered by this component",
                          displayName="Reset statistics")
        public void resetStatistics()
        Description copied from interface: JmxStatisticsExposer
        Resets an interceptor's cache statistics
        Specified by:
        resetStatistics in interface JmxStatisticsExposer
      • getTimeSinceReset

        @ManagedAttribute(description="Number of seconds since the cluster-wide statistics were last reset",
                          displayName="Seconds since cluster-wide statistics were reset",
                          units=SECONDS)
        public long getTimeSinceReset()
      • setStatisticsEnabled

        public void setStatisticsEnabled​(boolean enabled)
        Description copied from interface: JmxStatisticsExposer
        Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.
        Specified by:
        setStatisticsEnabled in interface JmxStatisticsExposer
        Parameters:
        enabled - true if statistics should be captured
      • isStatisticsEnabled

        @ManagedAttribute(description="Enables or disables the gathering of statistics by this component",
                          displayName="Statistics enabled",
                          dataType=TRAIT,
                          writable=true)
        public boolean isStatisticsEnabled()