Class MigrationInvoker<T>
java.lang.Object
org.apache.dubbo.registry.client.migration.MigrationInvoker<T>
- All Implemented Interfaces:
Node,MigrationClusterInvoker<T>,ClusterInvoker<T>,org.apache.dubbo.rpc.Invoker<T>
- Direct Known Subclasses:
ServiceDiscoveryMigrationInvoker
-
Constructor Summary
ConstructorsConstructorDescriptionMigrationInvoker(RegistryProtocol registryProtocol, Cluster cluster, Registry registry, Class<T> type, URL url, URL consumerUrl) MigrationInvoker(ClusterInvoker<T> invoker, ClusterInvoker<T> serviceDiscoveryInvoker, RegistryProtocol registryProtocol, Cluster cluster, Registry registry, Class<T> type, URL url, URL consumerUrl) -
Method Summary
Modifier and TypeMethodDescriptionbooleancheckInvokerAvailable(ClusterInvoker<T> invoker) voiddestroy()getUrl()org.apache.dubbo.rpc.Resultinvoke(org.apache.dubbo.rpc.Invocation invocation) booleanbooleanbooleanvoidbooleanbooleanvoidvoidsetInvoker(ClusterInvoker<T> invoker) voidvoidvoidsetServiceDiscoveryInvoker(ClusterInvoker<T> serviceDiscoveryInvoker) toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.dubbo.rpc.cluster.ClusterInvoker
hasProxyInvokers
-
Constructor Details
-
MigrationInvoker
-
MigrationInvoker
public MigrationInvoker(ClusterInvoker<T> invoker, ClusterInvoker<T> serviceDiscoveryInvoker, RegistryProtocol registryProtocol, Cluster cluster, Registry registry, Class<T> type, URL url, URL consumerUrl)
-
-
Method Details
-
getInvoker
-
setInvoker
-
getServiceDiscoveryInvoker
-
setServiceDiscoveryInvoker
-
getCurrentAvailableInvoker
-
getInterface
- Specified by:
getInterfacein interfaceorg.apache.dubbo.rpc.Invoker<T>
-
reRefer
- Specified by:
reReferin interfaceMigrationClusterInvoker<T>
-
migrateToForceInterfaceInvoker
- Specified by:
migrateToForceInterfaceInvokerin interfaceMigrationClusterInvoker<T>
-
migrateToForceApplicationInvoker
- Specified by:
migrateToForceApplicationInvokerin interfaceMigrationClusterInvoker<T>
-
migrateToApplicationFirstInvoker
- Specified by:
migrateToApplicationFirstInvokerin interfaceMigrationClusterInvoker<T>
-
invoke
public org.apache.dubbo.rpc.Result invoke(org.apache.dubbo.rpc.Invocation invocation) throws org.apache.dubbo.rpc.RpcException - Specified by:
invokein interfaceorg.apache.dubbo.rpc.Invoker<T>- Throws:
org.apache.dubbo.rpc.RpcException
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein interfaceNode
-
destroy
public void destroy() -
getUrl
-
getRegistryUrl
- Specified by:
getRegistryUrlin interfaceClusterInvoker<T>
-
getDirectory
- Specified by:
getDirectoryin interfaceClusterInvoker<T>
-
isDestroyed
public boolean isDestroyed()- Specified by:
isDestroyedin interfaceClusterInvoker<T>
-
isServiceDiscovery
public boolean isServiceDiscovery()- Specified by:
isServiceDiscoveryin interfaceClusterInvoker<T>- Specified by:
isServiceDiscoveryin interfaceMigrationClusterInvoker<T>
-
getMigrationStep
- Specified by:
getMigrationStepin interfaceMigrationClusterInvoker<T>
-
setMigrationStep
- Specified by:
setMigrationStepin interfaceMigrationClusterInvoker<T>
-
getMigrationRule
- Specified by:
getMigrationRulein interfaceMigrationClusterInvoker<T>
-
setMigrationRule
- Specified by:
setMigrationRulein interfaceMigrationClusterInvoker<T>
-
checkInvokerAvailable
-
getCluster
-
getConsumerUrl
-
toString
-