类 MigrationInvoker<T>
- java.lang.Object
-
- org.apache.dubbo.registry.client.migration.MigrationInvoker<T>
-
- 所有已实现的接口:
Node,ClusterInvoker<T>,MigrationClusterInvoker<T>,org.apache.dubbo.rpc.Invoker<T>
- 直接已知子类:
ServiceDiscoveryMigrationInvoker
public class MigrationInvoker<T> extends Object implements MigrationClusterInvoker<T>
-
-
构造器概要
构造器 构造器 说明 MigrationInvoker(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)
-
方法概要
-
-
-
构造器详细资料
-
MigrationInvoker
public MigrationInvoker(RegistryProtocol registryProtocol, Cluster cluster, Registry registry, Class<T> type, URL url, URL consumerUrl)
-
MigrationInvoker
public MigrationInvoker(ClusterInvoker<T> invoker, ClusterInvoker<T> serviceDiscoveryInvoker, RegistryProtocol registryProtocol, Cluster cluster, Registry registry, Class<T> type, URL url, URL consumerUrl)
-
-
方法详细资料
-
getInvoker
public ClusterInvoker<T> getInvoker()
-
setInvoker
public void setInvoker(ClusterInvoker<T> invoker)
-
getServiceDiscoveryInvoker
public ClusterInvoker<T> getServiceDiscoveryInvoker()
-
setServiceDiscoveryInvoker
public void setServiceDiscoveryInvoker(ClusterInvoker<T> serviceDiscoveryInvoker)
-
migrateToServiceDiscoveryInvoker
public void migrateToServiceDiscoveryInvoker(boolean forceMigrate)
-
reRefer
public void reRefer(URL newSubscribeUrl)
- 指定者:
reRefer在接口中MigrationClusterInvoker<T>
-
fallbackToInterfaceInvoker
public void fallbackToInterfaceInvoker()
- 指定者:
fallbackToInterfaceInvoker在接口中MigrationClusterInvoker<T>
-
invoke
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.RpcException
-
isAvailable
public boolean isAvailable()
- 指定者:
isAvailable在接口中Node
-
getRegistryUrl
public URL getRegistryUrl()
- 指定者:
getRegistryUrl在接口中ClusterInvoker<T>
-
getDirectory
public Directory<T> getDirectory()
- 指定者:
getDirectory在接口中ClusterInvoker<T>
-
isDestroyed
public boolean isDestroyed()
- 指定者:
isDestroyed在接口中ClusterInvoker<T>
-
invokersChanged
public AtomicBoolean invokersChanged()
- 指定者:
invokersChanged在接口中MigrationClusterInvoker<T>
-
destroyServiceDiscoveryInvoker
public void destroyServiceDiscoveryInvoker(ClusterInvoker<?> serviceDiscoveryInvoker)
-
discardServiceDiscoveryInvokerAddress
public void discardServiceDiscoveryInvokerAddress(ClusterInvoker<?> serviceDiscoveryInvoker)
-
refreshServiceDiscoveryInvoker
public void refreshServiceDiscoveryInvoker()
-
refreshInterfaceInvoker
public void refreshInterfaceInvoker()
- 指定者:
refreshInterfaceInvoker在接口中MigrationClusterInvoker<T>
-
destroyInterfaceInvoker
public void destroyInterfaceInvoker(ClusterInvoker<T> invoker)
- 指定者:
destroyInterfaceInvoker在接口中MigrationClusterInvoker<T>
-
discardInterfaceInvokerAddress
public void discardInterfaceInvokerAddress(ClusterInvoker<T> invoker)
-
checkInvokerAvailable
public boolean checkInvokerAvailable(ClusterInvoker<T> invoker)
-
isServiceInvoker
public boolean isServiceInvoker()
- 指定者:
isServiceInvoker在接口中MigrationClusterInvoker<T>
-
getMigrationRule
public MigrationRule getMigrationRule()
- 指定者:
getMigrationRule在接口中MigrationClusterInvoker<T>
-
setMigrationRule
public void setMigrationRule(MigrationRule rule)
- 指定者:
setMigrationRule在接口中MigrationClusterInvoker<T>
-
isMigrationMultiRegistry
public boolean isMigrationMultiRegistry()
- 指定者:
isMigrationMultiRegistry在接口中MigrationClusterInvoker<T>
-
-