com.alibaba.dubbo.registry.common.domain.Consumer Java Examples

The following examples show how to use com.alibaba.dubbo.registry.common.domain.Consumer. 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: OverrideUtils.java    From dubbo3 with Apache License 2.0 6 votes vote down vote up
public static void setConsumerOverrides(Consumer consumer, List<Override> overrides) {
	if (consumer == null || overrides == null) {
		return;
	}
	List<Override> result = new ArrayList<Override>(overrides.size());
	for(Override override : overrides){
   		if (! override.isEnabled()) {
			continue;
		}
   		if (override.isMatch(consumer)) {
   			result.add(override);
   		}
   		if (override.isUniqueMatch(consumer)) {
   			consumer.setOverride(override);
   		}
   	}
	Collections.sort(result, OverrideUtils.OVERRIDE_COMPARATOR);
	consumer.setOverrides(result);
}
 
Example #2
Source File: Routes.java    From dubbox-hystrix with Apache License 2.0 6 votes vote down vote up
/**
 * 选择消费者
 * @param context
 */
public void routeselect(Map<String, Object> context){
	long rid = Long.valueOf((String)context.get("id"));
    context.put("id", rid);
    
    Route route = routeService.findRoute(rid);
    if (route == null) {
        throw new IllegalStateException("Route(id=" + rid + ") is not existed!");
    }
    
    context.put("route", route);
    // 获取数据
    List<Consumer> consumers = consumerService.findByService(route.getService());
    context.put("consumers", consumers);
    
    Map<String, Boolean> matchRoute = new HashMap<String, Boolean>();
    for(Consumer c : consumers) {
        matchRoute.put(c.getAddress(), RouteUtils.matchRoute(c.getAddress(), null, route, null));
    }
    context.put("matchRoute", matchRoute);
}
 
Example #3
Source File: Routes.java    From dubbo3 with Apache License 2.0 6 votes vote down vote up
/**
 * 选择消费者
 * @param context
 */
public void routeselect(Map<String, Object> context){
	long rid = Long.valueOf((String)context.get("id"));
    context.put("id", rid);
    
    Route route = routeService.findRoute(rid);
    if (route == null) {
        throw new IllegalStateException("Route(id=" + rid + ") is not existed!");
    }
    
    context.put("route", route);
    // 获取数据
    List<Consumer> consumers = consumerService.findByService(route.getService());
    context.put("consumers", consumers);
    
    Map<String, Boolean> matchRoute = new HashMap<String, Boolean>();
    for(Consumer c : consumers) {
        matchRoute.put(c.getAddress(), RouteUtils.matchRoute(c.getAddress(), null, route, null));
    }
    context.put("matchRoute", matchRoute);
}
 
Example #4
Source File: OverrideUtils.java    From dubbox with Apache License 2.0 6 votes vote down vote up
public static void setConsumerOverrides(Consumer consumer, List<Override> overrides) {
	if (consumer == null || overrides == null) {
		return;
	}
	List<Override> result = new ArrayList<Override>(overrides.size());
	for(Override override : overrides){
   		if (! override.isEnabled()) {
			continue;
		}
   		if (override.isMatch(consumer)) {
   			result.add(override);
   		}
   		if (override.isUniqueMatch(consumer)) {
   			consumer.setOverride(override);
   		}
   	}
	Collections.sort(result, OverrideUtils.OVERRIDE_COMPARATOR);
	consumer.setOverrides(result);
}
 
Example #5
Source File: OverrideUtils.java    From dubbox with Apache License 2.0 6 votes vote down vote up
public static void setConsumerOverrides(Consumer consumer, List<Override> overrides) {
	if (consumer == null || overrides == null) {
		return;
	}
	List<Override> result = new ArrayList<Override>(overrides.size());
	for(Override override : overrides){
   		if (! override.isEnabled()) {
			continue;
		}
   		if (override.isMatch(consumer)) {
   			result.add(override);
   		}
   		if (override.isUniqueMatch(consumer)) {
   			consumer.setOverride(override);
   		}
   	}
	Collections.sort(result, OverrideUtils.OVERRIDE_COMPARATOR);
	consumer.setOverrides(result);
}
 
