Class AbstractMultipartWriter<T extends org.opendaylight.yangtools.yang.binding.DataContainer>

    • 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 - 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.yang.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)