Class ServerRuntimeStatsProvider


  • @AMXMetadata(type="server-runtime-mon",
                 group="monitoring",
                 isSingleton=true)
    @ManagedObject
    @Description("Server Runtime Statistics")
    public class ServerRuntimeStatsProvider
    extends Object
    Class providing the MBean for server runtime statistics

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

    • Constructor Detail

      • ServerRuntimeStatsProvider

        public ServerRuntimeStatsProvider()
    • Method Detail

      • getUptime

        @ManagedAttribute(id="uptime")
        @Description("uptime of the Java virtual machine in milliseconds")
        public long getUptime()
        Gets the uptime of the Java virtual machine
        Returns:
        time in milliseconds
      • getStartTime

        @ManagedAttribute(id="starttime")
        @Description("start time of the Java virtual machine")
        public long getStartTime()
        Gets the start time of the Java virtual machine
        Returns:
        time in milliseconds since the epoch (1st January 1970)
      • getState

        @ManagedAttribute(id="state")
        @Description("state of the server such as Running, Stopped, Failed")
        public long getState()
        Gets the state of the server such as Running, Stopped, Failed.
        Returns:
        a number representing the state of the server
        See Also:
        STARTING_STATE, RUNNING_STATE, STOPPING_STATE, STOPPED_STATE, FAILED_STATE
      • setState

        public void setState​(int state)