org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto Java Examples

The following examples show how to use org.apache.hadoop.yarn.proto.YarnProtos.ResourceProto. 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: ResourcePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
public ResourceProto getProto() {
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
 
Example #2
Source File: RegisterNodeManagerRequestPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourcePBImpl convertFromProtoFormat(ResourceProto p) {
  return new ResourcePBImpl(p);
}
 
Example #3
Source File: ContainerReportPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourcePBImpl convertFromProtoFormat(ResourceProto p) {
  return new ResourcePBImpl(p);
}
 
Example #4
Source File: ContainerStartDataPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(Resource resource) {
  return ((ResourcePBImpl) resource).getProto();
}
 
Example #5
Source File: ContainerStartDataPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourcePBImpl convertFromProtoFormat(ResourceProto resource) {
  return new ResourcePBImpl(resource);
}
 
Example #6
Source File: RegisterNodeManagerRequestPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(Resource t) {
  return ((ResourcePBImpl)t).getProto();
}
 
Example #7
Source File: NMContainerStatusPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourcePBImpl convertFromProtoFormat(ResourceProto p) {
  return new ResourcePBImpl(p);
}
 
Example #8
Source File: ContainerResourceIncreasePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(Resource t) {
  return ((ResourcePBImpl) t).getProto();
}
 
Example #9
Source File: ContainerResourceIncreasePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private Resource convertFromProtoFormat(ResourceProto p) {
  return new ResourcePBImpl(p);
}
 
Example #10
Source File: ContainerReportPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(Resource t) {
  return ((ResourcePBImpl) t).getProto();
}
 
Example #11
Source File: NMContainerStatusPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(Resource t) {
  return ((ResourcePBImpl) t).getProto();
}
 
Example #12
Source File: ApplicationResourceUsageReportPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourcePBImpl convertFromProtoFormat(ResourceProto p) {
  return new ResourcePBImpl(p);
}
 
Example #13
Source File: ResourceOptionPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourcePBImpl convertFromProtoFormat(
    ResourceProto p) {
  return new ResourcePBImpl(p);
}
 
Example #14
Source File: ResourceOptionPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(
    Resource resource) {
  return ((ResourcePBImpl)resource).getProto();
}
 
Example #15
Source File: ResourcePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ResourceProto.newBuilder(proto);
  }
  viaProto = false;
}
 
Example #16
Source File: ApplicationResourceUsageReportPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(Resource t) {
  return ((ResourcePBImpl)t).getProto();
}
 
Example #17
Source File: ResourcePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
public ResourcePBImpl(ResourceProto proto) {
  this.proto = proto;
  viaProto = true;
}
 
Example #18
Source File: ResourcePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
public ResourcePBImpl() {
  builder = ResourceProto.newBuilder();
}
 
Example #19
Source File: NodeReportPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(Resource r) {
  return ((ResourcePBImpl) r).getProto();
}
 
Example #20
Source File: NodeReportPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourcePBImpl convertFromProtoFormat(ResourceProto p) {
  return new ResourcePBImpl(p);
}
 
Example #21
Source File: ContainerPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(Resource t) {
  return ((ResourcePBImpl)t).getProto();
}
 
Example #22
Source File: ContainerPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourcePBImpl convertFromProtoFormat(ResourceProto p) {
  return new ResourcePBImpl(p);
}
 
Example #23
Source File: ContainerResourceIncreaseRequestPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(Resource t) {
  return ((ResourcePBImpl) t).getProto();
}
 
Example #24
Source File: ContainerResourceIncreaseRequestPBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private Resource convertFromProtoFormat(ResourceProto p) {
  return new ResourcePBImpl(p);
}
 
Example #25
Source File: AllocateResponsePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private synchronized ResourceProto convertToProtoFormat(Resource r) {
  return ((ResourcePBImpl) r).getProto();
}
 
Example #26
Source File: AllocateResponsePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private synchronized ResourcePBImpl convertFromProtoFormat(ResourceProto p) {
  return new ResourcePBImpl(p);
}
 
Example #27
Source File: GetNewApplicationResponsePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(Resource resource) {
 return ((ResourcePBImpl)resource).getProto();
}
 
Example #28
Source File: GetNewApplicationResponsePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private Resource convertFromProtoFormat(ResourceProto resource) {
 return new ResourcePBImpl(resource);
}
 
Example #29
Source File: RegisterApplicationMasterResponsePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private ResourceProto convertToProtoFormat(Resource resource) {
  return ((ResourcePBImpl)resource).getProto();
}
 
Example #30
Source File: RegisterApplicationMasterResponsePBImpl.java    From big-c with Apache License 2.0 4 votes vote down vote up
private Resource convertFromProtoFormat(ResourceProto resource) {
  return new ResourcePBImpl(resource);
}