org.apache.hadoop.yarn.proto.ApplicationHistoryServerProtos.ContainerStartDataProtoOrBuilder Java Examples

The following examples show how to use org.apache.hadoop.yarn.proto.ApplicationHistoryServerProtos.ContainerStartDataProtoOrBuilder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ContainerStartDataPBImpl.java    From ambari-metrics with Apache License 2.0 5 votes vote down vote up
@Override
public ContainerId getContainerId() {
  if (this.containerId != null) {
    return this.containerId;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasContainerId()) {
    return null;
  }
  this.containerId = convertFromProtoFormat(p.getContainerId());
  return this.containerId;
}
 
Example #2
Source File: ContainerStartDataPBImpl.java    From ambari-metrics with Apache License 2.0 5 votes vote down vote up
@Override
public Resource getAllocatedResource() {
  if (this.resource != null) {
    return this.resource;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasAllocatedResource()) {
    return null;
  }
  this.resource = convertFromProtoFormat(p.getAllocatedResource());
  return this.resource;
}
 
Example #3
Source File: ContainerStartDataPBImpl.java    From ambari-metrics with Apache License 2.0 5 votes vote down vote up
@Override
public NodeId getAssignedNode() {
  if (this.nodeId != null) {
    return this.nodeId;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasAssignedNodeId()) {
    return null;
  }
  this.nodeId = convertFromProtoFormat(p.getAssignedNodeId());
  return this.nodeId;
}
 
Example #4
Source File: ContainerStartDataPBImpl.java    From ambari-metrics with Apache License 2.0 5 votes vote down vote up
@Override
public Priority getPriority() {
  if (this.priority != null) {
    return this.priority;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasPriority()) {
    return null;
  }
  this.priority = convertFromProtoFormat(p.getPriority());
  return this.priority;
}
 
Example #5
Source File: ContainerStartDataPBImpl.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Override
public ContainerId getContainerId() {
  if (this.containerId != null) {
    return this.containerId;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasContainerId()) {
    return null;
  }
  this.containerId = convertFromProtoFormat(p.getContainerId());
  return this.containerId;
}
 
Example #6
Source File: ContainerStartDataPBImpl.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Override
public Resource getAllocatedResource() {
  if (this.resource != null) {
    return this.resource;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasAllocatedResource()) {
    return null;
  }
  this.resource = convertFromProtoFormat(p.getAllocatedResource());
  return this.resource;
}
 
Example #7
Source File: ContainerStartDataPBImpl.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Override
public NodeId getAssignedNode() {
  if (this.nodeId != null) {
    return this.nodeId;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasAssignedNodeId()) {
    return null;
  }
  this.nodeId = convertFromProtoFormat(p.getAssignedNodeId());
  return this.nodeId;
}
 
Example #8
Source File: ContainerStartDataPBImpl.java    From hadoop with Apache License 2.0 5 votes vote down vote up
@Override
public Priority getPriority() {
  if (this.priority != null) {
    return this.priority;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasPriority()) {
    return null;
  }
  this.priority = convertFromProtoFormat(p.getPriority());
  return this.priority;
}
 
Example #9
Source File: ContainerStartDataPBImpl.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Override
public ContainerId getContainerId() {
  if (this.containerId != null) {
    return this.containerId;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasContainerId()) {
    return null;
  }
  this.containerId = convertFromProtoFormat(p.getContainerId());
  return this.containerId;
}
 
Example #10
Source File: ContainerStartDataPBImpl.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Override
public Resource getAllocatedResource() {
  if (this.resource != null) {
    return this.resource;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasAllocatedResource()) {
    return null;
  }
  this.resource = convertFromProtoFormat(p.getAllocatedResource());
  return this.resource;
}
 
Example #11
Source File: ContainerStartDataPBImpl.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Override
public NodeId getAssignedNode() {
  if (this.nodeId != null) {
    return this.nodeId;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasAssignedNodeId()) {
    return null;
  }
  this.nodeId = convertFromProtoFormat(p.getAssignedNodeId());
  return this.nodeId;
}
 
Example #12
Source File: ContainerStartDataPBImpl.java    From big-c with Apache License 2.0 5 votes vote down vote up
@Override
public Priority getPriority() {
  if (this.priority != null) {
    return this.priority;
  }
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  if (!p.hasPriority()) {
    return null;
  }
  this.priority = convertFromProtoFormat(p.getPriority());
  return this.priority;
}
 
Example #13
Source File: ContainerStartDataPBImpl.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
@Override
public long getStartTime() {
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  return p.getStartTime();
}
 
Example #14
Source File: ContainerStartDataPBImpl.java    From hadoop with Apache License 2.0 4 votes vote down vote up
@Override
public long getStartTime() {
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  return p.getStartTime();
}
 
Example #15
Source File: ContainerStartDataPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
@Override
public long getStartTime() {
  ContainerStartDataProtoOrBuilder p = viaProto ? proto : builder;
  return p.getStartTime();
}