Example #6
Source File: SyncUtils.java    From dubbox with Apache License 2.0 6 votes vote down vote up
public static Consumer url2Consumer(Pair<Long, URL> pair) {
	if (pair == null) {
		return null;
	}
	
    Long id = pair.getKey();
    URL url = pair.getValue();

    if (null == url)
        return null;

    Consumer c = new Consumer();
    c.setId(id);
    c.setService(url.getServiceKey());
    c.setAddress(url.getHost());
    c.setApplication(url.getParameter(Constants.APPLICATION_KEY));
    c.setParameters(url.toParameterString());

    return c;
}
 
Example #7
Source File: OverrideUtils.java    From dubbox-hystrix with Apache License 2.0 6 votes vote down vote up
public static void setConsumerOverrides(Consumer consumer, List<Override> overrides) {
	if (consumer == null || overrides == null) {
		return;
	}
	List<Override> result = new ArrayList<Override>(overrides.size());
	for(Override override : overrides){
   		if (! override.isEnabled()) {
			continue;
		}
   		if (override.isMatch(consumer)) {
   			result.add(override);
   		}
   		if (override.isUniqueMatch(consumer)) {
   			consumer.setOverride(override);
   		}
   	}
	Collections.sort(result, OverrideUtils.OVERRIDE_COMPARATOR);
	consumer.setOverrides(result);
}
 
Example #8
Source File: SyncUtils.java    From dubbo3 with Apache License 2.0 6 votes vote down vote up
public static Consumer url2Consumer(Pair<Long, URL> pair) {
	if (pair == null) {
		return null;
	}
	
    Long id = pair.getKey();
    URL url = pair.getValue();

    if (null == url)
        return null;

    Consumer c = new Consumer();
    c.setId(id);
    c.setService(url.getServiceKey());
    c.setAddress(url.getHost());
    c.setApplication(url.getParameter(Constants.APPLICATION_KEY));
    c.setParameters(url.toParameterString());

    return c;
}
 
Example #9
Source File: SyncUtils.java    From dubbox-hystrix with Apache License 2.0 6 votes vote down vote up
public static Consumer url2Consumer(Pair<Long, URL> pair) {
	if (pair == null) {
		return null;
	}
	
    Long id = pair.getKey();
    URL url = pair.getValue();

    if (null == url)
        return null;

    Consumer c = new Consumer();
    c.setId(id);
    c.setService(url.getServiceKey());
    c.setAddress(url.getHost());
    c.setApplication(url.getParameter(Constants.APPLICATION_KEY));
    c.setParameters(url.toParameterString());

    return c;
}
 
Example #10
Source File: Routes.java    From dubbox with Apache License 2.0 6 votes vote down vote up
/**
 * 选择消费者
 * @param context
 */
public void routeselect(Map<String, Object> context){
	long rid = Long.valueOf((String)context.get("id"));
    context.put("id", rid);
    
    Route route = routeService.findRoute(rid);
    if (route == null) {
        throw new IllegalStateException("Route(id=" + rid + ") is not existed!");
    }
    
    context.put("route", route);
    // 获取数据
    List<Consumer> consumers = consumerService.findByService(route.getService());
    context.put("consumers", consumers);
    
    Map<String, Boolean> matchRoute = new HashMap<String, Boolean>();
    for(Consumer c : consumers) {
        matchRoute.put(c.getAddress(), RouteUtils.matchRoute(c.getAddress(), null, route, null));
    }
    context.put("matchRoute", matchRoute);
}
 
Example #11
Source File: SyncUtils.java    From dubbox with Apache License 2.0 6 votes vote down vote up
public static Consumer url2Consumer(Pair<Long, URL> pair) {
	if (pair == null) {
		return null;
	}
	
    Long id = pair.getKey();
    URL url = pair.getValue();

    if (null == url)
        return null;

    Consumer c = new Consumer();
    c.setId(id);
    c.setService(url.getServiceKey());
    c.setAddress(url.getHost());
    c.setApplication(url.getParameter(Constants.APPLICATION_KEY));
    c.setParameters(url.toParameterString());

    return c;
}
 
