类 MigrationInvoker<T>
- java.lang.Object
-
- org.apache.dubbo.registry.client.migration.MigrationInvoker<T>
-
- 所有已实现的接口:
Node,MigrationClusterInvoker<T>,ClusterInvoker<T>,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)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleancheckInvokerAvailable(ClusterInvoker<T> invoker)voiddestroy()destroy.ClusterInvoker<T>getCurrentAvailableInvoker()Directory<T>getDirectory()Class<T>getInterface()get service interface.ClusterInvoker<T>getInvoker()MigrationRulegetMigrationRule()MigrationStepgetMigrationStep()URLgetRegistryUrl()ClusterInvoker<T>getServiceDiscoveryInvoker()URLgetUrl()get url.Resultinvoke(Invocation invocation)invoke.booleanisAvailable()is available.booleanisDestroyed()booleanisServiceDiscovery()voidmigrateToApplicationFirstInvoker(MigrationRule newRule)booleanmigrateToForceApplicationInvoker(MigrationRule newRule)booleanmigrateToForceInterfaceInvoker(MigrationRule newRule)voidreRefer(URL newSubscribeUrl)voidsetInvoker(ClusterInvoker<T> invoker)voidsetMigrationRule(MigrationRule rule)voidsetMigrationStep(MigrationStep step)voidsetServiceDiscoveryInvoker(ClusterInvoker<T> serviceDiscoveryInvoker)-
从接口继承的方法 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()
-
getInterface
public Class<T> getInterface()
从接口复制的说明:Invokerget service interface.- 指定者:
getInterface在接口中Invoker<T>- 返回:
- service interface.
-
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 Result invoke(Invocation invocation) throws RpcException
从接口复制的说明:Invokerinvoke.- 指定者:
invoke在接口中Invoker<T>- 返回:
- result
- 抛出:
RpcException
-
isAvailable
public boolean isAvailable()
从接口复制的说明:Nodeis available.- 指定者:
isAvailable在接口中Node- 返回:
- available.
-
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)
-
-