public class AgentInfo extends Descriptor
A typical JSON representation might look like this:
{
"inputArguments" : [ "-Xmx256m", "-Dcom.sun.management.jmxremote.port=9203",
"-Dcom.sun.management.jmxremote.ssl=false",
"-Dcom.sun.management.jmxremote.authenticate=false", "-Djava.net.preferIPv4Stack=true",
"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5006" ],
"name" : "agent-name",
"specName" : "Java Virtual Machine Specification",
"specVendor" : "Oracle Corporation",
"specVersion" : "1.7",
"startTime" : 1410308461448,
"uptime" : 231779308,
"version" : "0.8.10",
"vmName" : "Java HotSpot(TM) 64-Bit Server VM",
"vmVendor" : "Oracle Corporation",
"vmVersion" : "24.45-b08"
}
| Modifier and Type | Class and Description |
|---|---|
static class |
AgentInfo.Builder |
| Constructor and Description |
|---|
AgentInfo(AgentInfo.Builder builder) |
AgentInfo(String name,
String vmName,
String vmVendor,
String vmVersion,
String specName,
String specVendor,
String specVersion,
List<String> inputArguments,
long uptime,
long startTime,
String version)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getInputArguments() |
String |
getName() |
String |
getSpecName() |
String |
getSpecVendor() |
String |
getSpecVersion() |
long |
getStartTime() |
long |
getUptime() |
String |
getVersion() |
String |
getVmName() |
String |
getVmVendor() |
String |
getVmVersion() |
int |
hashCode() |
static AgentInfo.Builder |
newBuilder() |
String |
toString() |
parse, parse, toJsonBytes, toJsonStringpublic AgentInfo(String name, String vmName, String vmVendor, String vmVersion, String specName, String specVendor, String specVersion, List<String> inputArguments, long uptime, long startTime, String version)
name - The name of the agent.vmName - The name of the JVM.vmVendor - The vendor of the JVM.vmVersion - The version of the JVM.specName - The specification of the JVM.specVendor - The specification vendor of the JVM.specVersion - The specification version of the JVM.inputArguments - JVM arguments passed when starting the agent.uptime - How long the Agent has been running.startTime - The clock time at which the Agent started.version - The Helios version of the running Agent.public AgentInfo(AgentInfo.Builder builder)
public String getName()
public String getVmName()
public String getVmVendor()
public String getVmVersion()
public String getSpecName()
public String getSpecVendor()
public String getSpecVersion()
public long getUptime()
public long getStartTime()
public String getVersion()
public static AgentInfo.Builder newBuilder()
Copyright © 2017. All rights reserved.