Example #12
Source File: OverrideUtils.java    From dubbox with Apache License 2.0 6 votes vote down vote up
public static void setConsumerOverrides(Consumer consumer, List<Override> overrides) {
	if (consumer == null || overrides == null) {
		return;
	}
	List<Override> result = new ArrayList<Override>(overrides.size());
	for(Override override : overrides){
   		if (! override.isEnabled()) {
			continue;
		}
   		if (override.isMatch(consumer)) {
   			result.add(override);
   		}
   		if (override.isUniqueMatch(consumer)) {
   			consumer.setOverride(override);
   		}
   	}
	Collections.sort(result, OverrideUtils.OVERRIDE_COMPARATOR);
	consumer.setOverrides(result);
}
 
Example #13
Source File: Routes.java    From dubbox with Apache License 2.0 6 votes vote down vote up
/**
 * 选择消费者
 * @param context
 */
public void routeselect(Map<String, Object> context){
	long rid = Long.valueOf((String)context.get("id"));
    context.put("id", rid);
    
    Route route = routeService.findRoute(rid);
    if (route == null) {
        throw new IllegalStateException("Route(id=" + rid + ") is not existed!");
    }
    
    context.put("route", route);
    // 获取数据
    List<Consumer> consumers = consumerService.findByService(route.getService());
    context.put("consumers", consumers);
    
    Map<String, Boolean> matchRoute = new HashMap<String, Boolean>();
    for(Consumer c : consumers) {
        matchRoute.put(c.getAddress(), RouteUtils.matchRoute(c.getAddress(), null, route, null));
    }
    context.put("matchRoute", matchRoute);
}
 
Example #14
Source File: Routes.java    From dubbox with Apache License 2.0 6 votes vote down vote up
/**
 * 选择消费者
 * @param context
 */
public void routeselect(Map<String, Object> context){
	long rid = Long.valueOf((String)context.get("id"));
    context.put("id", rid);
    
    Route route = routeService.findRoute(rid);
    if (route == null) {
        throw new IllegalStateException("Route(id=" + rid + ") is not existed!");
    }
    
    context.put("route", route);
    // 获取数据
    List<Consumer> consumers = consumerService.findByService(route.getService());
    context.put("consumers", consumers);
    
    Map<String, Boolean> matchRoute = new HashMap<String, Boolean>();
    for(Consumer c : consumers) {
        matchRoute.put(c.getAddress(), RouteUtils.matchRoute(c.getAddress(), null, route, null));
    }
    context.put("matchRoute", matchRoute);
}
 
Example #15
Source File: Versions.java    From dubbox-hystrix with Apache License 2.0 5 votes vote down vote up
public void show(Long[] ids, Map<String, Object> context) {
    String version =(String)context.get("version");
    if (version != null && version.length() > 0) {
        List<Provider> providers = providerService.findAll();
        List<Consumer> consumers = consumerService.findAll();
        Set<String> parametersSet = new HashSet<String>();
        Set<String> applications = new HashSet<String>();
        for (Provider provider : providers) {
            parametersSet.add(provider.getParameters());
        }
        for (Consumer consumer : consumers) {
            parametersSet.add(consumer.getParameters());
        }
        Iterator<String> temp = parametersSet.iterator();
        while (temp.hasNext()) {
            Map<String, String> parameter = StringUtils.parseQueryString(temp.next());
            if (parameter != null) {
                String dubbo = parameter.get("dubbo");
                if(dubbo == null) dubbo = "0.0.0";
                String application = parameter.get("application");
                if (version.equals(dubbo)) {
                    applications.add(application);
                }
            }
        }
        context.put("applications", applications);
    }
}
 
Example #16
Source File: Versions.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public void index(Map<String, Object> context) {
    List<Provider> providers = providerService.findAll();
    List<Consumer> consumers = consumerService.findAll();
    Set<String> parametersSet = new HashSet<String>();
    for (Provider provider : providers) {
        parametersSet.add(provider.getParameters());
    }
    for (Consumer consumer : consumers) {
        parametersSet.add(consumer.getParameters());
    }
    Map<String, Set<String>> versions = new HashMap<String, Set<String>>();
    Iterator<String> temp = parametersSet.iterator();
    while (temp.hasNext()) {
        Map<String, String> parameter = StringUtils.parseQueryString(temp.next());
        if (parameter != null) {
            String dubbo = parameter.get("dubbo");
            if(dubbo == null) dubbo = "0.0.0";
            String application = parameter.get("application");
            if (versions.get(dubbo) == null) {
                Set<String> apps = new HashSet<String>();
                versions.put(dubbo, apps);
            }
            versions.get(dubbo).add(application);
        }
    }
    context.put("versions", versions);
}
 
