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

项目:hadoop    文件:GetContainerStatusesResponsePBImpl.java   
private void addLocalContainerStatusesToProto() {
  maybeInitBuilder();
  builder.clearStatus();
  if (this.containerStatuses == null)
    return;
  List<ContainerStatusProto> protoList =
      new ArrayList<ContainerStatusProto>();
  for (ContainerStatus status : containerStatuses) {
    protoList.add(convertToProtoFormat(status));
  }
  builder.addAllStatus(protoList);
}
项目:hadoop    文件:GetContainerStatusesResponsePBImpl.java   
private void initLocalContainerStatuses() {
  if (this.containerStatuses != null) {
    return;
  }
  GetContainerStatusesResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> statuses = p.getStatusList();
  this.containerStatuses = new ArrayList<ContainerStatus>();
  for (ContainerStatusProto status : statuses) {
    this.containerStatuses.add(convertFromProtoFormat(status));
  }
}
项目:hadoop    文件:AllocateResponsePBImpl.java   
private synchronized Iterable<ContainerStatusProto>
getContainerStatusProtoIterable(
    final List<ContainerStatus> newContainersList) {
  maybeInitBuilder();
  return new Iterable<ContainerStatusProto>() {
    @Override
    public synchronized Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

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

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

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

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

        }
      };

    }
  };
}
项目:hadoop    文件:AllocateResponsePBImpl.java   
private synchronized void initLocalFinishedContainerList() {
  if (this.completedContainersStatuses != null) {
    return;
  }
  AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getCompletedContainerStatusesList();
  completedContainersStatuses = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    completedContainersStatuses.add(convertFromProtoFormat(c));
  }
}
项目:hadoop    文件:NodeStatusPBImpl.java   
private synchronized void addContainersToProto() {
  maybeInitBuilder();
  builder.clearContainersStatuses();
  if (containers == null)
    return;
  Iterable<ContainerStatusProto> iterable = new Iterable<ContainerStatusProto>() {
    @Override
    public Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

        Iterator<ContainerStatus> iter = containers.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllContainersStatuses(iterable);
}
项目:hadoop    文件:NodeStatusPBImpl.java   
private synchronized void initContainers() {
  if (this.containers != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getContainersStatusesList();
  this.containers = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    this.containers.add(convertFromProtoFormat(c));
  }

}
项目:aliyun-oss-hadoop-fs    文件:GetContainerStatusesResponsePBImpl.java   
private void addLocalContainerStatusesToProto() {
  maybeInitBuilder();
  builder.clearStatus();
  if (this.containerStatuses == null)
    return;
  List<ContainerStatusProto> protoList =
      new ArrayList<ContainerStatusProto>();
  for (ContainerStatus status : containerStatuses) {
    protoList.add(convertToProtoFormat(status));
  }
  builder.addAllStatus(protoList);
}
项目:aliyun-oss-hadoop-fs    文件:GetContainerStatusesResponsePBImpl.java   
private void initLocalContainerStatuses() {
  if (this.containerStatuses != null) {
    return;
  }
  GetContainerStatusesResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> statuses = p.getStatusList();
  this.containerStatuses = new ArrayList<ContainerStatus>();
  for (ContainerStatusProto status : statuses) {
    this.containerStatuses.add(convertFromProtoFormat(status));
  }
}
项目:aliyun-oss-hadoop-fs    文件:AllocateResponsePBImpl.java   
private synchronized Iterable<ContainerStatusProto>
getContainerStatusProtoIterable(
    final List<ContainerStatus> newContainersList) {
  maybeInitBuilder();
  return new Iterable<ContainerStatusProto>() {
    @Override
    public synchronized Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

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

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

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

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

        }
      };

    }
  };
}
项目:aliyun-oss-hadoop-fs    文件:AllocateResponsePBImpl.java   
private synchronized void initLocalFinishedContainerList() {
  if (this.completedContainersStatuses != null) {
    return;
  }
  AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getCompletedContainerStatusesList();
  completedContainersStatuses = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    completedContainersStatuses.add(convertFromProtoFormat(c));
  }
}
项目:aliyun-oss-hadoop-fs    文件:NodeStatusPBImpl.java   
private synchronized void addContainersToProto() {
  maybeInitBuilder();
  builder.clearContainersStatuses();
  if (containers == null)
    return;
  Iterable<ContainerStatusProto> iterable = new Iterable<ContainerStatusProto>() {
    @Override
    public Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

        Iterator<ContainerStatus> iter = containers.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllContainersStatuses(iterable);
}
项目:aliyun-oss-hadoop-fs    文件:NodeStatusPBImpl.java   
private synchronized void initContainers() {
  if (this.containers != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getContainersStatusesList();
  this.containers = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    this.containers.add(convertFromProtoFormat(c));
  }

}
项目:big-c    文件:GetContainerStatusesResponsePBImpl.java   
private void addLocalContainerStatusesToProto() {
  maybeInitBuilder();
  builder.clearStatus();
  if (this.containerStatuses == null)
    return;
  List<ContainerStatusProto> protoList =
      new ArrayList<ContainerStatusProto>();
  for (ContainerStatus status : containerStatuses) {
    protoList.add(convertToProtoFormat(status));
  }
  builder.addAllStatus(protoList);
}
项目:big-c    文件:GetContainerStatusesResponsePBImpl.java   
private void initLocalContainerStatuses() {
  if (this.containerStatuses != null) {
    return;
  }
  GetContainerStatusesResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> statuses = p.getStatusList();
  this.containerStatuses = new ArrayList<ContainerStatus>();
  for (ContainerStatusProto status : statuses) {
    this.containerStatuses.add(convertFromProtoFormat(status));
  }
}
项目:big-c    文件:AllocateResponsePBImpl.java   
private synchronized Iterable<ContainerStatusProto>
getContainerStatusProtoIterable(
    final List<ContainerStatus> newContainersList) {
  maybeInitBuilder();
  return new Iterable<ContainerStatusProto>() {
    @Override
    public synchronized Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

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

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

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

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

        }
      };

    }
  };
}
项目:big-c    文件:AllocateResponsePBImpl.java   
private synchronized void initLocalFinishedContainerList() {
  if (this.completedContainersStatuses != null) {
    return;
  }
  AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getCompletedContainerStatusesList();
  completedContainersStatuses = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    completedContainersStatuses.add(convertFromProtoFormat(c));
  }
}
项目:big-c    文件:NodeStatusPBImpl.java   
private synchronized void addContainersToProto() {
  maybeInitBuilder();
  builder.clearContainersStatuses();
  if (containers == null)
    return;
  Iterable<ContainerStatusProto> iterable = new Iterable<ContainerStatusProto>() {
    @Override
    public Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

        Iterator<ContainerStatus> iter = containers.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllContainersStatuses(iterable);
}
项目:big-c    文件:NodeStatusPBImpl.java   
private synchronized void initContainers() {
  if (this.containers != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getContainersStatusesList();
  this.containers = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    this.containers.add(convertFromProtoFormat(c));
  }

}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetContainerStatusesResponsePBImpl.java   
private void addLocalContainerStatusesToProto() {
  maybeInitBuilder();
  builder.clearStatus();
  if (this.containerStatuses == null)
    return;
  List<ContainerStatusProto> protoList =
      new ArrayList<ContainerStatusProto>();
  for (ContainerStatus status : containerStatuses) {
    protoList.add(convertToProtoFormat(status));
  }
  builder.addAllStatus(protoList);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetContainerStatusesResponsePBImpl.java   
private void initLocalContainerStatuses() {
  if (this.containerStatuses != null) {
    return;
  }
  GetContainerStatusesResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> statuses = p.getStatusList();
  this.containerStatuses = new ArrayList<ContainerStatus>();
  for (ContainerStatusProto status : statuses) {
    this.containerStatuses.add(convertFromProtoFormat(status));
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:AllocateResponsePBImpl.java   
private synchronized Iterable<ContainerStatusProto>
getContainerStatusProtoIterable(
    final List<ContainerStatus> newContainersList) {
  maybeInitBuilder();
  return new Iterable<ContainerStatusProto>() {
    @Override
    public synchronized Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

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

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

        @Override
        public synchronized ContainerStatusProto 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 initLocalFinishedContainerList() {
  if (this.completedContainersStatuses != null) {
    return;
  }
  AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getCompletedContainerStatusesList();
  completedContainersStatuses = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    completedContainersStatuses.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:NodeStatusPBImpl.java   
private synchronized void addContainersToProto() {
  maybeInitBuilder();
  builder.clearContainersStatuses();
  if (containers == null)
    return;
  Iterable<ContainerStatusProto> iterable = new Iterable<ContainerStatusProto>() {
    @Override
    public Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

        Iterator<ContainerStatus> iter = containers.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllContainersStatuses(iterable);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:NodeStatusPBImpl.java   
private synchronized void initContainers() {
  if (this.containers != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getContainersStatusesList();
  this.containers = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    this.containers.add(convertFromProtoFormat(c));
  }

}
项目:hadoop-plus    文件:GetContainerStatusesResponsePBImpl.java   
private void addLocalContainerStatusesToProto() {
  maybeInitBuilder();
  builder.clearStatus();
  if (this.containerStatuses == null)
    return;
  List<ContainerStatusProto> protoList =
      new ArrayList<ContainerStatusProto>();
  for (ContainerStatus status : containerStatuses) {
    protoList.add(convertToProtoFormat(status));
  }
  builder.addAllStatus(protoList);
}
项目:hadoop-plus    文件:GetContainerStatusesResponsePBImpl.java   
private void initLocalContainerStatuses() {
  if (this.containerStatuses != null) {
    return;
  }
  GetContainerStatusesResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> statuses = p.getStatusList();
  this.containerStatuses = new ArrayList<ContainerStatus>();
  for (ContainerStatusProto status : statuses) {
    this.containerStatuses.add(convertFromProtoFormat(status));
  }
}
项目:hadoop-plus    文件:AllocateResponsePBImpl.java   
private synchronized Iterable<ContainerStatusProto>
getContainerStatusProtoIterable(
    final List<ContainerStatus> newContainersList) {
  maybeInitBuilder();
  return new Iterable<ContainerStatusProto>() {
    @Override
    public synchronized Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

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

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

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

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

        }
      };

    }
  };
}
项目:hadoop-plus    文件:AllocateResponsePBImpl.java   
private synchronized void initLocalFinishedContainerList() {
  if (this.completedContainersStatuses != null) {
    return;
  }
  AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getCompletedContainerStatusesList();
  completedContainersStatuses = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    completedContainersStatuses.add(convertFromProtoFormat(c));
  }
}
项目:hadoop-plus    文件:NodeStatusPBImpl.java   
private synchronized void addContainersToProto() {
  maybeInitBuilder();
  builder.clearContainersStatuses();
  if (containers == null)
    return;
  Iterable<ContainerStatusProto> iterable = new Iterable<ContainerStatusProto>() {
    @Override
    public Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

        Iterator<ContainerStatus> iter = containers.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllContainersStatuses(iterable);
}
项目:hadoop-plus    文件:NodeStatusPBImpl.java   
private synchronized void initContainers() {
  if (this.containers != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getContainersStatusesList();
  this.containers = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    this.containers.add(convertFromProtoFormat(c));
  }

}
项目:hops    文件:GetContainerStatusesResponsePBImpl.java   
private void addLocalContainerStatusesToProto() {
  maybeInitBuilder();
  builder.clearStatus();
  if (this.containerStatuses == null)
    return;
  List<ContainerStatusProto> protoList =
      new ArrayList<ContainerStatusProto>();
  for (ContainerStatus status : containerStatuses) {
    protoList.add(convertToProtoFormat(status));
  }
  builder.addAllStatus(protoList);
}
项目:hops    文件:GetContainerStatusesResponsePBImpl.java   
private void initLocalContainerStatuses() {
  if (this.containerStatuses != null) {
    return;
  }
  GetContainerStatusesResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> statuses = p.getStatusList();
  this.containerStatuses = new ArrayList<ContainerStatus>();
  for (ContainerStatusProto status : statuses) {
    this.containerStatuses.add(convertFromProtoFormat(status));
  }
}
项目:hops    文件:AllocateResponsePBImpl.java   
private synchronized Iterable<ContainerStatusProto>
getContainerStatusProtoIterable(
    final List<ContainerStatus> newContainersList) {
  maybeInitBuilder();
  return new Iterable<ContainerStatusProto>() {
    @Override
    public synchronized Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

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

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

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

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

        }
      };

    }
  };
}
项目:hops    文件:AllocateResponsePBImpl.java   
private synchronized void initLocalFinishedContainerList() {
  if (this.completedContainersStatuses != null) {
    return;
  }
  AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getCompletedContainerStatusesList();
  completedContainersStatuses = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    completedContainersStatuses.add(convertFromProtoFormat(c));
  }
}
项目:hops    文件:NodeStatusPBImpl.java   
private synchronized void addContainersToProto() {
  maybeInitBuilder();
  builder.clearContainersStatuses();
  if (containers == null)
    return;
  Iterable<ContainerStatusProto> iterable = new Iterable<ContainerStatusProto>() {
    @Override
    public Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

        Iterator<ContainerStatus> iter = containers.iterator();

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

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

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

        }
      };

    }
  };
  builder.addAllContainersStatuses(iterable);
}
项目:hops    文件:NodeStatusPBImpl.java   
private synchronized void initContainers() {
  if (this.containers != null) {
    return;
  }
  NodeStatusProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getContainersStatusesList();
  this.containers = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    this.containers.add(convertFromProtoFormat(c));
  }

}
项目:hadoop-TCP    文件:GetContainerStatusesResponsePBImpl.java   
private void addLocalContainerStatusesToProto() {
  maybeInitBuilder();
  builder.clearStatus();
  if (this.containerStatuses == null)
    return;
  List<ContainerStatusProto> protoList =
      new ArrayList<ContainerStatusProto>();
  for (ContainerStatus status : containerStatuses) {
    protoList.add(convertToProtoFormat(status));
  }
  builder.addAllStatus(protoList);
}
项目:hadoop-TCP    文件:GetContainerStatusesResponsePBImpl.java   
private void initLocalContainerStatuses() {
  if (this.containerStatuses != null) {
    return;
  }
  GetContainerStatusesResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> statuses = p.getStatusList();
  this.containerStatuses = new ArrayList<ContainerStatus>();
  for (ContainerStatusProto status : statuses) {
    this.containerStatuses.add(convertFromProtoFormat(status));
  }
}
项目:hadoop-TCP    文件:AllocateResponsePBImpl.java   
private synchronized Iterable<ContainerStatusProto>
getContainerStatusProtoIterable(
    final List<ContainerStatus> newContainersList) {
  maybeInitBuilder();
  return new Iterable<ContainerStatusProto>() {
    @Override
    public synchronized Iterator<ContainerStatusProto> iterator() {
      return new Iterator<ContainerStatusProto>() {

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

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

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

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

        }
      };

    }
  };
}
项目:hadoop-TCP    文件:AllocateResponsePBImpl.java   
private synchronized void initLocalFinishedContainerList() {
  if (this.completedContainersStatuses != null) {
    return;
  }
  AllocateResponseProtoOrBuilder p = viaProto ? proto : builder;
  List<ContainerStatusProto> list = p.getCompletedContainerStatusesList();
  completedContainersStatuses = new ArrayList<ContainerStatus>();

  for (ContainerStatusProto c : list) {
    completedContainersStatuses.add(convertFromProtoFormat(c));
  }
}