Java 类org.apache.hadoop.hdfs.protocol.proto.HdfsProtos.CheckpointCommandProto 实例源码

项目:hadoop    文件:PBHelper.java   
public static NamenodeCommand convert(NamenodeCommandProto cmd) {
  if (cmd == null) return null;
  switch (cmd.getType()) {
  case CheckPointCommand:
    CheckpointCommandProto chkPt = cmd.getCheckpointCmd();
    return new CheckpointCommand(PBHelper.convert(chkPt.getSignature()),
        chkPt.getNeedToReturnImage());
  default:
    return new NamenodeCommand(cmd.getAction());
  }
}
项目:big-c    文件:PBHelper.java   
public static NamenodeCommand convert(NamenodeCommandProto cmd) {
  if (cmd == null) return null;
  switch (cmd.getType()) {
  case CheckPointCommand:
    CheckpointCommandProto chkPt = cmd.getCheckpointCmd();
    return new CheckpointCommand(PBHelper.convert(chkPt.getSignature()),
        chkPt.getNeedToReturnImage());
  default:
    return new NamenodeCommand(cmd.getAction());
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static NamenodeCommand convert(NamenodeCommandProto cmd) {
  if (cmd == null) return null;
  switch (cmd.getType()) {
  case CheckPointCommand:
    CheckpointCommandProto chkPt = cmd.getCheckpointCmd();
    return new CheckpointCommand(PBHelper.convert(chkPt.getSignature()),
        chkPt.getNeedToReturnImage());
  default:
    return new NamenodeCommand(cmd.getAction());
  }
}
项目:hadoop-plus    文件:PBHelper.java   
public static NamenodeCommand convert(NamenodeCommandProto cmd) {
  if (cmd == null) return null;
  switch (cmd.getType()) {
  case CheckPointCommand:
    CheckpointCommandProto chkPt = cmd.getCheckpointCmd();
    return new CheckpointCommand(PBHelper.convert(chkPt.getSignature()),
        chkPt.getNeedToReturnImage());
  default:
    return new NamenodeCommand(cmd.getAction());
  }
}
项目:FlexMap    文件:PBHelper.java   
public static NamenodeCommand convert(NamenodeCommandProto cmd) {
  if (cmd == null) return null;
  switch (cmd.getType()) {
  case CheckPointCommand:
    CheckpointCommandProto chkPt = cmd.getCheckpointCmd();
    return new CheckpointCommand(PBHelper.convert(chkPt.getSignature()),
        chkPt.getNeedToReturnImage());
  default:
    return new NamenodeCommand(cmd.getAction());
  }
}
项目:hadoop-TCP    文件:PBHelper.java   
public static NamenodeCommand convert(NamenodeCommandProto cmd) {
  if (cmd == null) return null;
  switch (cmd.getType()) {
  case CheckPointCommand:
    CheckpointCommandProto chkPt = cmd.getCheckpointCmd();
    return new CheckpointCommand(PBHelper.convert(chkPt.getSignature()),
        chkPt.getNeedToReturnImage());
  default:
    return new NamenodeCommand(cmd.getAction());
  }
}
项目:hardfs    文件:PBHelper.java   
public static NamenodeCommand convert(NamenodeCommandProto cmd) {
  if (cmd == null) return null;
  switch (cmd.getType()) {
  case CheckPointCommand:
    CheckpointCommandProto chkPt = cmd.getCheckpointCmd();
    return new CheckpointCommand(PBHelper.convert(chkPt.getSignature()),
        chkPt.getNeedToReturnImage());
  default:
    return new NamenodeCommand(cmd.getAction());
  }
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static NamenodeCommand convert(NamenodeCommandProto cmd) {
  if (cmd == null) return null;
  switch (cmd.getType()) {
  case CheckPointCommand:
    CheckpointCommandProto chkPt = cmd.getCheckpointCmd();
    return new CheckpointCommand(PBHelper.convert(chkPt.getSignature()),
        chkPt.getNeedToReturnImage());
  default:
    return new NamenodeCommand(cmd.getAction());
  }
}
项目:hadoop    文件:PBHelper.java   
public static CheckpointCommandProto convert(CheckpointCommand cmd) {
  return CheckpointCommandProto.newBuilder()
      .setSignature(convert(cmd.getSignature()))
      .setNeedToReturnImage(cmd.needToReturnImage()).build();
}
项目:big-c    文件:PBHelper.java   
public static CheckpointCommandProto convert(CheckpointCommand cmd) {
  return CheckpointCommandProto.newBuilder()
      .setSignature(convert(cmd.getSignature()))
      .setNeedToReturnImage(cmd.needToReturnImage()).build();
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static CheckpointCommandProto convert(CheckpointCommand cmd) {
  return CheckpointCommandProto.newBuilder()
      .setSignature(convert(cmd.getSignature()))
      .setNeedToReturnImage(cmd.needToReturnImage()).build();
}
项目:hadoop-plus    文件:PBHelper.java   
public static CheckpointCommandProto convert(CheckpointCommand cmd) {
  return CheckpointCommandProto.newBuilder()
      .setSignature(convert(cmd.getSignature()))
      .setNeedToReturnImage(cmd.needToReturnImage()).build();
}
项目:FlexMap    文件:PBHelper.java   
public static CheckpointCommandProto convert(CheckpointCommand cmd) {
  return CheckpointCommandProto.newBuilder()
      .setSignature(convert(cmd.getSignature()))
      .setNeedToReturnImage(cmd.needToReturnImage()).build();
}
项目:hadoop-TCP    文件:PBHelper.java   
public static CheckpointCommandProto convert(CheckpointCommand cmd) {
  return CheckpointCommandProto.newBuilder()
      .setSignature(convert(cmd.getSignature()))
      .setNeedToReturnImage(cmd.needToReturnImage()).build();
}
项目:hardfs    文件:PBHelper.java   
public static CheckpointCommandProto convert(CheckpointCommand cmd) {
  return CheckpointCommandProto.newBuilder()
      .setSignature(convert(cmd.getSignature()))
      .setNeedToReturnImage(cmd.needToReturnImage()).build();
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static CheckpointCommandProto convert(CheckpointCommand cmd) {
  return CheckpointCommandProto.newBuilder()
      .setSignature(convert(cmd.getSignature()))
      .setNeedToReturnImage(cmd.needToReturnImage()).build();
}