@Override public synchronized ContainerState getState() { ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasState()) { return null; } return convertFromProtoFormat(p.getState()); }
@Override public synchronized ContainerId getContainerId() { ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; if (this.containerId != null) { return this.containerId; } if (!p.hasContainerId()) { return null; } this.containerId = convertFromProtoFormat(p.getContainerId()); return this.containerId; }
@Override public synchronized ExecutionType getExecutionType() { ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasExecutionType()) { return null; } return convertFromProtoFormat(p.getExecutionType()); }
@Override public synchronized Resource getCapability() { ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasCapability()) { return null; } return convertFromProtoFormat(p.getCapability()); }
@Override public Set<Integer> getCpuCores() { ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; if (this.cpuCores != null) { return this.cpuCores; } if(p.getCpucoresList()==null){ return null; } this.cpuCores = new HashSet<Integer>(); this.cpuCores.addAll(p.getCpucoresList()); return this.cpuCores; }
@Override public ContainerState getState() { ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; if (!p.hasState()) { return null; } return convertFromProtoFormat(p.getState()); }
@Override public ContainerId getContainerId() { ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; if (this.containerId != null) { return this.containerId; } if (!p.hasContainerId()) { return null; } this.containerId = convertFromProtoFormat(p.getContainerId()); return this.containerId; }
@Override public synchronized int getExitStatus() { ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; return p.getExitStatus(); }
@Override public synchronized String getDiagnostics() { ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; return (p.getDiagnostics()); }
@Override public int getExitStatus() { ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; return p.getExitStatus(); }
@Override public String getDiagnostics() { ContainerStatusProtoOrBuilder p = viaProto ? proto : builder; return (p.getDiagnostics()); }