com.alibaba.dubbo.governance.sync.util.Pair Java Examples
The following examples show how to use
com.alibaba.dubbo.governance.sync.util.Pair.
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: ProviderServiceImpl.java From dubbox with Apache License 2.0 | 5 votes |
private Pair<Long, URL> findProviderUrl(String service, String address) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.PROVIDERS_CATEGORY); filter.put(SyncUtils.ADDRESS_FILTER_KEY, address); Map<Long, URL> ret = SyncUtils.filterFromCategory(getRegistryCache(), filter); if(ret.isEmpty()) { return null; } else { Long key = ret.entrySet().iterator().next().getKey(); return new Pair<Long, URL>(key, ret.get(key)); } }
Example #2
Source File: ProviderServiceImpl.java From dubbox with Apache License 2.0 | 5 votes |
private Pair<Long, URL> findProviderUrl(String service, String address) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.PROVIDERS_CATEGORY); filter.put(SyncUtils.ADDRESS_FILTER_KEY, address); Map<Long, URL> ret = SyncUtils.filterFromCategory(getRegistryCache(), filter); if(ret.isEmpty()) { return null; } else { Long key = ret.entrySet().iterator().next().getKey(); return new Pair<Long, URL>(key, ret.get(key)); } }
Example #3
Source File: ProviderServiceImpl.java From dubbox with Apache License 2.0 | 5 votes |
private Pair<Long, URL> findProviderUrl(String service, String address) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.PROVIDERS_CATEGORY); filter.put(SyncUtils.ADDRESS_FILTER_KEY, address); Map<Long, URL> ret = SyncUtils.filterFromCategory(getRegistryCache(), filter); if(ret.isEmpty()) { return null; } else { Long key = ret.entrySet().iterator().next().getKey(); return new Pair<Long, URL>(key, ret.get(key)); } }
Example #4
Source File: ProviderServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 5 votes |
private Pair<Long, URL> findProviderUrl(String service, String address) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.PROVIDERS_CATEGORY); filter.put(SyncUtils.ADDRESS_FILTER_KEY, address); Map<Long, URL> ret = SyncUtils.filterFromCategory(getRegistryCache(), filter); if(ret.isEmpty()) { return null; } else { Long key = ret.entrySet().iterator().next().getKey(); return new Pair<Long, URL>(key, ret.get(key)); } }
Example #5
Source File: ProviderServiceImpl.java From dubbo3 with Apache License 2.0 | 5 votes |
private Pair<Long, URL> findProviderUrl(String service, String address) { Map<String, String> filter = new HashMap<String, String>(); filter.put(Constants.CATEGORY_KEY, Constants.PROVIDERS_CATEGORY); filter.put(SyncUtils.ADDRESS_FILTER_KEY, address); Map<Long, URL> ret = SyncUtils.filterFromCategory(getRegistryCache(), filter); if(ret.isEmpty()) { return null; } else { Long key = ret.entrySet().iterator().next().getKey(); return new Pair<Long, URL>(key, ret.get(key)); } }
Example #6
Source File: RouteServiceImpl.java From dubbo3 with Apache License 2.0 | 4 votes |
public Pair<Long, URL> findRouteUrlPair(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.ROUTERS_CATEGORY, id); }
Example #7
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 #8
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 #9
Source File: OverrideServiceImpl.java From dubbox 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: 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 #11
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 #12
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 #13
Source File: OverrideServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
private Pair<Long, URL> findOverrideUrlPair(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.CONFIGURATORS_CATEGORY, id); }
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: ProviderServiceImpl.java From dubbo3 with Apache License 2.0 | 4 votes |
public Pair<Long, URL> findProviderUrlPair(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.PROVIDERS_CATEGORY, id); }
Example #16
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 #17
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 #18
Source File: ConsumerServiceImpl.java From dubbo3 with Apache License 2.0 | 4 votes |
private Pair<Long, URL> findConsumerUrl(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.CONSUMERS_CATEGORY, id); }
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 |
public Pair<Long, URL> findRouteUrlPair(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.ROUTERS_CATEGORY, id); }
Example #21
Source File: OverrideServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
private Pair<Long, URL> findOverrideUrlPair(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.CONFIGURATORS_CATEGORY, id); }
Example #22
Source File: ConsumerServiceImpl.java From dubbox-hystrix with Apache License 2.0 | 4 votes |
private Pair<Long, URL> findConsumerUrl(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.CONSUMERS_CATEGORY, id); }
Example #23
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 #24
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 #25
Source File: OverrideServiceImpl.java From dubbox with Apache License 2.0 | 4 votes |
private Pair<Long, URL> findOverrideUrlPair(Long id) { return SyncUtils.filterFromCategory(getRegistryCache(), Constants.CONFIGURATORS_CATEGORY, id); }