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
Modifier and TypeMethodDescriptionprotected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node>
Get instance identifier.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 Details
-
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
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
-
getType
Get type of writer.- Returns:
- type of writer
-
storeStatistics
Write statistics.- Parameters:
statistics
- statisticswithParents
- write missing parents if needed (slower)
-