Example #17
Source File: Consumers.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public void show(Long id, Map<String, Object> context) {
	Consumer consumer = consumerService.findConsumer(id);
	List<Provider> providers = providerService.findByService(consumer.getService());
	List<Route> routes = routeService.findByService(consumer.getService());
	List<Override> overrides = overrideService.findByService(consumer.getService());
	List<Route> routed = new ArrayList<Route>();
    consumer.setProviders(RouteUtils.route(consumer.getService(), consumer.getAddress(), consumer.getParameters(), providers, overrides, routes, null, routed));
	consumer.setRoutes(routed);
	OverrideUtils.setConsumerOverrides(consumer, overrides);
	context.put("consumer", consumer);
	context.put("providers", consumer.getProviders());
	context.put("routes", consumer.getRoutes());
	context.put("overrides", consumer.getOverrides());
}
 
Example #18
Source File: SyncUtils.java    From dubbox-hystrix with Apache License 2.0 5 votes vote down vote up
public static List<Consumer> url2ConsumerList(Map<Long, URL> cs) {
    List<Consumer> list = new ArrayList<Consumer>();
    if(cs == null) return list;
    for(Map.Entry<Long, URL> entry : cs.entrySet()) {
        list.add(url2Consumer(new Pair<Long, URL>(entry.getKey(), entry.getValue())));
    }
    return list;
}
 
Example #19
Source File: Consumers.java    From dubbox-hystrix with Apache License 2.0 5 votes vote down vote up
public void show(Long id, Map<String, Object> context) {
	Consumer consumer = consumerService.findConsumer(id);
	List<Provider> providers = providerService.findByService(consumer.getService());
	List<Route> routes = routeService.findByService(consumer.getService());
	List<Override> overrides = overrideService.findByService(consumer.getService());
	List<Route> routed = new ArrayList<Route>();
    consumer.setProviders(RouteUtils.route(consumer.getService(), consumer.getAddress(), consumer.getParameters(), providers, overrides, routes, null, routed));
	consumer.setRoutes(routed);
	OverrideUtils.setConsumerOverrides(consumer, overrides);
	context.put("consumer", consumer);
	context.put("providers", consumer.getProviders());
	context.put("routes", consumer.getRoutes());
	context.put("overrides", consumer.getOverrides());
}
 
Example #20
Source File: Versions.java    From dubbo3 with Apache License 2.0 5 votes vote down vote up
public void index(Map<String, Object> context) {
    List<Provider> providers = providerService.findAll();
    List<Consumer> consumers = consumerService.findAll();
    Set<String> parametersSet = new HashSet<String>();
    for (Provider provider : providers) {
        parametersSet.add(provider.getParameters());
    }
    for (Consumer consumer : consumers) {
        parametersSet.add(consumer.getParameters());
    }
    Map<String, Set<String>> versions = new HashMap<String, Set<String>>();
    Iterator<String> temp = parametersSet.iterator();
    while (temp.hasNext()) {
        Map<String, String> parameter = StringUtils.parseQueryString(temp.next());
        if (parameter != null) {
            String dubbo = parameter.get("dubbo");
            if(dubbo == null) dubbo = "0.0.0";
            String application = parameter.get("application");
            if (versions.get(dubbo) == null) {
                Set<String> apps = new HashSet<String>();
                versions.put(dubbo, apps);
            }
            versions.get(dubbo).add(application);
        }
    }
    context.put("versions", versions);
}
 
