Java 类org.apache.hadoop.hdfs.protocol.DatanodeLocalInfo 实例源码

项目:hadoop    文件:PBHelper.java   
public static DatanodeLocalInfoProto convert(DatanodeLocalInfo info) {
  DatanodeLocalInfoProto.Builder builder = DatanodeLocalInfoProto.newBuilder();
  builder.setSoftwareVersion(info.getSoftwareVersion());
  builder.setConfigVersion(info.getConfigVersion());
  builder.setUptime(info.getUptime());
  return builder.build();
}
项目:hadoop    文件:ClientDatanodeProtocolTranslatorPB.java   
@Override
public DatanodeLocalInfo getDatanodeInfo() throws IOException {
  GetDatanodeInfoResponseProto response;
  try {
    response = rpcProxy.getDatanodeInfo(NULL_CONTROLLER, VOID_GET_DATANODE_INFO);
    return PBHelper.convert(response.getLocalInfo());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:hadoop    文件:DFSAdmin.java   
private int getDatanodeInfo(String[] argv, int i) throws IOException {
  ClientDatanodeProtocol dnProxy = getDataNodeProxy(argv[i]);
  try {
    DatanodeLocalInfo dnInfo = dnProxy.getDatanodeInfo();
    System.out.println(dnInfo.getDatanodeLocalReport());
  } catch (IOException ioe) {
    System.err.println("Datanode unreachable.");
    return -1;
  }
  return 0;
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static DatanodeLocalInfoProto convert(DatanodeLocalInfo info) {
  DatanodeLocalInfoProto.Builder builder =
      DatanodeLocalInfoProto.newBuilder();
  builder.setSoftwareVersion(info.getSoftwareVersion());
  builder.setConfigVersion(info.getConfigVersion());
  builder.setUptime(info.getUptime());
  return builder.build();
}
项目:aliyun-oss-hadoop-fs    文件:ClientDatanodeProtocolTranslatorPB.java   
@Override
public DatanodeLocalInfo getDatanodeInfo() throws IOException {
  GetDatanodeInfoResponseProto response;
  try {
    response = rpcProxy.getDatanodeInfo(NULL_CONTROLLER,
        VOID_GET_DATANODE_INFO);
    return PBHelperClient.convert(response.getLocalInfo());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:aliyun-oss-hadoop-fs    文件:DFSAdmin.java   
private int getDatanodeInfo(String[] argv, int i) throws IOException {
  ClientDatanodeProtocol dnProxy = getDataNodeProxy(argv[i]);
  try {
    DatanodeLocalInfo dnInfo = dnProxy.getDatanodeInfo();
    System.out.println(dnInfo.getDatanodeLocalReport());
  } catch (IOException ioe) {
    System.err.println("Datanode unreachable.");
    return -1;
  }
  return 0;
}
项目:big-c    文件:PBHelper.java   
public static DatanodeLocalInfoProto convert(DatanodeLocalInfo info) {
  DatanodeLocalInfoProto.Builder builder = DatanodeLocalInfoProto.newBuilder();
  builder.setSoftwareVersion(info.getSoftwareVersion());
  builder.setConfigVersion(info.getConfigVersion());
  builder.setUptime(info.getUptime());
  return builder.build();
}
项目:big-c    文件:ClientDatanodeProtocolTranslatorPB.java   
@Override
public DatanodeLocalInfo getDatanodeInfo() throws IOException {
  GetDatanodeInfoResponseProto response;
  try {
    response = rpcProxy.getDatanodeInfo(NULL_CONTROLLER, VOID_GET_DATANODE_INFO);
    return PBHelper.convert(response.getLocalInfo());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:big-c    文件:DFSAdmin.java   
private int getDatanodeInfo(String[] argv, int i) throws IOException {
  ClientDatanodeProtocol dnProxy = getDataNodeProxy(argv[i]);
  try {
    DatanodeLocalInfo dnInfo = dnProxy.getDatanodeInfo();
    System.out.println(dnInfo.getDatanodeLocalReport());
  } catch (IOException ioe) {
    System.err.println("Datanode unreachable.");
    return -1;
  }
  return 0;
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static DatanodeLocalInfoProto convert(DatanodeLocalInfo info) {
  DatanodeLocalInfoProto.Builder builder = DatanodeLocalInfoProto.newBuilder();
  builder.setSoftwareVersion(info.getSoftwareVersion());
  builder.setConfigVersion(info.getConfigVersion());
  builder.setUptime(info.getUptime());
  return builder.build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:ClientDatanodeProtocolTranslatorPB.java   
@Override
public DatanodeLocalInfo getDatanodeInfo() throws IOException {
  GetDatanodeInfoResponseProto response;
  try {
    response = rpcProxy.getDatanodeInfo(NULL_CONTROLLER, VOID_GET_DATANODE_INFO);
    return PBHelper.convert(response.getLocalInfo());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:DFSAdmin.java   
private int getDatanodeInfo(String[] argv, int i) throws IOException {
  ClientDatanodeProtocol dnProxy = getDataNodeProxy(argv[i]);
  try {
    DatanodeLocalInfo dnInfo = dnProxy.getDatanodeInfo();
    System.out.println(dnInfo.getDatanodeLocalReport());
  } catch (IOException ioe) {
    System.err.println("Datanode unreachable.");
    return -1;
  }
  return 0;
}
项目:FlexMap    文件:PBHelper.java   
public static DatanodeLocalInfoProto convert(DatanodeLocalInfo info) {
  DatanodeLocalInfoProto.Builder builder = DatanodeLocalInfoProto.newBuilder();
  builder.setSoftwareVersion(info.getSoftwareVersion());
  builder.setConfigVersion(info.getConfigVersion());
  builder.setUptime(info.getUptime());
  return builder.build();
}
项目:FlexMap    文件:ClientDatanodeProtocolTranslatorPB.java   
@Override
public DatanodeLocalInfo getDatanodeInfo() throws IOException {
  GetDatanodeInfoResponseProto response;
  try {
    response = rpcProxy.getDatanodeInfo(NULL_CONTROLLER, VOID_GET_DATANODE_INFO);
    return PBHelper.convert(response.getLocalInfo());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:FlexMap    文件:DFSAdmin.java   
private int getDatanodeInfo(String[] argv, int i) throws IOException {
  ClientDatanodeProtocol dnProxy = getDataNodeProxy(argv[i]);
  try {
    DatanodeLocalInfo dnInfo = dnProxy.getDatanodeInfo();
    System.out.println(dnInfo.getDatanodeLocalReport());
  } catch (IOException ioe) {
    System.err.println("Datanode unreachable.");
    return -1;
  }
  return 0;
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static DatanodeLocalInfoProto convert(DatanodeLocalInfo info) {
  DatanodeLocalInfoProto.Builder builder = DatanodeLocalInfoProto.newBuilder();
  builder.setSoftwareVersion(info.getSoftwareVersion());
  builder.setConfigVersion(info.getConfigVersion());
  builder.setUptime(info.getUptime());
  return builder.build();
}
项目:hadoop-on-lustre2    文件:ClientDatanodeProtocolTranslatorPB.java   
@Override
public DatanodeLocalInfo getDatanodeInfo() throws IOException {
  GetDatanodeInfoResponseProto response;
  try {
    response = rpcProxy.getDatanodeInfo(NULL_CONTROLLER, VOID_GET_DATANODE_INFO);
    return PBHelper.convert(response.getLocalInfo());
  } catch (ServiceException e) {
    throw ProtobufHelper.getRemoteException(e);
  }
}
项目:hadoop-on-lustre2    文件:DFSAdmin.java   
private int getDatanodeInfo(String[] argv, int i) throws IOException {
  ClientDatanodeProtocol dnProxy = getDataNodeProxy(argv[i]);
  try {
    DatanodeLocalInfo dnInfo = dnProxy.getDatanodeInfo();
    System.out.println(dnInfo.getDatanodeLocalReport());
  } catch (IOException ioe) {
    System.err.println("Datanode unreachable.");
    return -1;
  }
  return 0;
}
项目:hadoop    文件:DataNode.java   
@Override //ClientDatanodeProtocol
public DatanodeLocalInfo getDatanodeInfo() {
  long uptime = ManagementFactory.getRuntimeMXBean().getUptime()/1000;
  return new DatanodeLocalInfo(VersionInfo.getVersion(),
      confVersion, uptime);
}
项目:hadoop    文件:PBHelper.java   
public static DatanodeLocalInfo convert(DatanodeLocalInfoProto proto) {
  return new DatanodeLocalInfo(proto.getSoftwareVersion(),
      proto.getConfigVersion(), proto.getUptime());
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static DatanodeLocalInfo convert(DatanodeLocalInfoProto proto) {
  return new DatanodeLocalInfo(proto.getSoftwareVersion(),
      proto.getConfigVersion(), proto.getUptime());
}
项目:aliyun-oss-hadoop-fs    文件:DataNode.java   
@Override //ClientDatanodeProtocol
public DatanodeLocalInfo getDatanodeInfo() {
  long uptime = ManagementFactory.getRuntimeMXBean().getUptime()/1000;
  return new DatanodeLocalInfo(VersionInfo.getVersion(),
      confVersion, uptime);
}
项目:big-c    文件:DataNode.java   
@Override //ClientDatanodeProtocol
public DatanodeLocalInfo getDatanodeInfo() {
  long uptime = ManagementFactory.getRuntimeMXBean().getUptime()/1000;
  return new DatanodeLocalInfo(VersionInfo.getVersion(),
      confVersion, uptime);
}
项目:big-c    文件:PBHelper.java   
public static DatanodeLocalInfo convert(DatanodeLocalInfoProto proto) {
  return new DatanodeLocalInfo(proto.getSoftwareVersion(),
      proto.getConfigVersion(), proto.getUptime());
}
项目:hadoop-2.6.0-cdh5.4.3    文件:DataNode.java   
@Override //ClientDatanodeProtocol
public DatanodeLocalInfo getDatanodeInfo() {
  long uptime = ManagementFactory.getRuntimeMXBean().getUptime()/1000;
  return new DatanodeLocalInfo(VersionInfo.getVersion(),
      confVersion, uptime);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static DatanodeLocalInfo convert(DatanodeLocalInfoProto proto) {
  return new DatanodeLocalInfo(proto.getSoftwareVersion(),
      proto.getConfigVersion(), proto.getUptime());
}
项目:FlexMap    文件:DataNode.java   
@Override //ClientDatanodeProtocol
public DatanodeLocalInfo getDatanodeInfo() {
  long uptime = ManagementFactory.getRuntimeMXBean().getUptime()/1000;
  return new DatanodeLocalInfo(VersionInfo.getVersion(),
      confVersion, uptime);
}
项目:FlexMap    文件:PBHelper.java   
public static DatanodeLocalInfo convert(DatanodeLocalInfoProto proto) {
  return new DatanodeLocalInfo(proto.getSoftwareVersion(),
      proto.getConfigVersion(), proto.getUptime());
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static DatanodeLocalInfo convert(DatanodeLocalInfoProto proto) {
  return new DatanodeLocalInfo(proto.getSoftwareVersion(),
      proto.getConfigVersion(), proto.getUptime());
}