Skip navigation links
com.streamscape.runtime.stats.threshold

Class MemoryThresholdAdvisory

    • Constructor Detail

      • MemoryThresholdAdvisory

        public MemoryThresholdAdvisory()
      • MemoryThresholdAdvisory

        public MemoryThresholdAdvisory(ThresholdAdvisoryType type,
                                       Threshold threshold,
                                       int currentValue,
                                       java.util.List memoryPoolStats)
    • Method Detail

      • getType

        public ThresholdAdvisoryType getType()
        Returns a flag indicating if the specified threshold has been reached from below or from above.
        Returns:
        the advisory type.
      • getThreshold

        public int getThreshold()
        Returns the specified memory usage threshold (in megabytes).
        Returns:
        the memory usage threshold.
      • getMemoryUsage

        public int getMemoryUsage()
        Returns the amount of used memory (in megabytes) that reached of the specified threshold.
        Returns:
        the current memory usage.
      • getMemoryPoolsStats

        public java.util.List getMemoryPoolsStats()
        Returns a stats of all memory pools currently used in the JVM.
        Returns:
        the list of all memory pool stats.

Copyright © 2015-2024 StreamScape Technologies. All rights reserved.