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

项目:hadoop    文件:GetClusterNodesRequestPBImpl.java   
private void mergeLocalToBuilder() {
  if (this.states != null) {
    maybeInitBuilder();
    builder.clearNodeStates();
    Iterable<NodeStateProto> iterable = new Iterable<NodeStateProto>() {
      @Override
      public Iterator<NodeStateProto> iterator() {
        return new Iterator<NodeStateProto>() {

          Iterator<NodeState> iter = states.iterator();

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

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

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

          }
        };

      }
    };
    builder.addAllNodeStates(iterable);
  }
}
项目:hadoop    文件:GetClusterNodesRequestPBImpl.java   
private void initNodeStates() {
  if (this.states != null) {
    return;
  }
  GetClusterNodesRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<NodeStateProto> list = p.getNodeStatesList();
  this.states = EnumSet.noneOf(NodeState.class);

  for (NodeStateProto c : list) {
    this.states.add(ProtoUtils.convertFromProtoFormat(c));
  }
}
项目:aliyun-oss-hadoop-fs    文件:GetClusterNodesRequestPBImpl.java   
private void mergeLocalToBuilder() {
  if (this.states != null) {
    maybeInitBuilder();
    builder.clearNodeStates();
    Iterable<NodeStateProto> iterable = new Iterable<NodeStateProto>() {
      @Override
      public Iterator<NodeStateProto> iterator() {
        return new Iterator<NodeStateProto>() {

          Iterator<NodeState> iter = states.iterator();

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

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

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

          }
        };

      }
    };
    builder.addAllNodeStates(iterable);
  }
}
项目:aliyun-oss-hadoop-fs    文件:GetClusterNodesRequestPBImpl.java   
private void initNodeStates() {
  if (this.states != null) {
    return;
  }
  GetClusterNodesRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<NodeStateProto> list = p.getNodeStatesList();
  this.states = EnumSet.noneOf(NodeState.class);

  for (NodeStateProto c : list) {
    this.states.add(ProtoUtils.convertFromProtoFormat(c));
  }
}
项目:big-c    文件:GetClusterNodesRequestPBImpl.java   
private void mergeLocalToBuilder() {
  if (this.states != null) {
    maybeInitBuilder();
    builder.clearNodeStates();
    Iterable<NodeStateProto> iterable = new Iterable<NodeStateProto>() {
      @Override
      public Iterator<NodeStateProto> iterator() {
        return new Iterator<NodeStateProto>() {

          Iterator<NodeState> iter = states.iterator();

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

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

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

          }
        };

      }
    };
    builder.addAllNodeStates(iterable);
  }
}
项目:big-c    文件:GetClusterNodesRequestPBImpl.java   
private void initNodeStates() {
  if (this.states != null) {
    return;
  }
  GetClusterNodesRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<NodeStateProto> list = p.getNodeStatesList();
  this.states = EnumSet.noneOf(NodeState.class);

  for (NodeStateProto c : list) {
    this.states.add(ProtoUtils.convertFromProtoFormat(c));
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetClusterNodesRequestPBImpl.java   
private void mergeLocalToBuilder() {
  if (this.states != null) {
    maybeInitBuilder();
    builder.clearNodeStates();
    Iterable<NodeStateProto> iterable = new Iterable<NodeStateProto>() {
      @Override
      public Iterator<NodeStateProto> iterator() {
        return new Iterator<NodeStateProto>() {

          Iterator<NodeState> iter = states.iterator();

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

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

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

          }
        };

      }
    };
    builder.addAllNodeStates(iterable);
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:GetClusterNodesRequestPBImpl.java   
private void initNodeStates() {
  if (this.states != null) {
    return;
  }
  GetClusterNodesRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<NodeStateProto> list = p.getNodeStatesList();
  this.states = EnumSet.noneOf(NodeState.class);

  for (NodeStateProto c : list) {
    this.states.add(ProtoUtils.convertFromProtoFormat(c));
  }
}
项目:hadoop-plus    文件:GetClusterNodesRequestPBImpl.java   
private void mergeLocalToBuilder() {
  if (this.states != null) {
    maybeInitBuilder();
    builder.clearNodeStates();
    Iterable<NodeStateProto> iterable = new Iterable<NodeStateProto>() {
      @Override
      public Iterator<NodeStateProto> iterator() {
        return new Iterator<NodeStateProto>() {

          Iterator<NodeState> iter = states.iterator();

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

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

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

          }
        };

      }
    };
    builder.addAllNodeStates(iterable);
  }
}
项目:hadoop-plus    文件:GetClusterNodesRequestPBImpl.java   
private void initNodeStates() {
  if (this.states != null) {
    return;
  }
  GetClusterNodesRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<NodeStateProto> list = p.getNodeStatesList();
  this.states = EnumSet.noneOf(NodeState.class);

  for (NodeStateProto c : list) {
    this.states.add(ProtoUtils.convertFromProtoFormat(c));
  }
}
项目:hops    文件:GetClusterNodesRequestPBImpl.java   
private void mergeLocalToBuilder() {
  if (this.states != null) {
    maybeInitBuilder();
    builder.clearNodeStates();
    Iterable<NodeStateProto> iterable = new Iterable<NodeStateProto>() {
      @Override
      public Iterator<NodeStateProto> iterator() {
        return new Iterator<NodeStateProto>() {

          Iterator<NodeState> iter = states.iterator();

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

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

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

          }
        };

      }
    };
    builder.addAllNodeStates(iterable);
  }
}
项目:hops    文件:GetClusterNodesRequestPBImpl.java   
private void initNodeStates() {
  if (this.states != null) {
    return;
  }
  GetClusterNodesRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<NodeStateProto> list = p.getNodeStatesList();
  this.states = EnumSet.noneOf(NodeState.class);

  for (NodeStateProto c : list) {
    this.states.add(ProtoUtils.convertFromProtoFormat(c));
  }
}
项目:hadoop-TCP    文件:GetClusterNodesRequestPBImpl.java   
private void mergeLocalToBuilder() {
  if (this.states != null) {
    maybeInitBuilder();
    builder.clearNodeStates();
    Iterable<NodeStateProto> iterable = new Iterable<NodeStateProto>() {
      @Override
      public Iterator<NodeStateProto> iterator() {
        return new Iterator<NodeStateProto>() {

          Iterator<NodeState> iter = states.iterator();

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

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

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

          }
        };

      }
    };
    builder.addAllNodeStates(iterable);
  }
}
项目:hadoop-TCP    文件:GetClusterNodesRequestPBImpl.java   
private void initNodeStates() {
  if (this.states != null) {
    return;
  }
  GetClusterNodesRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<NodeStateProto> list = p.getNodeStatesList();
  this.states = EnumSet.noneOf(NodeState.class);

  for (NodeStateProto c : list) {
    this.states.add(ProtoUtils.convertFromProtoFormat(c));
  }
}
项目:hardfs    文件:GetClusterNodesRequestPBImpl.java   
private void mergeLocalToBuilder() {
  if (this.states != null) {
    maybeInitBuilder();
    builder.clearNodeStates();
    Iterable<NodeStateProto> iterable = new Iterable<NodeStateProto>() {
      @Override
      public Iterator<NodeStateProto> iterator() {
        return new Iterator<NodeStateProto>() {

          Iterator<NodeState> iter = states.iterator();

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

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

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

          }
        };

      }
    };
    builder.addAllNodeStates(iterable);
  }
}
项目:hardfs    文件:GetClusterNodesRequestPBImpl.java   
private void initNodeStates() {
  if (this.states != null) {
    return;
  }
  GetClusterNodesRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<NodeStateProto> list = p.getNodeStatesList();
  this.states = EnumSet.noneOf(NodeState.class);

  for (NodeStateProto c : list) {
    this.states.add(ProtoUtils.convertFromProtoFormat(c));
  }
}
项目:hadoop-on-lustre2    文件:GetClusterNodesRequestPBImpl.java   
private void mergeLocalToBuilder() {
  if (this.states != null) {
    maybeInitBuilder();
    builder.clearNodeStates();
    Iterable<NodeStateProto> iterable = new Iterable<NodeStateProto>() {
      @Override
      public Iterator<NodeStateProto> iterator() {
        return new Iterator<NodeStateProto>() {

          Iterator<NodeState> iter = states.iterator();

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

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

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

          }
        };

      }
    };
    builder.addAllNodeStates(iterable);
  }
}
项目:hadoop-on-lustre2    文件:GetClusterNodesRequestPBImpl.java   
private void initNodeStates() {
  if (this.states != null) {
    return;
  }
  GetClusterNodesRequestProtoOrBuilder p = viaProto ? proto : builder;
  List<NodeStateProto> list = p.getNodeStatesList();
  this.states = EnumSet.noneOf(NodeState.class);

  for (NodeStateProto c : list) {
    this.states.add(ProtoUtils.convertFromProtoFormat(c));
  }
}
项目:hadoop    文件:ProtoUtils.java   
public static NodeStateProto convertToProtoFormat(NodeState e) {
  return NodeStateProto.valueOf(NODE_STATE_PREFIX + e.name());
}
项目:hadoop    文件:ProtoUtils.java   
public static NodeState convertFromProtoFormat(NodeStateProto e) {
  return NodeState.valueOf(e.name().replace(NODE_STATE_PREFIX, ""));
}
项目:aliyun-oss-hadoop-fs    文件:ProtoUtils.java   
public static NodeStateProto convertToProtoFormat(NodeState e) {
  return NodeStateProto.valueOf(NODE_STATE_PREFIX + e.name());
}
项目:aliyun-oss-hadoop-fs    文件:ProtoUtils.java   
public static NodeState convertFromProtoFormat(NodeStateProto e) {
  return NodeState.valueOf(e.name().replace(NODE_STATE_PREFIX, ""));
}
项目:big-c    文件:ProtoUtils.java   
public static NodeStateProto convertToProtoFormat(NodeState e) {
  return NodeStateProto.valueOf(NODE_STATE_PREFIX + e.name());
}
项目:big-c    文件:ProtoUtils.java   
public static NodeState convertFromProtoFormat(NodeStateProto e) {
  return NodeState.valueOf(e.name().replace(NODE_STATE_PREFIX, ""));
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ProtoUtils.java   
public static NodeStateProto convertToProtoFormat(NodeState e) {
  return NodeStateProto.valueOf(NODE_STATE_PREFIX + e.name());
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ProtoUtils.java   
public static NodeState convertFromProtoFormat(NodeStateProto e) {
  return NodeState.valueOf(e.name().replace(NODE_STATE_PREFIX, ""));
}
项目:hadoop-plus    文件:ProtoUtils.java   
public static NodeStateProto convertToProtoFormat(NodeState e) {
  return NodeStateProto.valueOf(NODE_STATE_PREFIX + e.name());
}
项目:hadoop-plus    文件:ProtoUtils.java   
public static NodeState convertFromProtoFormat(NodeStateProto e) {
  return NodeState.valueOf(e.name().replace(NODE_STATE_PREFIX, ""));
}
项目:hops    文件:ProtoUtils.java   
public static NodeStateProto convertToProtoFormat(NodeState e) {
  return NodeStateProto.valueOf(NODE_STATE_PREFIX + e.name());
}
项目:hops    文件:ProtoUtils.java   
public static NodeState convertFromProtoFormat(NodeStateProto e) {
  return NodeState.valueOf(e.name().replace(NODE_STATE_PREFIX, ""));
}
项目:hadoop-TCP    文件:ProtoUtils.java   
public static NodeStateProto convertToProtoFormat(NodeState e) {
  return NodeStateProto.valueOf(NODE_STATE_PREFIX + e.name());
}
项目:hadoop-TCP    文件:ProtoUtils.java   
public static NodeState convertFromProtoFormat(NodeStateProto e) {
  return NodeState.valueOf(e.name().replace(NODE_STATE_PREFIX, ""));
}
项目:hardfs    文件:ProtoUtils.java   
public static NodeStateProto convertToProtoFormat(NodeState e) {
  return NodeStateProto.valueOf(NODE_STATE_PREFIX + e.name());
}
项目:hardfs    文件:ProtoUtils.java   
public static NodeState convertFromProtoFormat(NodeStateProto e) {
  return NodeState.valueOf(e.name().replace(NODE_STATE_PREFIX, ""));
}
项目:hadoop-on-lustre2    文件:ProtoUtils.java   
public static NodeStateProto convertToProtoFormat(NodeState e) {
  return NodeStateProto.valueOf(NODE_STATE_PREFIX + e.name());
}
项目:hadoop-on-lustre2    文件:ProtoUtils.java   
public static NodeState convertFromProtoFormat(NodeStateProto e) {
  return NodeState.valueOf(e.name().replace(NODE_STATE_PREFIX, ""));
}