@Beta public class BindingDOMMountPointServiceAdapter extends Object implements MountPointService
Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
BindingDOMMountPointServiceAdapter(DOMMountPointService mountService,
BindingToNormalizedNodeCodec codec) |
Modifier and Type | Method and Description |
---|---|
Optional<MountPoint> |
getMountPoint(InstanceIdentifier<?> mountPoint)
Returns optional of mount point at given path represented by instance identifier.
|
<T extends MountPointListener> |
registerListener(InstanceIdentifier<?> path,
T listener)
Register a
MountPointListener instance. |
public BindingDOMMountPointServiceAdapter(DOMMountPointService mountService, BindingToNormalizedNodeCodec codec)
public Optional<MountPoint> getMountPoint(InstanceIdentifier<?> mountPoint)
MountPointService
getMountPoint
in interface MountPointService
mountPoint
- mount point instance identifierpublic <T extends MountPointListener> org.opendaylight.yangtools.concepts.ListenerRegistration<T> registerListener(InstanceIdentifier<?> path, T listener)
MountPointService
MountPointListener
instance. Once registered, the listener will start
receiving changes on the selected path.registerListener
in interface MountPointService
T
- listener typepath
- given path to listen to changeslistener
- MountPointListener
that is being registeredListenerRegistration.close()
to stop
delivery of mount point change events.Copyright © 2019 OpenDaylight. All rights reserved.