public class HostStatus extends Descriptor
{
"agentInfo" : { #... see the description of AgentInfo },
"environment" : {
"SYSLOG_HOST_PORT" : "10.99.0.1:514",
},
"hostInfo" : { #... see the description of HostInfo },
"jobs" : {
"myservice:0.5:3539b7bc2235d53f79e6e8511942bbeaa8816265" : {
"goal" : "START",
"jobId" : "myservice:0.5:3539b7bc2235d53f79e6e8511942bbeaa8816265",
}
},
"labels" : {
"role" : "foo",
"xyz" : "123"
},
"status" : "UP",
"statuses" : {
"elva:0.0.4:9f64cf43353c55c36276b7df76b066584f9c49aa" : {
"containerId" : "5a31d4fd48b5b4349980175e2f865494146704e684d89b6a95a9a766cc2f43a3",
"env" : {
"SYSLOG_HOST_PORT" : "10.99.0.1:514",
},
"goal" : "START",
"job" : { #... See definition of Job },
"state" : "RUNNING",
"throttled" : "NO"
}
}
}
| Modifier and Type | Class and Description |
|---|---|
static class |
HostStatus.Builder |
static class |
HostStatus.Status |
| Constructor and Description |
|---|
HostStatus(Map<JobId,Deployment> jobs,
Map<JobId,TaskStatus> statuses,
HostStatus.Status status,
HostInfo hostInfo,
AgentInfo agentInfo,
Map<String,String> environment,
Map<String,String> labels)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
AgentInfo |
getAgentInfo() |
Map<String,String> |
getEnvironment() |
HostInfo |
getHostInfo() |
Map<JobId,Deployment> |
getJobs() |
Map<String,String> |
getLabels() |
HostStatus.Status |
getStatus() |
Map<JobId,TaskStatus> |
getStatuses() |
int |
hashCode() |
static HostStatus.Builder |
newBuilder() |
String |
toString() |
parse, parse, toJsonBytes, toJsonStringpublic HostStatus(Map<JobId,Deployment> jobs, Map<JobId,TaskStatus> statuses, HostStatus.Status status, HostInfo hostInfo, AgentInfo agentInfo, Map<String,String> environment, Map<String,String> labels)
jobs - Map of jobs and their deployments for this host.statuses - the statuses of jobs on this host.status - The up/down status of this host.hostInfo - The host information.agentInfo - The agent information.environment - The environment provided to the agent on it's command line.labels - The labels assigned to the agent.public HostStatus.Status getStatus()
@Nullable public HostInfo getHostInfo()
@Nullable public AgentInfo getAgentInfo()
public Map<JobId,Deployment> getJobs()
public Map<JobId,TaskStatus> getStatuses()
public static HostStatus.Builder newBuilder()
Copyright © 2016. All rights reserved.