Java 类org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.SafeModeActionProto 实例源码

项目:hadoop    文件:PBHelper.java   
public static SafeModeActionProto convert(
    SafeModeAction a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeActionProto.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeActionProto.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeActionProto.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hadoop    文件:PBHelper.java   
public static SafeModeAction convert(
    ClientNamenodeProtocolProtos.SafeModeActionProto a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeAction.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeAction.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeAction.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static SafeModeActionProto convert(SafeModeAction a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeActionProto.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeActionProto.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeActionProto.SAFEMODE_GET;
  case SAFEMODE_FORCE_EXIT:
    return  SafeModeActionProto.SAFEMODE_FORCE_EXIT;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static SafeModeAction convert(
    SafeModeActionProto a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeAction.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeAction.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeAction.SAFEMODE_GET;
  case SAFEMODE_FORCE_EXIT:
    return  SafeModeAction.SAFEMODE_FORCE_EXIT;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:big-c    文件:PBHelper.java   
public static SafeModeActionProto convert(
    SafeModeAction a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeActionProto.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeActionProto.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeActionProto.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:big-c    文件:PBHelper.java   
public static SafeModeAction convert(
    ClientNamenodeProtocolProtos.SafeModeActionProto a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeAction.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeAction.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeAction.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static SafeModeActionProto convert(
    SafeModeAction a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeActionProto.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeActionProto.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeActionProto.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static SafeModeAction convert(
    ClientNamenodeProtocolProtos.SafeModeActionProto a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeAction.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeAction.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeAction.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hadoop-plus    文件:PBHelper.java   
public static SafeModeActionProto convert(
    SafeModeAction a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeActionProto.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeActionProto.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeActionProto.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hadoop-plus    文件:PBHelper.java   
public static SafeModeAction convert(
    ClientNamenodeProtocolProtos.SafeModeActionProto a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeAction.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeAction.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeAction.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:FlexMap    文件:PBHelper.java   
public static SafeModeActionProto convert(
    SafeModeAction a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeActionProto.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeActionProto.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeActionProto.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:FlexMap    文件:PBHelper.java   
public static SafeModeAction convert(
    ClientNamenodeProtocolProtos.SafeModeActionProto a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeAction.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeAction.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeAction.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hops    文件:PBHelper.java   
public static SafeModeActionProto convert(SafeModeAction a) {
  switch (a) {
    case SAFEMODE_LEAVE:
      return SafeModeActionProto.SAFEMODE_LEAVE;
    case SAFEMODE_ENTER:
      return SafeModeActionProto.SAFEMODE_ENTER;
    case SAFEMODE_GET:
      return SafeModeActionProto.SAFEMODE_GET;
    default:
      throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hops    文件:PBHelper.java   
public static SafeModeAction convert(
    ClientNamenodeProtocolProtos.SafeModeActionProto a) {
  switch (a) {
    case SAFEMODE_LEAVE:
      return SafeModeAction.SAFEMODE_LEAVE;
    case SAFEMODE_ENTER:
      return SafeModeAction.SAFEMODE_ENTER;
    case SAFEMODE_GET:
      return SafeModeAction.SAFEMODE_GET;
    default:
      throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hadoop-TCP    文件:PBHelper.java   
public static SafeModeActionProto convert(
    SafeModeAction a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeActionProto.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeActionProto.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeActionProto.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hadoop-TCP    文件:PBHelper.java   
public static SafeModeAction convert(
    ClientNamenodeProtocolProtos.SafeModeActionProto a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeAction.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeAction.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeAction.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hardfs    文件:PBHelper.java   
public static SafeModeActionProto convert(
    SafeModeAction a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeActionProto.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeActionProto.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeActionProto.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hardfs    文件:PBHelper.java   
public static SafeModeAction convert(
    ClientNamenodeProtocolProtos.SafeModeActionProto a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeAction.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeAction.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeAction.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static SafeModeActionProto convert(
    SafeModeAction a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeActionProto.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeActionProto.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeActionProto.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static SafeModeAction convert(
    ClientNamenodeProtocolProtos.SafeModeActionProto a) {
  switch (a) {
  case SAFEMODE_LEAVE:
    return SafeModeAction.SAFEMODE_LEAVE;
  case SAFEMODE_ENTER:
    return SafeModeAction.SAFEMODE_ENTER;
  case SAFEMODE_GET:
    return SafeModeAction.SAFEMODE_GET;
  default:
    throw new IllegalArgumentException("Unexpected SafeModeAction :" + a);
  }
}