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

项目:hadoop    文件:PBHelper.java   
public static DatanodeInfoProto.AdminState convert(
    final DatanodeInfo.AdminStates inAs) {
  switch (inAs) {
  case NORMAL: return  DatanodeInfoProto.AdminState.NORMAL;
  case DECOMMISSION_INPROGRESS: 
      return DatanodeInfoProto.AdminState.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED: return DatanodeInfoProto.AdminState.DECOMMISSIONED;
  default: return DatanodeInfoProto.AdminState.NORMAL;
  }
}
项目:hadoop    文件:PBHelper.java   
public static AdminStates convert(AdminState adminState) {
  switch(adminState) {
  case DECOMMISSION_INPROGRESS:
    return AdminStates.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED:
    return AdminStates.DECOMMISSIONED;
  case NORMAL:
  default:
    return AdminStates.NORMAL;
  }
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static DatanodeInfoProto.AdminState convert(
    final DatanodeInfo.AdminStates inAs) {
  switch (inAs) {
  case NORMAL: return  DatanodeInfoProto.AdminState.NORMAL;
  case DECOMMISSION_INPROGRESS:
    return DatanodeInfoProto.AdminState.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED: return DatanodeInfoProto.AdminState.DECOMMISSIONED;
  default: return DatanodeInfoProto.AdminState.NORMAL;
  }
}
项目:aliyun-oss-hadoop-fs    文件:PBHelperClient.java   
public static AdminStates convert(AdminState adminState) {
  switch(adminState) {
  case DECOMMISSION_INPROGRESS:
    return AdminStates.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED:
    return AdminStates.DECOMMISSIONED;
  case NORMAL:
  default:
    return AdminStates.NORMAL;
  }
}
项目:big-c    文件:PBHelper.java   
public static DatanodeInfoProto.AdminState convert(
    final DatanodeInfo.AdminStates inAs) {
  switch (inAs) {
  case NORMAL: return  DatanodeInfoProto.AdminState.NORMAL;
  case DECOMMISSION_INPROGRESS: 
      return DatanodeInfoProto.AdminState.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED: return DatanodeInfoProto.AdminState.DECOMMISSIONED;
  default: return DatanodeInfoProto.AdminState.NORMAL;
  }
}
项目:big-c    文件:PBHelper.java   
public static AdminStates convert(AdminState adminState) {
  switch(adminState) {
  case DECOMMISSION_INPROGRESS:
    return AdminStates.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED:
    return AdminStates.DECOMMISSIONED;
  case NORMAL:
  default:
    return AdminStates.NORMAL;
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static DatanodeInfoProto.AdminState convert(
    final DatanodeInfo.AdminStates inAs) {
  switch (inAs) {
  case NORMAL: return  DatanodeInfoProto.AdminState.NORMAL;
  case DECOMMISSION_INPROGRESS: 
      return DatanodeInfoProto.AdminState.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED: return DatanodeInfoProto.AdminState.DECOMMISSIONED;
  default: return DatanodeInfoProto.AdminState.NORMAL;
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件:PBHelper.java   
public static AdminStates convert(AdminState adminState) {
  switch(adminState) {
  case DECOMMISSION_INPROGRESS:
    return AdminStates.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED:
    return AdminStates.DECOMMISSIONED;
  case NORMAL:
  default:
    return AdminStates.NORMAL;
  }
}
项目:hadoop-plus    文件:PBHelper.java   
public static DatanodeInfoProto.AdminState convert(
    final DatanodeInfo.AdminStates inAs) {
  switch (inAs) {
  case NORMAL: return  DatanodeInfoProto.AdminState.NORMAL;
  case DECOMMISSION_INPROGRESS: 
      return DatanodeInfoProto.AdminState.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED: return DatanodeInfoProto.AdminState.DECOMMISSIONED;
  default: return DatanodeInfoProto.AdminState.NORMAL;
  }
}
项目:hadoop-plus    文件:PBHelper.java   
public static AdminStates convert(AdminState adminState) {
  switch(adminState) {
  case DECOMMISSION_INPROGRESS:
    return AdminStates.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED:
    return AdminStates.DECOMMISSIONED;
  case NORMAL:
  default:
    return AdminStates.NORMAL;
  }
}
项目:FlexMap    文件:PBHelper.java   
public static DatanodeInfoProto.AdminState convert(
    final DatanodeInfo.AdminStates inAs) {
  switch (inAs) {
  case NORMAL: return  DatanodeInfoProto.AdminState.NORMAL;
  case DECOMMISSION_INPROGRESS: 
      return DatanodeInfoProto.AdminState.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED: return DatanodeInfoProto.AdminState.DECOMMISSIONED;
  default: return DatanodeInfoProto.AdminState.NORMAL;
  }
}
项目:FlexMap    文件:PBHelper.java   
public static AdminStates convert(AdminState adminState) {
  switch(adminState) {
  case DECOMMISSION_INPROGRESS:
    return AdminStates.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED:
    return AdminStates.DECOMMISSIONED;
  case NORMAL:
  default:
    return AdminStates.NORMAL;
  }
}
项目:hops    文件:PBHelper.java   
public static DatanodeInfoProto.AdminState convert(
    final DatanodeInfo.AdminStates inAs) {
  switch (inAs) {
    case NORMAL:
      return DatanodeInfoProto.AdminState.NORMAL;
    case DECOMMISSION_INPROGRESS:
      return DatanodeInfoProto.AdminState.DECOMMISSION_INPROGRESS;
    case DECOMMISSIONED:
      return DatanodeInfoProto.AdminState.DECOMMISSIONED;
    default:
      return DatanodeInfoProto.AdminState.NORMAL;
  }
}
项目:hops    文件:PBHelper.java   
public static AdminStates convert(AdminState adminState) {
  switch (adminState) {
    case DECOMMISSION_INPROGRESS:
      return AdminStates.DECOMMISSION_INPROGRESS;
    case DECOMMISSIONED:
      return AdminStates.DECOMMISSIONED;
    case NORMAL:
    default:
      return AdminStates.NORMAL;
  }
}
项目:hadoop-TCP    文件:PBHelper.java   
public static DatanodeInfoProto.AdminState convert(
    final DatanodeInfo.AdminStates inAs) {
  switch (inAs) {
  case NORMAL: return  DatanodeInfoProto.AdminState.NORMAL;
  case DECOMMISSION_INPROGRESS: 
      return DatanodeInfoProto.AdminState.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED: return DatanodeInfoProto.AdminState.DECOMMISSIONED;
  default: return DatanodeInfoProto.AdminState.NORMAL;
  }
}
项目:hadoop-TCP    文件:PBHelper.java   
public static AdminStates convert(AdminState adminState) {
  switch(adminState) {
  case DECOMMISSION_INPROGRESS:
    return AdminStates.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED:
    return AdminStates.DECOMMISSIONED;
  case NORMAL:
  default:
    return AdminStates.NORMAL;
  }
}
项目:hardfs    文件:PBHelper.java   
public static DatanodeInfoProto.AdminState convert(
    final DatanodeInfo.AdminStates inAs) {
  switch (inAs) {
  case NORMAL: return  DatanodeInfoProto.AdminState.NORMAL;
  case DECOMMISSION_INPROGRESS: 
      return DatanodeInfoProto.AdminState.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED: return DatanodeInfoProto.AdminState.DECOMMISSIONED;
  default: return DatanodeInfoProto.AdminState.NORMAL;
  }
}
项目:hardfs    文件:PBHelper.java   
public static AdminStates convert(AdminState adminState) {
  switch(adminState) {
  case DECOMMISSION_INPROGRESS:
    return AdminStates.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED:
    return AdminStates.DECOMMISSIONED;
  case NORMAL:
  default:
    return AdminStates.NORMAL;
  }
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static DatanodeInfoProto.AdminState convert(
    final DatanodeInfo.AdminStates inAs) {
  switch (inAs) {
  case NORMAL: return  DatanodeInfoProto.AdminState.NORMAL;
  case DECOMMISSION_INPROGRESS: 
      return DatanodeInfoProto.AdminState.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED: return DatanodeInfoProto.AdminState.DECOMMISSIONED;
  default: return DatanodeInfoProto.AdminState.NORMAL;
  }
}
项目:hadoop-on-lustre2    文件:PBHelper.java   
public static AdminStates convert(AdminState adminState) {
  switch(adminState) {
  case DECOMMISSION_INPROGRESS:
    return AdminStates.DECOMMISSION_INPROGRESS;
  case DECOMMISSIONED:
    return AdminStates.DECOMMISSIONED;
  case NORMAL:
  default:
    return AdminStates.NORMAL;
  }
}