@AMXMetadata(type="server-runtime-mon", group="monitoring", isSingleton=true) @ManagedObject @Description(value="Server Runtime Statistics") public class ServerRuntimeStatsProvider extends Object
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
Modifier and Type | Field and Description |
---|---|
static int |
FAILED_STATE |
static int |
RUNNING_STATE |
static int |
STARTING_STATE |
static int |
STOPPED_STATE |
static int |
STOPPING_STATE |
Constructor and Description |
---|
ServerRuntimeStatsProvider() |
Modifier and Type | Method and Description |
---|---|
long |
getStartTime()
Gets the start time of the Java virtual machine
|
long |
getState()
Gets the state of the server such as Running, Stopped, Failed.
|
long |
getUptime()
Gets the uptime of the Java virtual machine
|
void |
setState(int state) |
public static final int STARTING_STATE
public static final int RUNNING_STATE
public static final int STOPPING_STATE
public static final int STOPPED_STATE
public static final int FAILED_STATE
@ManagedAttribute(id="uptime") @Description(value="uptime of the Java virtual machine in milliseconds") public long getUptime()
@ManagedAttribute(id="starttime") @Description(value="start time of the Java virtual machine") public long getStartTime()
@ManagedAttribute(id="state") @Description(value="state of the server such as Running, Stopped, Failed") public long getState()
STARTING_STATE
,
RUNNING_STATE
,
STOPPING_STATE
,
STOPPED_STATE
,
FAILED_STATE
public void setState(int state)
Copyright © 2019. All rights reserved.