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

The following examples show how to use org.apache.hadoop.yarn.proto.ApplicationHistoryServerProtos.ContainerFinishDataProto. 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: ContainerFinishDataPBImpl.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
public ContainerFinishDataPBImpl() {
  builder = ContainerFinishDataProto.newBuilder();
}
 
Example #2
Source File: ContainerFinishDataPBImpl.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
public ContainerFinishDataPBImpl(ContainerFinishDataProto proto) {
  this.proto = proto;
  viaProto = true;
}
 
Example #3
Source File: ContainerFinishDataPBImpl.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
public ContainerFinishDataProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
 
Example #4
Source File: ContainerFinishDataPBImpl.java    From ambari-metrics with Apache License 2.0 4 votes vote down vote up
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ContainerFinishDataProto.newBuilder(proto);
  }
  viaProto = false;
}
 
Example #5
Source File: ContainerFinishDataPBImpl.java    From hadoop with Apache License 2.0 4 votes vote down vote up
public ContainerFinishDataPBImpl() {
  builder = ContainerFinishDataProto.newBuilder();
}
 
Example #6
Source File: ContainerFinishDataPBImpl.java    From hadoop with Apache License 2.0 4 votes vote down vote up
public ContainerFinishDataPBImpl(ContainerFinishDataProto proto) {
  this.proto = proto;
  viaProto = true;
}
 
Example #7
Source File: ContainerFinishDataPBImpl.java    From hadoop with Apache License 2.0 4 votes vote down vote up
public ContainerFinishDataProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
 
Example #8
Source File: ContainerFinishDataPBImpl.java    From hadoop with Apache License 2.0 4 votes vote down vote up
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ContainerFinishDataProto.newBuilder(proto);
  }
  viaProto = false;
}
 
Example #9
Source File: FileSystemApplicationHistoryStore.java    From hadoop with Apache License 2.0 4 votes vote down vote up
private static ContainerFinishData parseContainerFinishData(byte[] value)
    throws InvalidProtocolBufferException {
  return new ContainerFinishDataPBImpl(
    ContainerFinishDataProto.parseFrom(value));
}
 
Example #10
Source File: ContainerFinishDataPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
public ContainerFinishDataPBImpl() {
  builder = ContainerFinishDataProto.newBuilder();
}
 
Example #11
Source File: ContainerFinishDataPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
public ContainerFinishDataPBImpl(ContainerFinishDataProto proto) {
  this.proto = proto;
  viaProto = true;
}
 
Example #12
Source File: ContainerFinishDataPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
public ContainerFinishDataProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
 
Example #13
Source File: ContainerFinishDataPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ContainerFinishDataProto.newBuilder(proto);
  }
  viaProto = false;
}
 
Example #14
Source File: FileSystemApplicationHistoryStore.java    From big-c with Apache License 2.0 4 votes vote down vote up
private static ContainerFinishData parseContainerFinishData(byte[] value)
    throws InvalidProtocolBufferException {
  return new ContainerFinishDataPBImpl(
    ContainerFinishDataProto.parseFrom(value));
}