@Override public Optional<DOMMountPoint> getMountPoint(final YangInstanceIdentifier path) { return getDelegate().getMountPoint(path); }
@Override public Optional<MountPoint> getMountPoint(InstanceIdentifier<?> mountPoint) { YangInstanceIdentifier domPath = codec.toYangInstanceIdentifierBlocking(mountPoint); Optional<DOMMountPoint> domMount = mountService.getMountPoint(domPath); if(domMount.isPresent()) { return Optional.<MountPoint>fromNullable(bindingMountpoints.getUnchecked(domMount.get())); } return Optional.absent(); }
private SchemaContext getSchemaContext(final YangInstanceIdentifier id) { if (id == null) { return null; } Optional<DOMMountPoint> mountPoint = mountService.getMountPoint(id); if (!mountPoint.isPresent()) { return null; } SchemaContext context = mountPoint.get().getSchemaContext(); if (context == null) { return null; } return context; }
mountPoint = mountPointService.getMountPoint(iid); } else { error = "Mount point is not available for node_name = " + node_name;
private void registrationEventSource() { final Optional<DOMMountPoint> domMountPoint = netconfEventSourceManager.getDomMounts() .getMountPoint(domMountPath(node.getNodeId())); EventSourceRegistration<NetconfEventSource> registration = null; if (domMountPoint.isPresent()/* && mountPoint.isPresent()*/) { NetconfEventSourceMount mount = new NetconfEventSourceMount(node, domMountPoint.get()); final NetconfEventSource netconfEventSource = new NetconfEventSource( netconfEventSourceManager.getStreamMap(), mount, netconfEventSourceManager.getPublishService()); registration = netconfEventSourceManager.getEventSourceRegistry().registerEventSource(netconfEventSource); LOG.info("Event source {} has been registered", node.getNodeId().getValue()); } this.eventSourceRegistration = registration; }
final Optional<DOMMountPoint> mountOpt = mountService.getMountPoint(partialPath); if (!mountOpt.isPresent()) { LOG.debug("Instance identifier to missing mount point: {}", partialPath);