Class AbstractNotificationSupplierBase<O extends org.opendaylight.yangtools.yang.binding.DataObject>

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Class<O> clazz  
    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractNotificationSupplierBase​(org.opendaylight.mdsal.binding.api.DataBroker db, Class<O> clazz)
      Default constructor for all Notification Supplier implementation.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      static NodeRef createNodeRef​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
      Create a node reference.
      static NodeId getNodeId​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
      Get the node identifier.
      protected static org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node,​NodeKey> getNodeII​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> ii)
      Method returns a keyed InstanceIdentifier for Node from inventory because this path is a base for every OF paths.
      protected static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> getNodeWildII()
      Method returns a wildCard InstanceIdentifier for Node from inventory because this path is a base for every OF paths.
      • Methods inherited from interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener

        onDataTreeChanged, onInitialData
    • Field Detail

      • clazz

        protected final Class<O extends org.opendaylight.yangtools.yang.binding.DataObject> clazz
    • Constructor Detail

      • AbstractNotificationSupplierBase

        public AbstractNotificationSupplierBase​(org.opendaylight.mdsal.binding.api.DataBroker db,
                                                Class<O> clazz)
        Default constructor for all Notification Supplier implementation.
        Parameters:
        db - - DataBroker
        clazz - - API contract class extended DataObject
    • Method Detail

      • getNodeWildII

        protected static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> getNodeWildII()
        Method returns a wildCard InstanceIdentifier for Node from inventory because this path is a base for every OF paths.
        Returns:
        WildCarded InstanceIdentifier for Node
      • getNodeII

        protected static org.opendaylight.yangtools.yang.binding.KeyedInstanceIdentifier<Node,​NodeKey> getNodeII​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> ii)
        Method returns a keyed InstanceIdentifier for Node from inventory because this path is a base for every OF paths.
        Parameters:
        ii - - key for keyed Node InstanceIdentifier
        Returns:
        Keyed InstanceIdentifier for Node
      • createNodeRef

        public static NodeRef createNodeRef​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
        Create a node reference.
        Parameters:
        path - pointer to element
        Returns:
        extracted NodeKey and wrapped in NodeRef
      • getNodeId

        public static NodeId getNodeId​(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
        Get the node identifier.
        Parameters:
        path - pointer to element
        Returns:
        extracted NodeId