@AMXMetadata(type="server-runtime-mon",
group="monitoring",
isSingleton=true)
@ManagedObject
@Description(value="Server Runtime Statistics")
public class ServerRuntimeStatsProvider
extends Object
| 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() |
long |
getState() |
long |
getUptime() |
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()
public void setState(int state)
Copyright © 2017. All rights reserved.