public abstract class AbstractBindingAsyncDataBrokerImplModule extends AbstractModule<AbstractBindingAsyncDataBrokerImplModule> implements BindingAsyncDataBrokerImplModuleMXBean, DataBrokerServiceInterface
Modifier and Type | Field and Description |
---|---|
static JmxAttribute |
bindingMappingServiceJmxAttribute |
static JmxAttribute |
domAsyncBrokerJmxAttribute |
static JmxAttribute |
schemaServiceJmxAttribute |
dependencyResolver, identifier
Constructor and Description |
---|
AbstractBindingAsyncDataBrokerImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver) |
AbstractBindingAsyncDataBrokerImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver,
AbstractBindingAsyncDataBrokerImplModule oldModule,
AutoCloseable oldInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReuseInstance(AbstractBindingAsyncDataBrokerImplModule 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 DOMDataBroker |
getDomAsyncBrokerDependency() |
org.slf4j.Logger |
getLogger() |
ObjectName |
getSchemaService() |
protected SchemaService |
getSchemaServiceDependency() |
int |
hashCode() |
boolean |
isSame(AbstractBindingAsyncDataBrokerImplModule 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 |
setSchemaService(ObjectName schemaService) |
void |
validate()
This method will be called as first phase in two phase commit.
|
canReuse, createInstance, getIdentifier, getInstance, setCanReuseInstance
public static final JmxAttribute domAsyncBrokerJmxAttribute
public static final JmxAttribute schemaServiceJmxAttribute
public static final JmxAttribute bindingMappingServiceJmxAttribute
public AbstractBindingAsyncDataBrokerImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver)
public AbstractBindingAsyncDataBrokerImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, AbstractBindingAsyncDataBrokerImplModule 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 DOMDataBroker getDomAsyncBrokerDependency()
protected final SchemaService getSchemaServiceDependency()
protected final BindingToNormalizedNodeCodec getBindingMappingServiceDependency()
protected final void resolveDependencies()
AbstractModule
resolveDependencies
in class AbstractModule<AbstractBindingAsyncDataBrokerImplModule>
public boolean canReuseInstance(AbstractBindingAsyncDataBrokerImplModule oldModule)
AbstractModule
canReuseInstance
in class AbstractModule<AbstractBindingAsyncDataBrokerImplModule>
oldModule
- old instance of a Modulepublic AutoCloseable reuseInstance(AutoCloseable oldInstance)
AbstractModule
reuseInstance
in class AbstractModule<AbstractBindingAsyncDataBrokerImplModule>
oldInstance
- old instance of a class wrapped by the modulepublic boolean isSame(AbstractBindingAsyncDataBrokerImplModule other)
public ObjectName getDomAsyncBroker()
getDomAsyncBroker
in interface BindingAsyncDataBrokerImplModuleMXBean
public void setDomAsyncBroker(ObjectName domAsyncBroker)
setDomAsyncBroker
in interface BindingAsyncDataBrokerImplModuleMXBean
public ObjectName getSchemaService()
getSchemaService
in interface BindingAsyncDataBrokerImplModuleMXBean
public void setSchemaService(ObjectName schemaService)
setSchemaService
in interface BindingAsyncDataBrokerImplModuleMXBean
public ObjectName getBindingMappingService()
getBindingMappingService
in interface BindingAsyncDataBrokerImplModuleMXBean
public void setBindingMappingService(ObjectName bindingMappingService)
setBindingMappingService
in interface BindingAsyncDataBrokerImplModuleMXBean
public org.slf4j.Logger getLogger()
Copyright © 2019 OpenDaylight. All rights reserved.