Class JVMOSStatsProvider


  • @AMXMetadata(type="operating-system-mon",
                 group="monitoring")
    @ManagedObject
    @Description("JVM Operating System Statistics")
    public class JVMOSStatsProvider
    extends Object
    Class providing the MBean for JVM operating system statistics

    The MBean will be of the format amx:pp=/mon/server-mon[server],type=operating-system-mon,name=jvm/operating-system and can be enabled by turning the Jvm monitoring level in the admin console to LOW

    Since:
    v2
    • Constructor Detail

      • JVMOSStatsProvider

        public JVMOSStatsProvider()
    • Method Detail

      • getArch

        @ManagedAttribute(id="arch-current")
        @Description("operating system architecture")
        public org.glassfish.external.statistics.StringStatistic getArch()
        Gets the operating system architecture i.e. i386 or amd64
        Returns:
        a StringStatistic with the name of architecture
      • getAvailableProcessors

        @ManagedAttribute(id="availableprocessors-count")
        @Description("number of processors available to the Java virtual machine")
        public org.glassfish.external.statistics.CountStatistic getAvailableProcessors()
        Gets the number of processors available to the Java virtual machine
        Returns:
        a CountStatistic with the number of processors
      • getOSName

        @ManagedAttribute(id="name-current")
        @Description("operating system name")
        public org.glassfish.external.statistics.StringStatistic getOSName()
        Gets the operating system name i.e. Linux or Windows
        Returns:
        a StringStatistic with the name of the operating system
      • getOSVersion

        @ManagedAttribute(id="version-current")
        @Description("operating system version")
        public org.glassfish.external.statistics.StringStatistic getOSVersion()
        Gets the operating system version
        Returns:
        a StringStatistic with the operating system version