类 MigrationInvoker<T>
- java.lang.Object
-
- org.apache.dubbo.registry.client.migration.MigrationInvoker<T>
-
- 所有已实现的接口:
Node,MigrationClusterInvoker<T>,ClusterInvoker<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)
-
方法概要
-
从接口继承的方法 org.apache.dubbo.rpc.cluster.ClusterInvoker
hasProxyInvokers
-
-
-
-
构造器详细资料
-
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)
-
getCurrentAvailableInvoker
public ClusterInvoker<T> getCurrentAvailableInvoker()
-
reRefer
public void reRefer(URL newSubscribeUrl)
- 指定者:
reRefer在接口中MigrationClusterInvoker<T>
-
migrateToForceInterfaceInvoker
public boolean migrateToForceInterfaceInvoker(MigrationRule newRule)
-
migrateToForceApplicationInvoker
public boolean migrateToForceApplicationInvoker(MigrationRule newRule)
-
migrateToApplicationFirstInvoker
public void migrateToApplicationFirstInvoker(MigrationRule newRule)
-
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>
-
isServiceDiscovery
public boolean isServiceDiscovery()
- 指定者:
isServiceDiscovery在接口中ClusterInvoker<T>- 指定者:
isServiceDiscovery在接口中MigrationClusterInvoker<T>
-
getMigrationStep
public MigrationStep getMigrationStep()
- 指定者:
getMigrationStep在接口中MigrationClusterInvoker<T>
-
setMigrationStep
public void setMigrationStep(MigrationStep step)
- 指定者:
setMigrationStep在接口中MigrationClusterInvoker<T>
-
getMigrationRule
public MigrationRule getMigrationRule()
- 指定者:
getMigrationRule在接口中MigrationClusterInvoker<T>
-
setMigrationRule
public void setMigrationRule(MigrationRule rule)
- 指定者:
setMigrationRule在接口中MigrationClusterInvoker<T>
-
checkInvokerAvailable
public boolean checkInvokerAvailable(ClusterInvoker<T> invoker)
-
getCluster
public Cluster getCluster()
-
getConsumerUrl
public URL getConsumerUrl()
-
-