public class CommandServiceManager extends Object implements CommandListener, ServiceListener
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
MOTAN_COMMAND_SWITCHER |
| 构造器和说明 |
|---|
CommandServiceManager(URL refUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addNotifyListener(NotifyListener notifyListener) |
List<URL> |
discoverServiceWithCommand(URL serviceUrl,
Map<String,Integer> weights,
RpcCommand rpcCommand) |
List<URL> |
discoverServiceWithCommand(URL serviceUrl,
Map<String,Integer> weights,
RpcCommand rpcCommand,
String localIP) |
void |
notifyCommand(URL serviceUrl,
String commandString) |
void |
notifyService(URL serviceUrl,
URL registryUrl,
List<URL> urls) |
void |
removeNotifyListener(NotifyListener notifyListener) |
void |
setCommandCache(String command) |
void |
setRegistry(CommandFailbackRegistry registry) |
public CommandServiceManager(URL refUrl)
public void notifyService(URL serviceUrl, URL registryUrl, List<URL> urls)
notifyService 在接口中 ServiceListenerpublic void notifyCommand(URL serviceUrl, String commandString)
notifyCommand 在接口中 CommandListenerpublic List<URL> discoverServiceWithCommand(URL serviceUrl, Map<String,Integer> weights, RpcCommand rpcCommand)
public List<URL> discoverServiceWithCommand(URL serviceUrl, Map<String,Integer> weights, RpcCommand rpcCommand, String localIP)
public void setCommandCache(String command)
public void addNotifyListener(NotifyListener notifyListener)
public void removeNotifyListener(NotifyListener notifyListener)
public void setRegistry(CommandFailbackRegistry registry)
Copyright © 2017. All rights reserved.