public abstract class AbstractNotificationBrokerImplModule extends AbstractModule<AbstractNotificationBrokerImplModule> implements NotificationBrokerImplModuleMXBean, NotificationServiceServiceInterface, NotificationProviderServiceServiceInterface, RuntimeBeanRegistratorAwareModule
Modifier and Type | Field and Description |
---|---|
static JmxAttribute |
notificationAdapterJmxAttribute |
static JmxAttribute |
notificationPublishAdapterJmxAttribute |
dependencyResolver, identifier
Constructor and Description |
---|
AbstractNotificationBrokerImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver) |
AbstractNotificationBrokerImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver,
AbstractNotificationBrokerImplModule oldModule,
AutoCloseable oldInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReuseInstance(AbstractNotificationBrokerImplModule oldModule)
Users are welcome to override this method to provide custom logic for
advanced reusability detection.
|
protected void |
customValidation() |
boolean |
equals(Object o) |
org.slf4j.Logger |
getLogger() |
ObjectName |
getNotificationAdapter() |
protected NotificationService |
getNotificationAdapterDependency() |
ObjectName |
getNotificationPublishAdapter() |
protected NotificationPublishService |
getNotificationPublishAdapterDependency() |
NotificationBrokerImplRuntimeRegistrator |
getRootRuntimeBeanRegistratorWrapper() |
int |
hashCode() |
boolean |
isSame(AbstractNotificationBrokerImplModule other) |
protected void |
resolveDependencies()
Inject all the dependencies using dependency resolver instance.
|
AutoCloseable |
reuseInstance(AutoCloseable oldInstance)
By default the oldInstance is returned since this method is by default called
only if the oldModule had the same configuration and dependencies configured.
|
void |
setNotificationAdapter(ObjectName notificationAdapter) |
void |
setNotificationPublishAdapter(ObjectName notificationPublishAdapter) |
void |
setRuntimeBeanRegistrator(RootRuntimeBeanRegistrator rootRuntimeRegistrator)
Configuration framework will call this setter on all modules implementing
this interface.
|
void |
validate()
This method will be called as first phase in two phase commit.
|
canReuse, createInstance, getIdentifier, getInstance, setCanReuseInstance
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
canReuse, getInstance
public static final JmxAttribute notificationPublishAdapterJmxAttribute
public static final JmxAttribute notificationAdapterJmxAttribute
public AbstractNotificationBrokerImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver)
public AbstractNotificationBrokerImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, AbstractNotificationBrokerImplModule oldModule, AutoCloseable oldInstance)
public NotificationBrokerImplRuntimeRegistrator getRootRuntimeBeanRegistratorWrapper()
public void setRuntimeBeanRegistrator(RootRuntimeBeanRegistrator rootRuntimeRegistrator)
RuntimeBeanRegistratorAwareModule
Closeable.close()
method. Same
module will get the same registrator during reconfiguration.setRuntimeBeanRegistrator
in interface RuntimeBeanRegistratorAwareModule
rootRuntimeRegistrator
- root beanpublic void validate()
Module
Module.getInstance()
on
dependent Module
because it would destroy separation between
validation and commit phase.protected void customValidation()
protected final NotificationPublishService getNotificationPublishAdapterDependency()
protected final NotificationService getNotificationAdapterDependency()
protected final void resolveDependencies()
AbstractModule
resolveDependencies
in class AbstractModule<AbstractNotificationBrokerImplModule>
public boolean canReuseInstance(AbstractNotificationBrokerImplModule oldModule)
AbstractModule
canReuseInstance
in class AbstractModule<AbstractNotificationBrokerImplModule>
oldModule
- old instance of a Modulepublic AutoCloseable reuseInstance(AutoCloseable oldInstance)
AbstractModule
reuseInstance
in class AbstractModule<AbstractNotificationBrokerImplModule>
oldInstance
- old instance of a class wrapped by the modulepublic boolean isSame(AbstractNotificationBrokerImplModule other)
public ObjectName getNotificationPublishAdapter()
getNotificationPublishAdapter
in interface NotificationBrokerImplModuleMXBean
public void setNotificationPublishAdapter(ObjectName notificationPublishAdapter)
setNotificationPublishAdapter
in interface NotificationBrokerImplModuleMXBean
public ObjectName getNotificationAdapter()
getNotificationAdapter
in interface NotificationBrokerImplModuleMXBean
public void setNotificationAdapter(ObjectName notificationAdapter)
setNotificationAdapter
in interface NotificationBrokerImplModuleMXBean
public org.slf4j.Logger getLogger()
Copyright © 2019 OpenDaylight. All rights reserved.