public class HostInfo extends Descriptor
{
"architecture" : "amd64",
"cpus" : 24,
"dockerHost" : "unix:///var/run/docker.sock",
"dockerCertPath" : null,
"dockerVersion" : {
"apiVersion" : "1.12",
"arch" : "amd64",
"gitCommit" : "688b5cf-dirty",
"goVersion" : "go1.2.1",
"kernelVersion" : "3.13.0-19-generic",
"os" : "linux",
"version" : "1.0.0"
},
"hostname" : "agenthostname",
"loadAvg" : 0.28,
"memoryFreeBytes" : 26494124032,
"memoryTotalBytes" : 33421123584,
"osName" : "Linux",
"osVersion" : "3.13.0-19-generic",
"swapFreeBytes" : 10737414144,
"swapTotalBytes" : 10737414144,
"uname" : "Linux agenthostname 3.13.0-19-generic #40-Ubuntu SMP Mon Mar 24 02:36:06 UTC ..."
},
| Modifier and Type | Class and Description |
|---|---|
static class |
HostInfo.Builder |
| Constructor and Description |
|---|
HostInfo(HostInfo.Builder builder) |
HostInfo(String hostname,
String uname,
String architecture,
String osName,
String osVersion,
int cpus,
double loadAvg,
long memoryTotalBytes,
long memoryFreeBytes,
long swapTotalBytes,
long swapFreeBytes,
DockerVersion dockerVersion,
String dockerHost,
String dockerCertPath) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArchitecture() |
int |
getCpus() |
String |
getDockerCertPath() |
String |
getDockerHost() |
DockerVersion |
getDockerVersion() |
String |
getHostname() |
double |
getLoadAvg() |
long |
getMemoryFreeBytes() |
long |
getMemoryTotalBytes() |
String |
getOsName() |
String |
getOsVersion() |
long |
getSwapFreeBytes() |
long |
getSwapTotalBytes() |
String |
getUname() |
static HostInfo.Builder |
newBuilder() |
String |
toString() |
parse, parse, toJsonBytes, toJsonStringpublic HostInfo(String hostname, String uname, String architecture, String osName, String osVersion, int cpus, double loadAvg, long memoryTotalBytes, long memoryFreeBytes, long swapTotalBytes, long swapFreeBytes, DockerVersion dockerVersion, String dockerHost, String dockerCertPath)
hostname - The hostname of the agent.uname - The output of the uname command.architecture - The architecture of the Agent.osName - The name of the operating system on the Agent.osVersion - The version of the operating system (or kernel version).cpus - The number of CPUS on the machine.loadAvg - The current load average on the host.memoryTotalBytes - Total memory on the host.memoryFreeBytes - Total memory free on the host.swapTotalBytes - Total swap bytes.swapFreeBytes - Total free swap bytes.dockerVersion - Docker version.dockerHost - The docker host address.dockerCertPath - The docker certificate path.public HostInfo(HostInfo.Builder builder)
public String getHostname()
public String getUname()
public String getArchitecture()
public String getOsName()
public String getOsVersion()
public int getCpus()
public double getLoadAvg()
public long getMemoryTotalBytes()
public long getMemoryFreeBytes()
public long getSwapTotalBytes()
public long getSwapFreeBytes()
public DockerVersion getDockerVersion()
public String getDockerHost()
public String getDockerCertPath()
public static HostInfo.Builder newBuilder()
Copyright © 2015. All rights reserved.