Java 类org.apache.hadoop.yarn.proto.YarnProtos.ResourceOptionProto 实例源码

项目:hadoop    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl() {
  builder = ResourceOptionProto.newBuilder();
}
项目:hadoop    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl(ResourceOptionProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hadoop    文件:ResourceOptionPBImpl.java   
public ResourceOptionProto getProto() {
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:hadoop    文件:ResourceOptionPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ResourceOptionProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:hadoop    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionPBImpl convertFromProtoFormat(ResourceOptionProto c) {
  return new ResourceOptionPBImpl(c);
}
项目:hadoop    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionProto convertToProtoFormat(ResourceOption c) {
  return ((ResourceOptionPBImpl)c).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl() {
  builder = ResourceOptionProto.newBuilder();
}
项目:aliyun-oss-hadoop-fs    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl(ResourceOptionProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:aliyun-oss-hadoop-fs    文件:ResourceOptionPBImpl.java   
public ResourceOptionProto getProto() {
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:aliyun-oss-hadoop-fs    文件:ResourceOptionPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ResourceOptionProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:aliyun-oss-hadoop-fs    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionPBImpl convertFromProtoFormat(ResourceOptionProto c) {
  return new ResourceOptionPBImpl(c);
}
项目:aliyun-oss-hadoop-fs    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionProto convertToProtoFormat(ResourceOption c) {
  return ((ResourceOptionPBImpl)c).getProto();
}
项目:aliyun-oss-hadoop-fs    文件:TestPBImplRecords.java   
@Test
@Ignore
// ignore as ResourceOptionPBImpl is immutable
public void testResourceOptionPBImpl() throws Exception {
  validatePBImplRecord(ResourceOptionPBImpl.class, ResourceOptionProto.class);
}
项目:big-c    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl() {
  builder = ResourceOptionProto.newBuilder();
}
项目:big-c    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl(ResourceOptionProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:big-c    文件:ResourceOptionPBImpl.java   
public ResourceOptionProto getProto() {
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:big-c    文件:ResourceOptionPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ResourceOptionProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:big-c    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionPBImpl convertFromProtoFormat(ResourceOptionProto c) {
  return new ResourceOptionPBImpl(c);
}
项目:big-c    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionProto convertToProtoFormat(ResourceOption c) {
  return ((ResourceOptionPBImpl)c).getProto();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl() {
  builder = ResourceOptionProto.newBuilder();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl(ResourceOptionProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ResourceOptionPBImpl.java   
public ResourceOptionProto getProto() {
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ResourceOptionPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ResourceOptionProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionPBImpl convertFromProtoFormat(ResourceOptionProto c) {
  return new ResourceOptionPBImpl(c);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionProto convertToProtoFormat(ResourceOption c) {
  return ((ResourceOptionPBImpl)c).getProto();
}
项目:hops    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl() {
  builder = ResourceOptionProto.newBuilder();
}
项目:hops    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl(ResourceOptionProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hops    文件:ResourceOptionPBImpl.java   
public ResourceOptionProto getProto() {
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:hops    文件:ResourceOptionPBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ResourceOptionProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:hops    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionPBImpl convertFromProtoFormat(ResourceOptionProto c) {
  return new ResourceOptionPBImpl(c);
}
项目:hops    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionProto convertToProtoFormat(ResourceOption c) {
  return ((ResourceOptionPBImpl)c).getProto();
}
项目:hops    文件:TestPBImplRecords.java   
@Test
@Ignore
// ignore as ResourceOptionPBImpl is immutable
public void testResourceOptionPBImpl() throws Exception {
  validatePBImplRecord(ResourceOptionPBImpl.class, ResourceOptionProto.class);
}
项目:hadoop-on-lustre2    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl() {
  builder = ResourceOptionProto.newBuilder();
}
项目:hadoop-on-lustre2    文件:ResourceOptionPBImpl.java   
public ResourceOptionPBImpl(ResourceOptionProto proto) {
  this.proto = proto;
  this.resource = convertFromProtoFormat(proto.getResource());
}
项目:hadoop-on-lustre2    文件:ResourceOptionPBImpl.java   
public ResourceOptionProto getProto() {
  return proto;
}
项目:hadoop-on-lustre2    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionPBImpl convertFromProtoFormat(ResourceOptionProto c) {
  return new ResourceOptionPBImpl(c);
}
项目:hadoop-on-lustre2    文件:UpdateNodeResourceRequestPBImpl.java   
private ResourceOptionProto convertToProtoFormat(ResourceOption c) {
  return ((ResourceOptionPBImpl)c).getProto();
}