public final class DOMImmutableDataChangeEvent extends Object implements AsyncDataChangeEvent<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
Modifier and Type | Class and Description |
---|---|
static class |
DOMImmutableDataChangeEvent.Builder |
static interface |
DOMImmutableDataChangeEvent.SimpleEventFactory
Simple event factory which creates event based on path and data
|
Modifier and Type | Method and Description |
---|---|
static DOMImmutableDataChangeEvent.Builder |
builder(AsyncDataBroker.DataChangeScope scope) |
Map<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>> |
getCreatedData()
Returns a map of paths and newly created objects, which were introduced by
this change into conceptual data tree, if no new objects were introduced
this map will be empty.
|
static DOMImmutableDataChangeEvent.SimpleEventFactory |
getCreateEventFactory()
Event factory which takes after state and creates event for it.
|
Map<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>> |
getOriginalData()
Returns an immutable map of updated or removed paths and their original
states prior to this change.
|
org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> |
getOriginalSubtree()
Returns an immutable stable view of data state, which captures the state of
data store before the reported change.
|
Set<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> |
getRemovedPaths()
Returns an immutable set of removed paths.
|
static DOMImmutableDataChangeEvent.SimpleEventFactory |
getRemoveEventFactory()
Event factory which takes before state and creates event for it.
|
protected AsyncDataBroker.DataChangeScope |
getScope() |
Map<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>> |
getUpdatedData()
Returns a map of paths and objects which were updated by this change in the
conceptual data tree if no existing objects were updated
this map will be empty.
|
org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> |
getUpdatedSubtree()
Returns an immutable stable view of data, which captures the state of data
store after the reported change.
|
String |
toString() |
public static final DOMImmutableDataChangeEvent.Builder builder(AsyncDataBroker.DataChangeScope scope)
protected AsyncDataBroker.DataChangeScope getScope()
public org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> getOriginalSubtree()
AsyncDataChangeEvent
The view is rooted at the point where the listener, to which the event is being delivered, was registered.
If listener used a wildcarded path (if supported by path type) during
registration for change listeners this method returns null, and original
state can be accessed only via AsyncDataChangeEvent.getOriginalData()
getOriginalSubtree
in interface AsyncDataChangeEvent<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
public org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?> getUpdatedSubtree()
AsyncDataChangeEvent
The view is rooted at the point where the listener, to which the event is being delivered, was registered.
If listener used a wildcarded path (if supported by path type) during
registration for change listeners this method returns null, and state
can be accessed only via AsyncDataChangeEvent.getCreatedData()
,
AsyncDataChangeEvent.getUpdatedData()
, AsyncDataChangeEvent.getRemovedPaths()
getUpdatedSubtree
in interface AsyncDataChangeEvent<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
public Map<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>> getOriginalData()
AsyncDataChangeEvent
This map contains the original version of the data tree nodes (and paths to them), which are in the scope of the listener registration.
getOriginalData
in interface AsyncDataChangeEvent<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
public Map<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>> getCreatedData()
AsyncDataChangeEvent
This map contains all data tree nodes (and paths to them) which were created and are in the scope of listener registration. The data tree nodes contain their whole subtree with their current state.
getCreatedData
in interface AsyncDataChangeEvent<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
public Map<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>> getUpdatedData()
AsyncDataChangeEvent
This map contains all data tree nodes (and paths to them) which were updated and are in the scope of listener registration. The data tree nodes contain their whole subtree with their current state.
A Node is considered updated if it contents were replaced or one of its children was created, removed or updated.
Original state of the updated data tree nodes is in
AsyncDataChangeEvent.getOriginalData()
stored with same path.
getUpdatedData
in interface AsyncDataChangeEvent<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
public Set<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier> getRemovedPaths()
AsyncDataChangeEvent
This set contains the paths to the data tree nodes which are in the scope of the listener registration that have been removed.
Original state of the removed data tree nodes is in
AsyncDataChangeEvent.getOriginalData()
stored with same path.
getRemovedPaths
in interface AsyncDataChangeEvent<org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier,org.opendaylight.yangtools.yang.data.api.schema.NormalizedNode<?,?>>
public static final DOMImmutableDataChangeEvent.SimpleEventFactory getCreateEventFactory()
getUpdatedSubtree()
and is path,
state mapping is also present in getUpdatedData()
.public static final DOMImmutableDataChangeEvent.SimpleEventFactory getRemoveEventFactory()
getOriginalSubtree()
and is path,
state mapping is also present in getOriginalSubtree()
.
Path is present in getRemovedPaths()
.Copyright © 2019 OpenDaylight. All rights reserved.