Class AbstractNotificationSupplierBase<O extends org.opendaylight.yangtools.yang.binding.DataObject>
- java.lang.Object
-
- org.opendaylight.openflowplugin.applications.notification.supplier.impl.AbstractNotificationSupplierBase<O>
-
- Type Parameters:
O
- - data tree item Object extendsDataObject
- All Implemented Interfaces:
AutoCloseable
,EventListener
,org.opendaylight.mdsal.binding.api.DataTreeChangeListener<O>
,NotificationSupplierDefinition<O>
- Direct Known Subclasses:
AbstractNotificationSupplierForItem
,AbstractNotificationSupplierForItemRoot
,AbstractNotificationSupplierForItemStat
public abstract class AbstractNotificationSupplierBase<O extends org.opendaylight.yangtools.yang.binding.DataObject> extends Object implements NotificationSupplierDefinition<O>
Public abstract basic Supplier implementation contains code for a make Supplier instance, registration Supplier likeDataTreeChangeListener
and close method. In additional case, it contains help methods for all Supplier implementations.
-
-
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 keyedInstanceIdentifier
forNode
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 wildCardInstanceIdentifier
forNode
from inventory because this path is a base for every OF paths.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opendaylight.mdsal.binding.api.DataTreeChangeListener
onDataTreeChanged, onInitialData
-
Methods inherited from interface org.opendaylight.openflowplugin.applications.notification.supplier.NotificationSupplierDefinition
getWildCardPath
-
-
-
-
Method Detail
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
getNodeWildII
protected static org.opendaylight.yangtools.yang.binding.InstanceIdentifier<Node> getNodeWildII()
Method returns a wildCardInstanceIdentifier
forNode
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 keyedInstanceIdentifier
forNode
from inventory because this path is a base for every OF paths.- Parameters:
ii
- - key for keyedNode
InstanceIdentifier
- Returns:
- Keyed InstanceIdentifier for Node
-
createNodeRef
public static NodeRef createNodeRef(org.opendaylight.yangtools.yang.binding.InstanceIdentifier<?> path)
Create a node reference.
-
-