Example #21
Source File: Versions.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public void show(Long[] ids, Map<String, Object> context) {
    String version =(String)context.get("version");
    if (version != null && version.length() > 0) {
        List<Provider> providers = providerService.findAll();
        List<Consumer> consumers = consumerService.findAll();
        Set<String> parametersSet = new HashSet<String>();
        Set<String> applications = new HashSet<String>();
        for (Provider provider : providers) {
            parametersSet.add(provider.getParameters());
        }
        for (Consumer consumer : consumers) {
            parametersSet.add(consumer.getParameters());
        }
        Iterator<String> temp = parametersSet.iterator();
        while (temp.hasNext()) {
            Map<String, String> parameter = StringUtils.parseQueryString(temp.next());
            if (parameter != null) {
                String dubbo = parameter.get("dubbo");
                if(dubbo == null) dubbo = "0.0.0";
                String application = parameter.get("application");
                if (version.equals(dubbo)) {
                    applications.add(application);
                }
            }
        }
        context.put("applications", applications);
    }
}
 
Example #22
Source File: Versions.java    From dubbo3 with Apache License 2.0 5 votes vote down vote up
public void show(Long[] ids, Map<String, Object> context) {
    String version =(String)context.get("version");
    if (version != null && version.length() > 0) {
        List<Provider> providers = providerService.findAll();
        List<Consumer> consumers = consumerService.findAll();
        Set<String> parametersSet = new HashSet<String>();
        Set<String> applications = new HashSet<String>();
        for (Provider provider : providers) {
            parametersSet.add(provider.getParameters());
        }
        for (Consumer consumer : consumers) {
            parametersSet.add(consumer.getParameters());
        }
        Iterator<String> temp = parametersSet.iterator();
        while (temp.hasNext()) {
            Map<String, String> parameter = StringUtils.parseQueryString(temp.next());
            if (parameter != null) {
                String dubbo = parameter.get("dubbo");
                if(dubbo == null) dubbo = "0.0.0";
                String application = parameter.get("application");
                if (version.equals(dubbo)) {
                    applications.add(application);
                }
            }
        }
        context.put("applications", applications);
    }
}
 
Example #23
Source File: Consumers.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public void show(Long id, Map<String, Object> context) {
	Consumer consumer = consumerService.findConsumer(id);
	List<Provider> providers = providerService.findByService(consumer.getService());
	List<Route> routes = routeService.findByService(consumer.getService());
	List<Override> overrides = overrideService.findByService(consumer.getService());
	List<Route> routed = new ArrayList<Route>();
    consumer.setProviders(RouteUtils.route(consumer.getService(), consumer.getAddress(), consumer.getParameters(), providers, overrides, routes, null, routed));
	consumer.setRoutes(routed);
	OverrideUtils.setConsumerOverrides(consumer, overrides);
	context.put("consumer", consumer);
	context.put("providers", consumer.getProviders());
	context.put("routes", consumer.getRoutes());
	context.put("overrides", consumer.getOverrides());
}
 
Example #24
Source File: Consumers.java    From dubbo3 with Apache License 2.0 5 votes vote down vote up
public void show(Long id, Map<String, Object> context) {
	Consumer consumer = consumerService.findConsumer(id);
	List<Provider> providers = providerService.findByService(consumer.getService());
	List<Route> routes = routeService.findByService(consumer.getService());
	List<Override> overrides = overrideService.findByService(consumer.getService());
	List<Route> routed = new ArrayList<Route>();
    consumer.setProviders(RouteUtils.route(consumer.getService(), consumer.getAddress(), consumer.getParameters(), providers, overrides, routes, null, routed));
	consumer.setRoutes(routed);
	OverrideUtils.setConsumerOverrides(consumer, overrides);
	context.put("consumer", consumer);
	context.put("providers", consumer.getProviders());
	context.put("routes", consumer.getRoutes());
	context.put("overrides", consumer.getOverrides());
}
 
Example #25
Source File: SyncUtils.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public static List<Consumer> url2ConsumerList(Map<Long, URL> cs) {
    List<Consumer> list = new ArrayList<Consumer>();
    if(cs == null) return list;
    for(Map.Entry<Long, URL> entry : cs.entrySet()) {
        list.add(url2Consumer(new Pair<Long, URL>(entry.getKey(), entry.getValue())));
    }
    return list;
}
 
Example #26
Source File: SyncUtils.java    From dubbo3 with Apache License 2.0 5 votes vote down vote up
public static List<Consumer> url2ConsumerList(Map<Long, URL> cs) {
    List<Consumer> list = new ArrayList<Consumer>();
    if(cs == null) return list;
    for(Map.Entry<Long, URL> entry : cs.entrySet()) {
        list.add(url2Consumer(new Pair<Long, URL>(entry.getKey(), entry.getValue())));
    }
    return list;
}
 
