Java Code Examples for com.alibaba.dubbo.governance.sync.util.SyncUtils#filterFromCategory()
The following examples show how to use
com.alibaba.dubbo.governance.sync.util.SyncUtils#filterFromCategory() .
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: ConsumerServiceImpl.java From dubbox with Apache License 2.0 | 5 votes |
private Map<Long, URL> findConsumerUrlByApplication(String application) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.CONSUMERS_CATEGORY); filter.put(Constants.APPLICATION_KEY, application); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 2
Source File: ConsumerServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
public Map<Long, URL> findConsumerUrlByService(String service) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.CONSUMERS_CATEGORY); filter.put(SyncUtils.SERVICE_FILTER_KEY, service); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 3
Source File: OverrideServiceImpl.java From dubbox with Apache License 2.0 | 5 votes |
private Map<Long, URL> findOverrideUrl(String service, String address, String application) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.CONFIGURATORS_CATEGORY); if (service != null && service.length() > 0) { filter.put(SyncUtils.SERVICE_FILTER_KEY, service); } if (address != null && address.length() > 0) { filter.put(SyncUtils.ADDRESS_FILTER_KEY, address); } if (application != null && application.length() > 0) { filter.put(Constants.APPLICATION_KEY, application); } return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 4
Source File: RouteServiceImpl.java From dubbox with Apache License 2.0 | 5 votes |
private Map<Long, URL> findRouteUrl(String service, String address, boolean force) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.ROUTERS_CATEGORY); if (service != null && service.length() > 0) { filter.put(SyncUtils.SERVICE_FILTER_KEY, service); } if (address != null && address.length() > 0) { filter.put(SyncUtils.ADDRESS_FILTER_KEY, address); } if (force) { filter.put("force", "true"); } return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 5
Source File: ProviderServiceImpl.java From dubbox with Apache License 2.0 | 5 votes |
private Map<Long, URL> findProviderUrlByService(String service) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.PROVIDERS_CATEGORY); filter.put(SyncUtils.SERVICE_FILTER_KEY, service); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 6
Source File: ConsumerServiceImpl.java From dubbox with Apache License 2.0 | 5 votes |
private Map<Long, URL> findConsumerUrlByAddress(String address) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.CONSUMERS_CATEGORY); filter.put(SyncUtils.ADDRESS_FILTER_KEY, address); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 7
Source File: RouteServiceImpl.java From dubbo3 with Apache License 2.0 | 5 votes |
private Map<Long, URL> findRouteUrl(String service, String address, boolean force) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.ROUTERS_CATEGORY); if (service != null && service.length() > 0) { filter.put(SyncUtils.SERVICE_FILTER_KEY, service); } if (address != null && address.length() > 0) { filter.put(SyncUtils.ADDRESS_FILTER_KEY, address); } if (force) { filter.put("force", "true"); } return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 8
Source File: ProviderServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
public Pair<Long, URL> findProviderUrlPair(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.PROVIDERS_CATEGORY, id); }
Example 9
Source File: OverrideServiceImpl.java From dubbo3 with Apache License 2.0 | 4 votes |
private Pair<Long, URL> findOverrideUrlPair(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.CONFIGURATORS_CATEGORY, id); }
Example 10
Source File: ProviderServiceImpl.java From dubbo3 with Apache License 2.0 | 4 votes |
private Map<Long, URL> findProviderUrlByApplication(String application) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.PROVIDERS_CATEGORY); filter.put(Constants.APPLICATION_KEY, application); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 11
Source File: ProviderServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
private Map<Long, URL> findProviderUrlByApplication(String application) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.PROVIDERS_CATEGORY); filter.put(Constants.APPLICATION_KEY, application); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 12
Source File: RouteServiceImpl.java From dubbo3 with Apache License 2.0 | 4 votes |
private Map<Long, URL> findAllUrl() { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.ROUTERS_CATEGORY); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 13
Source File: ProviderServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
private Map<Long, URL> findAllProviderUrl() { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.PROVIDERS_CATEGORY); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 14
Source File: ConsumerServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
private Pair<Long, URL> findConsumerUrl(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.CONSUMERS_CATEGORY, id); }
Example 15
Source File: RouteServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
public Pair<Long, URL> findRouteUrlPair(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.ROUTERS_CATEGORY, id); }
Example 16
Source File: RouteServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
private Map<Long, URL> findAllUrl() { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.ROUTERS_CATEGORY); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 17
Source File: ProviderServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
private Map<Long, URL> findAllProviderUrl() { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.PROVIDERS_CATEGORY); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 18
Source File: ProviderServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
private Map<Long, URL> findProviderUrlByApplication(String application) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.PROVIDERS_CATEGORY); filter.put(Constants.APPLICATION_KEY, application); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }
Example 19
Source File: ProviderServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
public Pair<Long, URL> findProviderUrlPair(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.PROVIDERS_CATEGORY, id); }
Example 20
Source File: RouteServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
private Map<Long, URL> findAllUrl() { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.ROUTERS_CATEGORY); return SyncUtils.filterFromCategory(getRegistryCache(), filter); }