Class AbstractMultipartWriter<T extends org.opendaylight.yangtools.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.binding.DataContainer> extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node>
    Get instance identifier.
    protected abstract Class<T>
    Get type of writer.
    protected abstract void
    storeStatistics(T statistics, boolean withParents)
    Write statistics.
    boolean
    write(org.opendaylight.yangtools.binding.DataContainer dataContainer, boolean withParents)
    Write dataContainer.
    protected <O extends org.opendaylight.yangtools.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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • writeToTransaction

      protected <O extends org.opendaylight.yangtools.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 - path
      data - data
    • getInstanceIdentifier

      protected org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> getInstanceIdentifier()
      Get instance identifier.
      Returns:
      instance identifier
    • write

      public boolean write(org.opendaylight.yangtools.binding.DataContainer dataContainer, boolean withParents)
      Write dataContainer.
      Parameters:
      dataContainer - dataContainer
      withParents - write missing parents if needed (slower)
      Returns:
      true if we have correct dataContainer type
    • getType

      protected abstract Class<T> getType()
      Get type of writer.
      Returns:
      type of writer
    • storeStatistics

      protected abstract void storeStatistics(T statistics, boolean withParents)
      Write statistics.
      Parameters:
      statistics - statistics
      withParents - write missing parents if needed (slower)