public class MigrationInvoker<T> extends Object implements MigrationClusterInvoker<T>
| 构造器和说明 |
|---|
MigrationInvoker(ClusterInvoker<T> invoker,
ClusterInvoker<T> serviceDiscoveryInvoker,
RegistryProtocol registryProtocol,
Cluster cluster,
Registry registry,
Class<T> type,
URL url,
URL consumerUrl) |
MigrationInvoker(RegistryProtocol registryProtocol,
Cluster cluster,
Registry registry,
Class<T> type,
URL url,
URL consumerUrl) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
checkInvokerAvailable(ClusterInvoker<T> invoker) |
void |
destroy() |
Cluster |
getCluster() |
URL |
getConsumerUrl() |
ClusterInvoker<T> |
getCurrentAvailableInvoker() |
Directory<T> |
getDirectory() |
Class<T> |
getInterface() |
ClusterInvoker<T> |
getInvoker() |
MigrationRule |
getMigrationRule() |
MigrationStep |
getMigrationStep() |
URL |
getRegistryUrl() |
ClusterInvoker<T> |
getServiceDiscoveryInvoker() |
URL |
getUrl() |
org.apache.dubbo.rpc.Result |
invoke(org.apache.dubbo.rpc.Invocation invocation) |
boolean |
isAvailable() |
boolean |
isDestroyed() |
boolean |
isServiceDiscovery() |
void |
migrateToApplicationFirstInvoker(MigrationRule newRule) |
boolean |
migrateToForceApplicationInvoker(MigrationRule newRule) |
boolean |
migrateToForceInterfaceInvoker(MigrationRule newRule) |
void |
reRefer(URL newSubscribeUrl) |
void |
setInvoker(ClusterInvoker<T> invoker) |
void |
setMigrationRule(MigrationRule rule) |
void |
setMigrationStep(MigrationStep step) |
void |
setServiceDiscoveryInvoker(ClusterInvoker<T> serviceDiscoveryInvoker) |
hasProxyInvokerspublic MigrationInvoker(RegistryProtocol registryProtocol, Cluster cluster, Registry registry, Class<T> type, URL url, URL consumerUrl)
public MigrationInvoker(ClusterInvoker<T> invoker, ClusterInvoker<T> serviceDiscoveryInvoker, RegistryProtocol registryProtocol, Cluster cluster, Registry registry, Class<T> type, URL url, URL consumerUrl)
public ClusterInvoker<T> getInvoker()
public void setInvoker(ClusterInvoker<T> invoker)
public ClusterInvoker<T> getServiceDiscoveryInvoker()
public void setServiceDiscoveryInvoker(ClusterInvoker<T> serviceDiscoveryInvoker)
public ClusterInvoker<T> getCurrentAvailableInvoker()
public void reRefer(URL newSubscribeUrl)
reRefer 在接口中 MigrationClusterInvoker<T>public boolean migrateToForceInterfaceInvoker(MigrationRule newRule)
public boolean migrateToForceApplicationInvoker(MigrationRule newRule)
public void migrateToApplicationFirstInvoker(MigrationRule newRule)
public org.apache.dubbo.rpc.Result invoke(org.apache.dubbo.rpc.Invocation invocation)
throws org.apache.dubbo.rpc.RpcException
invoke 在接口中 org.apache.dubbo.rpc.Invoker<T>org.apache.dubbo.rpc.RpcExceptionpublic boolean isAvailable()
isAvailable 在接口中 Nodepublic URL getRegistryUrl()
getRegistryUrl 在接口中 ClusterInvoker<T>public Directory<T> getDirectory()
getDirectory 在接口中 ClusterInvoker<T>public boolean isDestroyed()
isDestroyed 在接口中 ClusterInvoker<T>public boolean isServiceDiscovery()
isServiceDiscovery 在接口中 MigrationClusterInvoker<T>isServiceDiscovery 在接口中 ClusterInvoker<T>public MigrationStep getMigrationStep()
getMigrationStep 在接口中 MigrationClusterInvoker<T>public void setMigrationStep(MigrationStep step)
setMigrationStep 在接口中 MigrationClusterInvoker<T>public MigrationRule getMigrationRule()
getMigrationRule 在接口中 MigrationClusterInvoker<T>public void setMigrationRule(MigrationRule rule)
setMigrationRule 在接口中 MigrationClusterInvoker<T>public boolean checkInvokerAvailable(ClusterInvoker<T> invoker)
public Cluster getCluster()
public URL getConsumerUrl()
Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.