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) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasProxyInvokerspublic 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 Class<T> getInterface()
getInterface in interface org.apache.dubbo.rpc.Invoker<T>public void reRefer(URL newSubscribeUrl)
reRefer in interface MigrationClusterInvoker<T>public boolean migrateToForceInterfaceInvoker(MigrationRule newRule)
migrateToForceInterfaceInvoker in interface MigrationClusterInvoker<T>public boolean migrateToForceApplicationInvoker(MigrationRule newRule)
migrateToForceApplicationInvoker in interface MigrationClusterInvoker<T>public void migrateToApplicationFirstInvoker(MigrationRule newRule)
migrateToApplicationFirstInvoker 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 boolean isServiceDiscovery()
isServiceDiscovery in interface MigrationClusterInvoker<T>isServiceDiscovery in interface ClusterInvoker<T>public MigrationStep getMigrationStep()
getMigrationStep in interface MigrationClusterInvoker<T>public void setMigrationStep(MigrationStep step)
setMigrationStep in interface MigrationClusterInvoker<T>public MigrationRule getMigrationRule()
getMigrationRule in interface MigrationClusterInvoker<T>public void setMigrationRule(MigrationRule rule)
setMigrationRule in interface MigrationClusterInvoker<T>public boolean checkInvokerAvailable(ClusterInvoker<T> invoker)
public Cluster getCluster()
public URL getConsumerUrl()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.