本文整理汇总了Java中com.alibaba.dubbo.governance.sync.util.SyncUtils.filterFromCategory方法的典型用法代码示例。如果您正苦于以下问题:Java SyncUtils.filterFromCategory方法的具体用法?Java SyncUtils.filterFromCategory怎么用?Java SyncUtils.filterFromCategory使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.alibaba.dubbo.governance.sync.util.SyncUtils
的用法示例。
在下文中一共展示了SyncUtils.filterFromCategory方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findOverrideUrl
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
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);
}
示例2: findOverrideUrl
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
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);
}
示例3: findProviderUrlByService
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
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);
}
示例4: findRouteUrl
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
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);
}
示例5: findConsumerUrlByApplication
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
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);
}
示例6: findProviderUrlByAddress
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
public Map<Long, URL> findProviderUrlByAddress(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);
return SyncUtils.filterFromCategory(getRegistryCache(), filter);
}
示例7: findProviderUrlByAddress
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
public Map<Long, URL> findProviderUrlByAddress(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);
return SyncUtils.filterFromCategory(getRegistryCache(), filter);
}
示例8: findConsumerUrlByApplication
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
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);
}
示例9: findConsumerUrl
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
private Pair<Long, URL> findConsumerUrl(Long id) {
return SyncUtils.filterFromCategory(getRegistryCache(), Constants.CONSUMERS_CATEGORY, id);
}
示例10: findRouteUrlPair
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
public Pair<Long, URL> findRouteUrlPair(Long id) {
return SyncUtils.filterFromCategory(getRegistryCache(), Constants.ROUTERS_CATEGORY, id);
}
示例11: findOverrideUrlPair
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
private Pair<Long, URL> findOverrideUrlPair(Long id) {
return SyncUtils.filterFromCategory(getRegistryCache(), Constants.CONFIGURATORS_CATEGORY, id);
}
示例12: findProviderUrlByApplication
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
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);
}
示例13: findAllConsumerUrl
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
private Map<Long, URL> findAllConsumerUrl() {
Map<String, String> filter = new HashMap<String, String>();
filter.put(Constants.CATEGORY_KEY, Constants.CONSUMERS_CATEGORY);
return SyncUtils.filterFromCategory(getRegistryCache(), filter);
}
示例14: findAllProviderUrl
import com.alibaba.dubbo.governance.sync.util.SyncUtils; //导入方法依赖的package包/类
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);
}