Example #27
Source File: Versions.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public void index(Map<String, Object> context) {
    List<Provider> providers = providerService.findAll();
    List<Consumer> consumers = consumerService.findAll();
    Set<String> parametersSet = new HashSet<String>();
    for (Provider provider : providers) {
        parametersSet.add(provider.getParameters());
    }
    for (Consumer consumer : consumers) {
        parametersSet.add(consumer.getParameters());
    }
    Map<String, Set<String>> versions = new HashMap<String, Set<String>>();
    Iterator<String> temp = parametersSet.iterator();
    while (temp.hasNext()) {
        Map<String, String> parameter = StringUtils.parseQueryString(temp.next());
        if (parameter != null) {
            String dubbo = parameter.get("dubbo");
            if(dubbo == null) dubbo = "0.0.0";
            String application = parameter.get("application");
            if (versions.get(dubbo) == null) {
                Set<String> apps = new HashSet<String>();
                versions.put(dubbo, apps);
            }
            versions.get(dubbo).add(application);
        }
    }
    context.put("versions", versions);
}
 
Example #28
Source File: Versions.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public void show(Long[] ids, Map<String, Object> context) {
    String version =(String)context.get("version");
    if (version != null && version.length() > 0) {
        List<Provider> providers = providerService.findAll();
        List<Consumer> consumers = consumerService.findAll();
        Set<String> parametersSet = new HashSet<String>();
        Set<String> applications = new HashSet<String>();
        for (Provider provider : providers) {
            parametersSet.add(provider.getParameters());
        }
        for (Consumer consumer : consumers) {
            parametersSet.add(consumer.getParameters());
        }
        Iterator<String> temp = parametersSet.iterator();
        while (temp.hasNext()) {
            Map<String, String> parameter = StringUtils.parseQueryString(temp.next());
            if (parameter != null) {
                String dubbo = parameter.get("dubbo");
                if(dubbo == null) dubbo = "0.0.0";
                String application = parameter.get("application");
                if (version.equals(dubbo)) {
                    applications.add(application);
                }
            }
        }
        context.put("applications", applications);
    }
}
 
Example #29
Source File: Consumers.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public void show(Long id, Map<String, Object> context) {
	Consumer consumer = consumerService.findConsumer(id);
	List<Provider> providers = providerService.findByService(consumer.getService());
	List<Route> routes = routeService.findByService(consumer.getService());
	List<Override> overrides = overrideService.findByService(consumer.getService());
	List<Route> routed = new ArrayList<Route>();
    consumer.setProviders(RouteUtils.route(consumer.getService(), consumer.getAddress(), consumer.getParameters(), providers, overrides, routes, null, routed));
	consumer.setRoutes(routed);
	OverrideUtils.setConsumerOverrides(consumer, overrides);
	context.put("consumer", consumer);
	context.put("providers", consumer.getProviders());
	context.put("routes", consumer.getRoutes());
	context.put("overrides", consumer.getOverrides());
}
 
Example #30
Source File: Versions.java    From dubbox with Apache License 2.0 5 votes vote down vote up
public void show(Long[] ids, Map<String, Object> context) {
    String version =(String)context.get("version");
    if (version != null && version.length() > 0) {
        List<Provider> providers = providerService.findAll();
        List<Consumer> consumers = consumerService.findAll();
        Set<String> parametersSet = new HashSet<String>();
        Set<String> applications = new HashSet<String>();
        for (Provider provider : providers) {
            parametersSet.add(provider.getParameters());
        }
        for (Consumer consumer : consumers) {
            parametersSet.add(consumer.getParameters());
        }
        Iterator<String> temp = parametersSet.iterator();
        while (temp.hasNext()) {
            Map<String, String> parameter = StringUtils.parseQueryString(temp.next());
            if (parameter != null) {
                String dubbo = parameter.get("dubbo");
                if(dubbo == null) dubbo = "0.0.0";
                String application = parameter.get("application");
                if (version.equals(dubbo)) {
                    applications.add(application);
                }
            }
        }
        context.put("applications", applications);
    }
}