public abstract class AbstractBindingBrokerImplModule extends AbstractModule<AbstractBindingBrokerImplModule> implements BindingBrokerImplModuleMXBean, BindingAwareBrokerServiceInterface, RpcProviderRegistryServiceInterface
Modifier and Type | Field and Description |
---|---|
static JmxAttribute |
bindingMappingServiceJmxAttribute |
static JmxAttribute |
domAsyncBrokerJmxAttribute |
static JmxAttribute |
notificationPublishServiceJmxAttribute |
static JmxAttribute |
notificationServiceJmxAttribute |
static JmxAttribute |
rootDataBrokerJmxAttribute |
dependencyResolver, identifier
Constructor and Description |
---|
AbstractBindingBrokerImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver) |
AbstractBindingBrokerImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver,
AbstractBindingBrokerImplModule oldModule,
AutoCloseable oldInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReuseInstance(AbstractBindingBrokerImplModule oldModule)
Users are welcome to override this method to provide custom logic for
advanced reusability detection.
|
protected void |
customValidation() |
boolean |
equals(Object o) |
ObjectName |
getBindingMappingService() |
protected BindingToNormalizedNodeCodec |
getBindingMappingServiceDependency() |
ObjectName |
getDomAsyncBroker() |
protected Broker |
getDomAsyncBrokerDependency() |
org.slf4j.Logger |
getLogger() |
ObjectName |
getNotificationPublishService() |
protected NotificationPublishService |
getNotificationPublishServiceDependency() |
ObjectName |
getNotificationService() |
protected NotificationProviderService |
getNotificationServiceDependency() |
ObjectName |
getRootDataBroker() |
protected DataBroker |
getRootDataBrokerDependency() |
int |
hashCode() |
boolean |
isSame(AbstractBindingBrokerImplModule 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 |
setBindingMappingService(ObjectName bindingMappingService) |
void |
setDomAsyncBroker(ObjectName domAsyncBroker) |
void |
setNotificationPublishService(ObjectName notificationPublishService) |
void |
setNotificationService(ObjectName notificationService) |
void |
setRootDataBroker(ObjectName rootDataBroker) |
void |
validate()
This method will be called as first phase in two phase commit.
|
canReuse, createInstance, getIdentifier, getInstance, setCanReuseInstance
public static final JmxAttribute notificationPublishServiceJmxAttribute
public static final JmxAttribute domAsyncBrokerJmxAttribute
public static final JmxAttribute rootDataBrokerJmxAttribute
public static final JmxAttribute bindingMappingServiceJmxAttribute
public static final JmxAttribute notificationServiceJmxAttribute
public AbstractBindingBrokerImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver)
public AbstractBindingBrokerImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, AbstractBindingBrokerImplModule oldModule, AutoCloseable oldInstance)
public void validate()
Module
Module.getInstance()
on
dependent Module
because it would destroy separation between
validation and commit phase.protected void customValidation()
protected final NotificationPublishService getNotificationPublishServiceDependency()
protected final Broker getDomAsyncBrokerDependency()
protected final DataBroker getRootDataBrokerDependency()
protected final BindingToNormalizedNodeCodec getBindingMappingServiceDependency()
protected final NotificationProviderService getNotificationServiceDependency()
protected final void resolveDependencies()
AbstractModule
resolveDependencies
in class AbstractModule<AbstractBindingBrokerImplModule>
public boolean canReuseInstance(AbstractBindingBrokerImplModule oldModule)
AbstractModule
canReuseInstance
in class AbstractModule<AbstractBindingBrokerImplModule>
oldModule
- old instance of a Modulepublic AutoCloseable reuseInstance(AutoCloseable oldInstance)
AbstractModule
reuseInstance
in class AbstractModule<AbstractBindingBrokerImplModule>
oldInstance
- old instance of a class wrapped by the modulepublic boolean isSame(AbstractBindingBrokerImplModule other)
public ObjectName getNotificationPublishService()
getNotificationPublishService
in interface BindingBrokerImplModuleMXBean
public void setNotificationPublishService(ObjectName notificationPublishService)
setNotificationPublishService
in interface BindingBrokerImplModuleMXBean
public ObjectName getDomAsyncBroker()
getDomAsyncBroker
in interface BindingBrokerImplModuleMXBean
public void setDomAsyncBroker(ObjectName domAsyncBroker)
setDomAsyncBroker
in interface BindingBrokerImplModuleMXBean
public ObjectName getRootDataBroker()
getRootDataBroker
in interface BindingBrokerImplModuleMXBean
public void setRootDataBroker(ObjectName rootDataBroker)
setRootDataBroker
in interface BindingBrokerImplModuleMXBean
public ObjectName getBindingMappingService()
getBindingMappingService
in interface BindingBrokerImplModuleMXBean
public void setBindingMappingService(ObjectName bindingMappingService)
setBindingMappingService
in interface BindingBrokerImplModuleMXBean
public ObjectName getNotificationService()
getNotificationService
in interface BindingBrokerImplModuleMXBean
public void setNotificationService(ObjectName notificationService)
setNotificationService
in interface BindingBrokerImplModuleMXBean
public org.slf4j.Logger getLogger()
Copyright © 2019 OpenDaylight. All rights reserved.