Search in sources :

Example 6 with QueryConfigurationsRequest

use of org.apache.servicecomb.config.center.client.model.QueryConfigurationsRequest in project incubator-servicecomb-java-chassis by apache.

the class ConfigCenterConfigurationSourceImpl method createQueryConfigurationsRequest.

private QueryConfigurationsRequest createQueryConfigurationsRequest() {
    QueryConfigurationsRequest request = new QueryConfigurationsRequest();
    request.setApplication(ConfigCenterConfig.INSTANCE.getAppName());
    request.setServiceName(ConfigCenterConfig.INSTANCE.getServiceName());
    request.setVersion(ConfigCenterConfig.INSTANCE.getServiceVersion());
    request.setEnvironment(ConfigCenterConfig.INSTANCE.getEnvironment());
    // 需要设置为 null, 并且 query 参数为 revision=null 才会返回 revision 信息。 revision = 是不行的。
    request.setRevision(null);
    return request;
}
Also used : QueryConfigurationsRequest(org.apache.servicecomb.config.center.client.model.QueryConfigurationsRequest)

Aggregations

QueryConfigurationsRequest (org.apache.servicecomb.config.center.client.model.QueryConfigurationsRequest)6 AddressManager (org.apache.servicecomb.config.center.client.AddressManager)2 ConfigCenterClient (org.apache.servicecomb.config.center.client.ConfigCenterClient)2 ConfigCenterManager (org.apache.servicecomb.config.center.client.ConfigCenterManager)2 QueryConfigurationsResponse (org.apache.servicecomb.config.center.client.model.QueryConfigurationsResponse)2 ConfigConverter (org.apache.servicecomb.config.common.ConfigConverter)2 HttpTransport (org.apache.servicecomb.http.client.common.HttpTransport)2