com.baidu.jprotobuf.pbrpc.spring
类 UrlBasedNamingService
java.lang.Object
com.baidu.jprotobuf.pbrpc.spring.UrlBasedNamingService
- 所有已实现的接口:
- NamingService
public class UrlBasedNamingService
- extends Object
- implements NamingService
URL based naming service provider.
<bean id="namingService" class="com.baidu.jprotobuf.pbrpc.spring.UrlBasedNamingService">
<constructor-arg>
<value>localhost:1031;localhost:1032;localhost:1033</value>
</constructor-arg>
</bean>
- 从以下版本开始:
- 2.17
- 作者:
- xiemalin
| 从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UrlBasedNamingService
public UrlBasedNamingService(String url)
- url pattern with host:port and split by comma.
eg: localhost:1031;localhost:1032
- 参数:
url - in string
list
public Map<String,List<RegisterInfo>> list(Set<String> services)
throws Exception
- 从接口
NamingService 复制的描述
- get server list from naming service.
- 指定者:
- 接口
NamingService 中的 list
- 参数:
services - service signatures
- 返回:
- server list mapped by service signature.
- 抛出:
Exception - in case of any exception
Copyright © 2015 Baidu, Inc.. All Rights Reserved.