public abstract class AbstractDomBrokerImplModule extends AbstractModule<AbstractDomBrokerImplModule> implements DomBrokerImplModuleMXBean, BrokerServiceInterface, RuntimeBeanRegistratorAwareModule
Modifier and Type | Field and Description |
---|---|
static JmxAttribute |
asyncDataBrokerJmxAttribute |
static JmxAttribute |
notificationQueueDepthJmxAttribute |
static JmxAttribute |
notificationQueueParkJmxAttribute |
static JmxAttribute |
notificationQueueSpinJmxAttribute |
static JmxAttribute |
rootSchemaServiceJmxAttribute |
dependencyResolver, identifier
Constructor and Description |
---|
AbstractDomBrokerImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver) |
AbstractDomBrokerImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver,
AbstractDomBrokerImplModule oldModule,
AutoCloseable oldInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReuseInstance(AbstractDomBrokerImplModule oldModule)
Users are welcome to override this method to provide custom logic for
advanced reusability detection.
|
protected void |
customValidation() |
boolean |
equals(Object o) |
ObjectName |
getAsyncDataBroker() |
protected DOMDataBroker |
getAsyncDataBrokerDependency() |
org.slf4j.Logger |
getLogger() |
MaxQueueDepth |
getNotificationQueueDepth() |
Integer |
getNotificationQueuePark() |
Integer |
getNotificationQueueSpin() |
DomBrokerImplRuntimeRegistrator |
getRootRuntimeBeanRegistratorWrapper() |
ObjectName |
getRootSchemaService() |
protected SchemaService |
getRootSchemaServiceDependency() |
int |
hashCode() |
boolean |
isSame(AbstractDomBrokerImplModule 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 |
setAsyncDataBroker(ObjectName asyncDataBroker) |
void |
setNotificationQueueDepth(MaxQueueDepth notificationQueueDepth)
Maximum number of elements in the notification queue, must be power-of-two.
|
void |
setNotificationQueuePark(Integer notificationQueuePark)
Number of milliseconds notification queue should park for new requests before blocking.
|
void |
setNotificationQueueSpin(Integer notificationQueueSpin)
Number of milliseconds notification queue should spin for new requests before parking.
|
void |
setRootSchemaService(ObjectName rootSchemaService) |
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 notificationQueueSpinJmxAttribute
public static final JmxAttribute rootSchemaServiceJmxAttribute
public static final JmxAttribute notificationQueueParkJmxAttribute
public static final JmxAttribute notificationQueueDepthJmxAttribute
public static final JmxAttribute asyncDataBrokerJmxAttribute
public AbstractDomBrokerImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver)
public AbstractDomBrokerImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, AbstractDomBrokerImplModule oldModule, AutoCloseable oldInstance)
public DomBrokerImplRuntimeRegistrator 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 SchemaService getRootSchemaServiceDependency()
protected final DOMDataBroker getAsyncDataBrokerDependency()
protected final void resolveDependencies()
AbstractModule
resolveDependencies
in class AbstractModule<AbstractDomBrokerImplModule>
public boolean canReuseInstance(AbstractDomBrokerImplModule oldModule)
AbstractModule
canReuseInstance
in class AbstractModule<AbstractDomBrokerImplModule>
oldModule
- old instance of a Modulepublic AutoCloseable reuseInstance(AutoCloseable oldInstance)
AbstractModule
reuseInstance
in class AbstractModule<AbstractDomBrokerImplModule>
oldInstance
- old instance of a class wrapped by the modulepublic boolean isSame(AbstractDomBrokerImplModule other)
public Integer getNotificationQueueSpin()
getNotificationQueueSpin
in interface DomBrokerImplModuleMXBean
public void setNotificationQueueSpin(Integer notificationQueueSpin)
setNotificationQueueSpin
in interface DomBrokerImplModuleMXBean
public ObjectName getRootSchemaService()
getRootSchemaService
in interface DomBrokerImplModuleMXBean
public void setRootSchemaService(ObjectName rootSchemaService)
setRootSchemaService
in interface DomBrokerImplModuleMXBean
public Integer getNotificationQueuePark()
getNotificationQueuePark
in interface DomBrokerImplModuleMXBean
public void setNotificationQueuePark(Integer notificationQueuePark)
setNotificationQueuePark
in interface DomBrokerImplModuleMXBean
public MaxQueueDepth getNotificationQueueDepth()
getNotificationQueueDepth
in interface DomBrokerImplModuleMXBean
public void setNotificationQueueDepth(MaxQueueDepth notificationQueueDepth)
setNotificationQueueDepth
in interface DomBrokerImplModuleMXBean
public ObjectName getAsyncDataBroker()
getAsyncDataBroker
in interface DomBrokerImplModuleMXBean
public void setAsyncDataBroker(ObjectName asyncDataBroker)
setAsyncDataBroker
in interface DomBrokerImplModuleMXBean
public org.slf4j.Logger getLogger()
Copyright © 2019 OpenDaylight. All rights reserved.