Java Code Examples for com.qiniu.storage.Region#qvmHuadong()

The following examples show how to use com.qiniu.storage.Region#qvmHuadong() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QiNiuUtil.java    From sk-admin with Apache License 2.0 6 votes vote down vote up
/**
 * 得到机房的对应关系
 *
 * @param zone 机房名称
 * @return Region
 */
public static Region getRegion(String zone) {

    if (HUAD.equals(zone)) {
        return Region.huadong();
    } else if (HUAB.equals(zone)) {
        return Region.huabei();
    } else if (HUAN.equals(zone)) {
        return Region.huanan();
    } else if (BEIM.equals(zone)) {
        return Region.beimei();
        // 否则就是东南亚
    } else {
        return Region.qvmHuadong();
    }
}
 
Example 2
Source File: QiNiuUtil.java    From yshopmall with Apache License 2.0 6 votes vote down vote up
/**
 * 得到机房的对应关系
 * @param zone 机房名称
 * @return Region
 */
public static Region getRegion(String zone){

    if(HUAD.equals(zone)){
        return Region.huadong();
    } else if(HUAB.equals(zone)){
        return Region.huabei();
    } else if(HUAN.equals(zone)){
        return Region.huanan();
    } else if (BEIM.equals(zone)){
        return Region.beimei();
        // 否则就是东南亚
    } else {
        return Region.qvmHuadong();
    }
}
 
Example 3
Source File: QiNiuUtil.java    From eladmin with Apache License 2.0 6 votes vote down vote up
/**
 * 得到机房的对应关系
 * @param zone 机房名称
 * @return Region
 */
public static Region getRegion(String zone){

    if(HUAD.equals(zone)){
        return Region.huadong();
    } else if(HUAB.equals(zone)){
        return Region.huabei();
    } else if(HUAN.equals(zone)){
        return Region.huanan();
    } else if (BEIM.equals(zone)){
        return Region.beimei();
        // 否则就是东南亚
    } else {
        return Region.qvmHuadong();
    }
}
 
Example 4
Source File: QiNiuUtils.java    From DimpleBlog with Apache License 2.0 5 votes vote down vote up
/**
 * 得到机房的对应关系
 *
 * @param zone 机房名称
 * @return Region
 */
public static Region getRegion(String zone) {
    if (HUAD.equals(zone)) {
        return Region.huadong();
    } else if (HUAB.equals(zone)) {
        return Region.huabei();
    } else if (HUAN.equals(zone)) {
        return Region.huanan();
    } else if (BEIM.equals(zone)) {
        return Region.beimei();
        // 否则就是东南亚
    } else {
        return Region.qvmHuadong();
    }
}