类 MigrationInvoker<T>
- java.lang.Object
-
- org.apache.dubbo.registry.client.migration.MigrationInvoker<T>
-
- 所有已实现的接口:
Node,ClusterInvoker<T>,MigrationClusterInvoker<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)
-
方法概要
-
-
-
构造器详细资料
-
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)
-
getInterface
public Class<T> getInterface()
从接口复制的说明:Invokerget service interface.- 指定者:
getInterface在接口中Invoker<T>- 返回:
- service interface.
-
migrateToServiceDiscoveryInvoker
public void migrateToServiceDiscoveryInvoker(boolean forceMigrate)
-
reRefer
public void reRefer(URL newSubscribeUrl)
- 指定者:
reRefer在接口中MigrationClusterInvoker<T>
-
fallbackToInterfaceInvoker
public void fallbackToInterfaceInvoker()
- 指定者:
fallbackToInterfaceInvoker在接口中MigrationClusterInvoker<T>
-
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>
-
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>
-
-