@Activate public class MigrationRuleListener extends Object implements RegistryProtocolListener, ConfigurationListener
| Constructor and Description |
|---|
MigrationRuleListener(ModuleModel moduleModel) |
| Modifier and Type | Method and Description |
|---|---|
Map<MigrationInvoker,MigrationRuleHandler> |
getHandlers() |
MigrationRule |
getRule() |
void |
onDestroy()
Notify RegistryProtocol's listeners when the protocol is destroyed
|
void |
onExport(RegistryProtocol registryProtocol,
org.apache.dubbo.rpc.Exporter<?> exporter)
Notify RegistryProtocol's listeners when a service is registered
|
void |
onRefer(RegistryProtocol registryProtocol,
ClusterInvoker<?> invoker,
URL consumerUrl,
URL registryURL)
Notify RegistryProtocol's listeners when a service is subscribed
|
void |
process(ConfigChangedEvent event) |
void |
setRawRule(String rawRule) |
public MigrationRuleListener(ModuleModel moduleModel)
public void process(ConfigChangedEvent event)
process in interface ConfigurationListenerpublic void setRawRule(String rawRule)
public void onExport(RegistryProtocol registryProtocol, org.apache.dubbo.rpc.Exporter<?> exporter)
RegistryProtocolListeneronExport in interface RegistryProtocolListenerregistryProtocol - RegistryProtocol instanceexporter - exporterRegistryProtocol.export(org.apache.dubbo.rpc.Invoker)public void onRefer(RegistryProtocol registryProtocol, ClusterInvoker<?> invoker, URL consumerUrl, URL registryURL)
RegistryProtocolListeneronRefer in interface RegistryProtocolListenerregistryProtocol - RegistryProtocol instanceinvoker - invokerRegistryProtocol.refer(Class, URL)public void onDestroy()
RegistryProtocolListeneronDestroy in interface RegistryProtocolListenerpublic Map<MigrationInvoker,MigrationRuleHandler> getHandlers()
public MigrationRule getRule()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.