public abstract class AbstractNetconfTestImplModule extends AbstractModule<AbstractNetconfTestImplModule> implements NetconfTestImplModuleMXBean, CheckedAutoCloseableServiceInterface, RuntimeBeanRegistratorAwareModule
dependencyResolver, identifier
Constructor and Description |
---|
AbstractNetconfTestImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver) |
AbstractNetconfTestImplModule(ModuleIdentifier identifier,
DependencyResolver dependencyResolver,
AbstractNetconfTestImplModule oldModule,
AutoCloseable oldInstance) |
Modifier and Type | Method and Description |
---|---|
boolean |
canReuseInstance(AbstractNetconfTestImplModule oldModule)
Users are welcome to override this method to provide custom logic for
advanced reusability detection.
|
protected void |
customValidation() |
boolean |
equals(Object o) |
byte[] |
getBinaryLeaf() |
List<ComplexList> |
getComplexList() |
DtoC |
getDtoC() |
DtoD |
getDtoD() |
ExtendOnce |
getExtended() |
ExtendEnum |
getExtendedEnum() |
ExtendTwice |
getExtendedTwice() |
FromGrouping |
getFromGrouping() |
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress |
getIp() |
org.slf4j.Logger |
getLogger() |
List<Peers> |
getPeers() |
NetconfTestImplRuntimeRegistrator |
getRootRuntimeBeanRegistratorWrapper() |
BigInteger |
getSimpleBigInteger() |
Boolean |
getSimpleBoolean() |
Byte |
getSimpleByte() |
Long |
getSimpleInt() |
List<Integer> |
getSimpleList() |
Long |
getSimpleLong() |
Long |
getSimpleLong2() |
Short |
getSimpleShort() |
Integer |
getSimpleTest() |
BigDecimal |
getSleepFactor() |
ObjectName |
getTestingDep() |
protected CheckedAutoCloseable |
getTestingDepDependency() |
List<ObjectName> |
getTestingDeps() |
protected List<CheckedAutoCloseable> |
getTestingDepsDependency() |
String |
getType() |
UnionTest |
getUnionTestAttr() |
int |
hashCode() |
boolean |
isSame(AbstractNetconfTestImplModule 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 |
setBinaryLeaf(byte[] binaryLeaf) |
void |
setComplexList(List<ComplexList> complexList) |
void |
setDtoC(DtoC dtoC) |
void |
setDtoD(DtoD dtoD) |
void |
setExtended(ExtendOnce extended) |
void |
setExtendedEnum(ExtendEnum extendedEnum) |
void |
setExtendedTwice(ExtendTwice extendedTwice) |
void |
setFromGrouping(FromGrouping fromGrouping) |
void |
setIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ip) |
void |
setPeers(List<Peers> peers) |
void |
setRuntimeBeanRegistrator(RootRuntimeBeanRegistrator rootRuntimeRegistrator)
Configuration framework will call this setter on all modules implementing
this interface.
|
void |
setSimpleBigInteger(BigInteger simpleBigInteger) |
void |
setSimpleBoolean(Boolean simpleBoolean) |
void |
setSimpleByte(Byte simpleByte) |
void |
setSimpleInt(Long simpleInt) |
void |
setSimpleList(List<Integer> simpleList) |
void |
setSimpleLong(Long simpleLong) |
void |
setSimpleLong2(Long simpleLong2) |
void |
setSimpleShort(Short simpleShort) |
void |
setSimpleTest(Integer simpleTest) |
void |
setSleepFactor(BigDecimal sleepFactor) |
void |
setTestingDep(ObjectName testingDep) |
void |
setTestingDeps(List<ObjectName> testingDeps) |
void |
setType(String type) |
void |
setUnionTestAttr(UnionTest unionTestAttr) |
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 simpleTestJmxAttribute
public static final JmxAttribute dtoCJmxAttribute
public static final JmxAttribute complexListJmxAttribute
public static final JmxAttribute simpleByteJmxAttribute
public static final JmxAttribute extendedEnumJmxAttribute
public static final JmxAttribute ipJmxAttribute
public static final JmxAttribute unionTestAttrJmxAttribute
public static final JmxAttribute peersJmxAttribute
public static final JmxAttribute typeJmxAttribute
public static final JmxAttribute extendedTwiceJmxAttribute
public static final JmxAttribute extendedJmxAttribute
public static final JmxAttribute testingDepsJmxAttribute
public static final JmxAttribute simpleListJmxAttribute
public static final JmxAttribute fromGroupingJmxAttribute
public static final JmxAttribute dtoDJmxAttribute
public static final JmxAttribute simpleBooleanJmxAttribute
public static final JmxAttribute simpleShortJmxAttribute
public static final JmxAttribute simpleBigIntegerJmxAttribute
public static final JmxAttribute sleepFactorJmxAttribute
public static final JmxAttribute testingDepJmxAttribute
public static final JmxAttribute binaryLeafJmxAttribute
public static final JmxAttribute simpleIntJmxAttribute
public static final JmxAttribute simpleLongJmxAttribute
public static final JmxAttribute simpleLong2JmxAttribute
public AbstractNetconfTestImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver)
public AbstractNetconfTestImplModule(ModuleIdentifier identifier, DependencyResolver dependencyResolver, AbstractNetconfTestImplModule oldModule, AutoCloseable oldInstance)
public NetconfTestImplRuntimeRegistrator 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 List<CheckedAutoCloseable> getTestingDepsDependency()
protected final CheckedAutoCloseable getTestingDepDependency()
protected final void resolveDependencies()
AbstractModule
resolveDependencies
in class AbstractModule<AbstractNetconfTestImplModule>
public boolean canReuseInstance(AbstractNetconfTestImplModule oldModule)
AbstractModule
canReuseInstance
in class AbstractModule<AbstractNetconfTestImplModule>
oldModule
- old instance of a Modulepublic AutoCloseable reuseInstance(AutoCloseable oldInstance)
AbstractModule
reuseInstance
in class AbstractModule<AbstractNetconfTestImplModule>
oldInstance
- old instance of a class wrapped by the modulepublic boolean isSame(AbstractNetconfTestImplModule other)
public Integer getSimpleTest()
getSimpleTest
in interface NetconfTestImplModuleMXBean
public void setSimpleTest(Integer simpleTest)
setSimpleTest
in interface NetconfTestImplModuleMXBean
public DtoC getDtoC()
getDtoC
in interface NetconfTestImplModuleMXBean
public void setDtoC(DtoC dtoC)
setDtoC
in interface NetconfTestImplModuleMXBean
public List<ComplexList> getComplexList()
getComplexList
in interface NetconfTestImplModuleMXBean
public void setComplexList(List<ComplexList> complexList)
setComplexList
in interface NetconfTestImplModuleMXBean
public Byte getSimpleByte()
getSimpleByte
in interface NetconfTestImplModuleMXBean
public void setSimpleByte(Byte simpleByte)
setSimpleByte
in interface NetconfTestImplModuleMXBean
public ExtendEnum getExtendedEnum()
getExtendedEnum
in interface NetconfTestImplModuleMXBean
public void setExtendedEnum(ExtendEnum extendedEnum)
setExtendedEnum
in interface NetconfTestImplModuleMXBean
public org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress getIp()
getIp
in interface NetconfTestImplModuleMXBean
public void setIp(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddress ip)
setIp
in interface NetconfTestImplModuleMXBean
public UnionTest getUnionTestAttr()
getUnionTestAttr
in interface NetconfTestImplModuleMXBean
public void setUnionTestAttr(UnionTest unionTestAttr)
setUnionTestAttr
in interface NetconfTestImplModuleMXBean
public List<Peers> getPeers()
getPeers
in interface NetconfTestImplModuleMXBean
public void setPeers(List<Peers> peers)
setPeers
in interface NetconfTestImplModuleMXBean
public String getType()
getType
in interface NetconfTestImplModuleMXBean
public void setType(String type)
setType
in interface NetconfTestImplModuleMXBean
public ExtendTwice getExtendedTwice()
getExtendedTwice
in interface NetconfTestImplModuleMXBean
public void setExtendedTwice(ExtendTwice extendedTwice)
setExtendedTwice
in interface NetconfTestImplModuleMXBean
public ExtendOnce getExtended()
getExtended
in interface NetconfTestImplModuleMXBean
public void setExtended(ExtendOnce extended)
setExtended
in interface NetconfTestImplModuleMXBean
public List<ObjectName> getTestingDeps()
getTestingDeps
in interface NetconfTestImplModuleMXBean
public void setTestingDeps(List<ObjectName> testingDeps)
setTestingDeps
in interface NetconfTestImplModuleMXBean
public List<Integer> getSimpleList()
getSimpleList
in interface NetconfTestImplModuleMXBean
public void setSimpleList(List<Integer> simpleList)
setSimpleList
in interface NetconfTestImplModuleMXBean
public FromGrouping getFromGrouping()
getFromGrouping
in interface NetconfTestImplModuleMXBean
public void setFromGrouping(FromGrouping fromGrouping)
setFromGrouping
in interface NetconfTestImplModuleMXBean
public DtoD getDtoD()
getDtoD
in interface NetconfTestImplModuleMXBean
public void setDtoD(DtoD dtoD)
setDtoD
in interface NetconfTestImplModuleMXBean
public Boolean getSimpleBoolean()
getSimpleBoolean
in interface NetconfTestImplModuleMXBean
public void setSimpleBoolean(Boolean simpleBoolean)
setSimpleBoolean
in interface NetconfTestImplModuleMXBean
public Short getSimpleShort()
getSimpleShort
in interface NetconfTestImplModuleMXBean
public void setSimpleShort(Short simpleShort)
setSimpleShort
in interface NetconfTestImplModuleMXBean
public BigInteger getSimpleBigInteger()
getSimpleBigInteger
in interface NetconfTestImplModuleMXBean
public void setSimpleBigInteger(BigInteger simpleBigInteger)
setSimpleBigInteger
in interface NetconfTestImplModuleMXBean
public BigDecimal getSleepFactor()
getSleepFactor
in interface NetconfTestImplModuleMXBean
public void setSleepFactor(BigDecimal sleepFactor)
setSleepFactor
in interface NetconfTestImplModuleMXBean
public ObjectName getTestingDep()
getTestingDep
in interface NetconfTestImplModuleMXBean
public void setTestingDep(ObjectName testingDep)
setTestingDep
in interface NetconfTestImplModuleMXBean
public byte[] getBinaryLeaf()
getBinaryLeaf
in interface NetconfTestImplModuleMXBean
public void setBinaryLeaf(byte[] binaryLeaf)
setBinaryLeaf
in interface NetconfTestImplModuleMXBean
public Long getSimpleInt()
getSimpleInt
in interface NetconfTestImplModuleMXBean
public void setSimpleInt(Long simpleInt)
setSimpleInt
in interface NetconfTestImplModuleMXBean
public Long getSimpleLong()
getSimpleLong
in interface NetconfTestImplModuleMXBean
public void setSimpleLong(Long simpleLong)
setSimpleLong
in interface NetconfTestImplModuleMXBean
public Long getSimpleLong2()
getSimpleLong2
in interface NetconfTestImplModuleMXBean
public void setSimpleLong2(Long simpleLong2)
setSimpleLong2
in interface NetconfTestImplModuleMXBean
public org.slf4j.Logger getLogger()
Copyright © 2019 OpenDaylight. All rights reserved.