Package com.baidu.disconf.core.common.json

Examples of com.baidu.disconf.core.common.json.ValueVo


    public String getValueFromServer(String url) throws Exception {

        // 远程地址
        RemoteUrl remoteUrl = new RemoteUrl(url, hostList);

        ValueVo confItemVo = restfulMgr.getJsonData(ValueVo.class, remoteUrl,
                retryTime, retrySleepSeconds);
        LOGGER.debug("remote server return: " + confItemVo.toString());

        if (confItemVo.getStatus().equals(Constants.NOTOK)) {
            throw new Exception("status is not ok.");
        }

        return confItemVo.getValue();
    }
View Full Code Here


    public String getValueFromServer(String url) throws Exception {

        // 远程地址
        RemoteUrl remoteUrl = new RemoteUrl(url, hostList);

        ValueVo confItemVo = restfulMgr.getJsonData(ValueVo.class, remoteUrl,
                retryTime, retrySleepSeconds);
        LOGGER.debug("remote server return: " + confItemVo.toString());

        if (confItemVo.getStatus().equals(Constants.NOTOK)) {
            throw new Exception("status is not ok.");
        }

        return confItemVo.getValue();
    }
View Full Code Here

    public String getValueFromServer(String url) throws Exception {

        // 远程地址
        RemoteUrl remoteUrl = new RemoteUrl(url, hostList);

        ValueVo confItemVo = restfulMgr.getJsonData(ValueVo.class, remoteUrl,
                retryTime, retrySleepSeconds);
        LOGGER.info("remote server return: " + confItemVo.toString());

        if (confItemVo.getStatus().equals(Constants.NOTOK)) {
            throw new Exception("status is not ok.");
        }

        return confItemVo.getValue();
    }
View Full Code Here

        // 远程地址
        RemoteUrl remoteUrl = new RemoteUrl(url, DisClientConfig.getInstance()
                .getHostList());

        ValueVo confItemVo = RestfulMgr.getInstance().getJsonData(
                ValueVo.class, remoteUrl);
        LOGGER.info("remote server return: " + confItemVo.toString());

        if (confItemVo.getStatus().equals(Constants.NOTOK)) {
            throw new Exception("status is not ok.");
        }

        return confItemVo.getValue();
    }
View Full Code Here

TOP

Related Classes of com.baidu.disconf.core.common.json.ValueVo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.