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

项目:hadoop    文件:AllocateResponsePBImpl.java   
private synchronized void initLocalIncreasedContainerList() {
  if (this.increasedContainers != null) {
    return;
  }
  AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerResourceIncreaseProto> list = p.getIncreasedContainersList();
  increasedContainers = new ArrayList<ContainerResourceIncrease>();

  for (ContainerResourceIncreaseProto c : list) {
    increasedContainers.add(convertFromProtoFormat(c));
  }
}
项目:hadoop    文件:AllocateResponsePBImpl.java   
private synchronized Iterable<ContainerResourceIncreaseProto>
    getIncreaseProtoIterable(
        final List<ContainerResourceIncrease> newContainersList) {
  maybeInitBuilder();
  return new Iterable<ContainerResourceIncreaseProto>() {
    @Override
    public synchronized Iterator<ContainerResourceIncreaseProto> iterator() {
      return new Iterator<ContainerResourceIncreaseProto>() {

        Iterator<ContainerResourceIncrease> iter = newContainersList
            .iterator();

        @Override
        public synchronized boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public synchronized ContainerResourceIncreaseProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public synchronized void remove() {
          throw new UnsupportedOperationException();
        }
      };

    }
  };
}
项目:big-c    文件:AllocateResponsePBImpl.java   
private synchronized void initLocalIncreasedContainerList() {
  if (this.increasedContainers != null) {
    return;
  }
  AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerResourceIncreaseProto> list = p.getIncreasedContainersList();
  increasedContainers = new ArrayList<ContainerResourceIncrease>();

  for (ContainerResourceIncreaseProto c : list) {
    increasedContainers.add(convertFromProtoFormat(c));
  }
}
项目:big-c    文件:AllocateResponsePBImpl.java   
private synchronized Iterable<ContainerResourceIncreaseProto>
    getIncreaseProtoIterable(
        final List<ContainerResourceIncrease> newContainersList) {
  maybeInitBuilder();
  return new Iterable<ContainerResourceIncreaseProto>() {
    @Override
    public synchronized Iterator<ContainerResourceIncreaseProto> iterator() {
      return new Iterator<ContainerResourceIncreaseProto>() {

        Iterator<ContainerResourceIncrease> iter = newContainersList
            .iterator();

        @Override
        public synchronized boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public synchronized ContainerResourceIncreaseProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public synchronized void remove() {
          throw new UnsupportedOperationException();
        }
      };

    }
  };
}
项目:hadoop-2.6.0-cdh5.4.3    文件:AllocateResponsePBImpl.java   
private synchronized void initLocalIncreasedContainerList() {
  if (this.increasedContainers != null) {
    return;
  }
  AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerResourceIncreaseProto> list = p.getIncreasedContainersList();
  increasedContainers = new ArrayList<ContainerResourceIncrease>();

  for (ContainerResourceIncreaseProto c : list) {
    increasedContainers.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:AllocateResponsePBImpl.java   
private synchronized Iterable<ContainerResourceIncreaseProto>
    getIncreaseProtoIterable(
        final List<ContainerResourceIncrease> newContainersList) {
  maybeInitBuilder();
  return new Iterable<ContainerResourceIncreaseProto>() {
    @Override
    public synchronized Iterator<ContainerResourceIncreaseProto> iterator() {
      return new Iterator<ContainerResourceIncreaseProto>() {

        Iterator<ContainerResourceIncrease> iter = newContainersList
            .iterator();

        @Override
        public synchronized boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public synchronized ContainerResourceIncreaseProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public synchronized void remove() {
          throw new UnsupportedOperationException();
        }
      };

    }
  };
}
项目:hadoop-on-lustre2    文件:AllocateResponsePBImpl.java   
private synchronized void initLocalIncreasedContainerList() {
  if (this.increasedContainers != null) {
    return;
  }
  AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerResourceIncreaseProto> list = p.getIncreasedContainersList();
  increasedContainers = new ArrayList<ContainerResourceIncrease>();

  for (ContainerResourceIncreaseProto c : list) {
    increasedContainers.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-on-lustre2    文件:AllocateResponsePBImpl.java   
private synchronized Iterable<ContainerResourceIncreaseProto>
    getIncreaseProtoIterable(
        final List<ContainerResourceIncrease> newContainersList) {
  maybeInitBuilder();
  return new Iterable<ContainerResourceIncreaseProto>() {
    @Override
    public synchronized Iterator<ContainerResourceIncreaseProto> iterator() {
      return new Iterator<ContainerResourceIncreaseProto>() {

        Iterator<ContainerResourceIncrease> iter = newContainersList
            .iterator();

        @Override
        public synchronized boolean hasNext() {
          return iter.hasNext();
        }

        @Override
        public synchronized ContainerResourceIncreaseProto next() {
          return convertToProtoFormat(iter.next());
        }

        @Override
        public synchronized void remove() {
          throw new UnsupportedOperationException();
        }
      };

    }
  };
}
项目:hadoop    文件:AllocateResponsePBImpl.java   
private synchronized ContainerResourceIncrease convertFromProtoFormat(
    ContainerResourceIncreaseProto p) {
  return new ContainerResourceIncreasePBImpl(p);
}
项目:hadoop    文件:AllocateResponsePBImpl.java   
private synchronized ContainerResourceIncreaseProto convertToProtoFormat(
    ContainerResourceIncrease t) {
  return ((ContainerResourceIncreasePBImpl) t).getProto();
}
项目:hadoop    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreasePBImpl() {
  builder = ContainerResourceIncreaseProto.newBuilder();
}
项目:hadoop    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreasePBImpl(ContainerResourceIncreaseProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hadoop    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreaseProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:hadoop    文件:ContainerResourceIncreasePBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ContainerResourceIncreaseProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:big-c    文件:AllocateResponsePBImpl.java   
private synchronized ContainerResourceIncrease convertFromProtoFormat(
    ContainerResourceIncreaseProto p) {
  return new ContainerResourceIncreasePBImpl(p);
}
项目:big-c    文件:AllocateResponsePBImpl.java   
private synchronized ContainerResourceIncreaseProto convertToProtoFormat(
    ContainerResourceIncrease t) {
  return ((ContainerResourceIncreasePBImpl) t).getProto();
}
项目:big-c    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreasePBImpl() {
  builder = ContainerResourceIncreaseProto.newBuilder();
}
项目:big-c    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreasePBImpl(ContainerResourceIncreaseProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:big-c    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreaseProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:big-c    文件:ContainerResourceIncreasePBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ContainerResourceIncreaseProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:AllocateResponsePBImpl.java   
private synchronized ContainerResourceIncrease convertFromProtoFormat(
    ContainerResourceIncreaseProto p) {
  return new ContainerResourceIncreasePBImpl(p);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:AllocateResponsePBImpl.java   
private synchronized ContainerResourceIncreaseProto convertToProtoFormat(
    ContainerResourceIncrease t) {
  return ((ContainerResourceIncreasePBImpl) t).getProto();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreasePBImpl() {
  builder = ContainerResourceIncreaseProto.newBuilder();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreasePBImpl(ContainerResourceIncreaseProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreaseProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ContainerResourceIncreasePBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ContainerResourceIncreaseProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:hops    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreasePBImpl() {
  builder = ContainerResourceIncreaseProto.newBuilder();
}
项目:hops    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreasePBImpl(ContainerResourceIncreaseProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hops    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreaseProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:hops    文件:ContainerResourceIncreasePBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ContainerResourceIncreaseProto.newBuilder(proto);
  }
  viaProto = false;
}
项目:hadoop-on-lustre2    文件:AllocateResponsePBImpl.java   
private synchronized ContainerResourceIncrease convertFromProtoFormat(
    ContainerResourceIncreaseProto p) {
  return new ContainerResourceIncreasePBImpl(p);
}
项目:hadoop-on-lustre2    文件:AllocateResponsePBImpl.java   
private synchronized ContainerResourceIncreaseProto convertToProtoFormat(
    ContainerResourceIncrease t) {
  return ((ContainerResourceIncreasePBImpl) t).getProto();
}
项目:hadoop-on-lustre2    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreasePBImpl() {
  builder = ContainerResourceIncreaseProto.newBuilder();
}
项目:hadoop-on-lustre2    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreasePBImpl(ContainerResourceIncreaseProto proto) {
  this.proto = proto;
  viaProto = true;
}
项目:hadoop-on-lustre2    文件:ContainerResourceIncreasePBImpl.java   
public ContainerResourceIncreaseProto getProto() {
  mergeLocalToProto();
  proto = viaProto ? proto : builder.build();
  viaProto = true;
  return proto;
}
项目:hadoop-on-lustre2    文件:ContainerResourceIncreasePBImpl.java   
private void maybeInitBuilder() {
  if (viaProto || builder == null) {
    builder = ContainerResourceIncreaseProto.newBuilder(proto);
  }
  viaProto = false;
}