public class MigrationInvoker<T> extends Object implements MigrationClusterInvoker<T>
| Constructor and Description |
|---|
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) |
public 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 Class<T> getInterface()
getInterface in interface org.apache.dubbo.rpc.Invoker<T>public void migrateToServiceDiscoveryInvoker(boolean forceMigrate)
migrateToServiceDiscoveryInvoker in interface MigrationClusterInvoker<T>public void reRefer(URL newSubscribeUrl)
reRefer in interface MigrationClusterInvoker<T>public void fallbackToInterfaceInvoker()
fallbackToInterfaceInvoker in interface MigrationClusterInvoker<T>public org.apache.dubbo.rpc.Result invoke(org.apache.dubbo.rpc.Invocation invocation)
throws org.apache.dubbo.rpc.RpcException
invoke in interface org.apache.dubbo.rpc.Invoker<T>org.apache.dubbo.rpc.RpcExceptionpublic boolean isAvailable()
isAvailable in interface Nodepublic URL getRegistryUrl()
getRegistryUrl in interface ClusterInvoker<T>public Directory<T> getDirectory()
getDirectory in interface ClusterInvoker<T>public boolean isDestroyed()
isDestroyed in interface ClusterInvoker<T>public AtomicBoolean invokersChanged()
invokersChanged in interface MigrationClusterInvoker<T>public void destroyServiceDiscoveryInvoker(ClusterInvoker<?> serviceDiscoveryInvoker)
destroyServiceDiscoveryInvoker in interface MigrationClusterInvoker<T>public void discardServiceDiscoveryInvokerAddress(ClusterInvoker<?> serviceDiscoveryInvoker)
discardServiceDiscoveryInvokerAddress in interface MigrationClusterInvoker<T>public void refreshServiceDiscoveryInvoker()
refreshServiceDiscoveryInvoker in interface MigrationClusterInvoker<T>public void refreshInterfaceInvoker()
refreshInterfaceInvoker in interface MigrationClusterInvoker<T>public void destroyInterfaceInvoker(ClusterInvoker<T> invoker)
destroyInterfaceInvoker in interface MigrationClusterInvoker<T>public void discardInterfaceInvokerAddress(ClusterInvoker<T> invoker)
discardInterfaceInvokerAddress in interface MigrationClusterInvoker<T>public boolean checkInvokerAvailable(ClusterInvoker<T> invoker)
public boolean isServiceInvoker()
isServiceInvoker in interface MigrationClusterInvoker<T>public MigrationRule getMigrationRule()
getMigrationRule in interface MigrationClusterInvoker<T>public void setMigrationRule(MigrationRule rule)
setMigrationRule in interface MigrationClusterInvoker<T>public boolean isMigrationMultiRegistry()
isMigrationMultiRegistry in interface MigrationClusterInvoker<T>Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.