Class AbstractMultipartWriter<T extends org.opendaylight.yangtools.yang.binding.DataContainer>
- java.lang.Object
-
- org.opendaylight.openflowplugin.impl.datastore.multipart.AbstractMultipartWriter<T>
-
- Direct Known Subclasses:
DescMultipartWriter
,FlowStatsMultipartWriter
,GroupDescMultipartWriter
,GroupFeaturesMultipartWriter
,GroupStatsMultipartWriter
,MeterConfigMultipartWriter
,MeterFeaturesMultipartWriter
,MeterStatsMultipartWriter
,PortDescMultipartWriter
,PortStatsMultipartWriter
,QueueStatsMultipartWriter
,TableFeaturesMultipartWriter
,TableStatsMultipartWriter
public abstract class AbstractMultipartWriter<T extends org.opendaylight.yangtools.yang.binding.DataContainer> extends Object
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node>
getInstanceIdentifier()
Get instance identifier.protected abstract Class<T>
getType()
Get type of writer.protected abstract void
storeStatistics(T statistics, boolean withParents)
Write statistics.boolean
write(org.opendaylight.yangtools.yang.binding.DataContainer dataContainer, boolean withParents)
Write dataContainer.protected <O extends org.opendaylight.yangtools.yang.binding.DataObject>
voidwriteToTransaction(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<O> path, O data, boolean withParents)
Creates put operation using provided data in underlying transaction chain.
-
-
-
Method Detail
-
writeToTransaction
protected <O extends org.opendaylight.yangtools.yang.binding.DataObject> void writeToTransaction(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<O> path, O data, boolean withParents)
Creates put operation using provided data in underlying transaction chain.- Type Parameters:
O
- data type- Parameters:
path
- pathdata
- data
-
getInstanceIdentifier
protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.Node> getInstanceIdentifier()
Get instance identifier.- Returns:
- instance identifier
-
write
public boolean write(org.opendaylight.yangtools.yang.binding.DataContainer dataContainer, boolean withParents)
Write dataContainer.- Parameters:
dataContainer
- dataContainerwithParents
- write missing parents if needed (slower)- Returns:
- true if we have correct dataContainer type
-
storeStatistics
protected abstract void storeStatistics(T statistics, boolean withParents)
Write statistics.- Parameters:
statistics
- statisticswithParents
- write missing parents if needed (slower)
-
-