@Override public final void delete(final YangInstanceIdentifier path) { modification.delete(path); }
@Override void doDelete(final YangInstanceIdentifier path) { modification.delete(path); }
@Override public synchronized void delete(final YangInstanceIdentifier path) { delegate.delete(path); }
@Override public synchronized void delete(final YangInstanceIdentifier path) { delegate.delete(path); }
@Override public void delete(YangInstanceIdentifier yangInstanceIdentifier) { try { delegate.delete(yangInstanceIdentifier); } catch(SchemaValidationFailedException e){ LOG.warn("Node at path : {} does not exist ignoring delete", yangInstanceIdentifier); } }
@Override public void apply(DataTreeModification transaction) { transaction.delete(getPath()); }
@Override @SuppressWarnings("checkstyle:IllegalCatch") public void delete(final YangInstanceIdentifier path) { checkNotReady(); final DataTreeModification tree = mutableTree; LOG.debug("Tx: {} Delete: {}", getIdentifier(), path); try { tree.delete(path); // FIXME: Add checked exception } catch (RuntimeException e) { LOG.error("Tx: {}, failed to delete {} in {}", getIdentifier(), path, tree, e); // Rethrow original ones if they are subclasses of RuntimeException // or Error Throwables.propagateIfPossible(e); // FIXME: Introduce proper checked exception throw new IllegalArgumentException("Illegal path to delete.", e); } }
@Override public void delete(PathArgument child) { try { toModification.delete(current().node(child)); } catch(SchemaValidationFailedException e) { // Ignoring since we would've already logged this in the call to the original modification. } } }
@Override public void delete(final YangInstanceIdentifier path) { checkNotReady(); final DataTreeModification tree = mutableTree; LOG.debug("Tx: {} Delete: {}", getIdentifier(), path); try { tree.delete(path); // FIXME: Add checked exception } catch (Exception e) { LOG.error("Tx: {}, failed to delete {} in {}", getIdentifier(), path, tree, e); // Rethrow original ones if they are subclasses of RuntimeException // or Error Throwables.propagateIfPossible(e); // FIXME: Introduce proper checked exception throw new IllegalArgumentException("Illegal path to delete.", e); } }
@SuppressWarnings("checkstyle:IllegalCatch") @Override public void delete(final YangInstanceIdentifier path) { checkNotReady(); final DataTreeModification tree = mutableTree; LOG.debug("Tx: {} Delete: {}", getIdentifier(), path); try { tree.delete(path); // FIXME: Add checked exception } catch (Exception e) { LOG.error("Tx: {}, failed to delete {} in {}", getIdentifier(), path, tree, e); // Rethrow original ones if they are subclasses of RuntimeException or Error Throwables.throwIfUnchecked(e); // FIXME: Introduce proper checked exception throw new IllegalArgumentException("Illegal path to delete.", e); } }
NodeIterator next(final DataTreeModification modification) { while (iterator.hasNext()) { final DataTreeCandidateNode node = iterator.next(); final YangInstanceIdentifier child = path.node(node.getIdentifier()); switch (node.getModificationType()) { case DELETE: modification.delete(child); LOG.debug("Modification {} deleted path {}", modification, child); break; case APPEARED: case DISAPPEARED: case SUBTREE_MODIFIED: LOG.debug("Modification {} modified path {}", modification, child); return new NodeIterator(this, child, node.getChildNodes().iterator()); case UNMODIFIED: LOG.debug("Modification {} unmodified path {}", modification, child); // No-op break; case WRITE: modification.write(child, node.getDataAfter().get()); LOG.debug("Modification {} written path {}", modification, child); break; default: throw new IllegalArgumentException("Unsupported modification " + node.getModificationType()); } } return parent; } }
NodeIterator next(final DataTreeModification modification) { while (iterator.hasNext()) { final DataTreeCandidateNode node = iterator.next(); final YangInstanceIdentifier child = path.node(node.getIdentifier()); switch (node.getModificationType()) { case DELETE: modification.delete(child); LOG.debug("Modification {} deleted path {}", modification, child); break; case APPEARED: case DISAPPEARED: case SUBTREE_MODIFIED: LOG.debug("Modification {} modified path {}", modification, child); return new NodeIterator(this, child, node.getChildNodes().iterator()); case UNMODIFIED: LOG.debug("Modification {} unmodified path {}", modification, child); // No-op break; case WRITE: modification.write(child, node.getDataAfter().get()); LOG.debug("Modification {} written path {}", modification, child); break; default: throw new IllegalArgumentException("Unsupported modification " + node.getModificationType()); } } return parent; } }
switch (node.getModificationType()) { case DELETE: modification.delete(path); LOG.debug("Modification {} deleted path {}", modification, path); break;
switch (node.getModificationType()) { case DELETE: modification.delete(path); LOG.debug("Modification {} deleted path {}", modification, path); break;
mod.delete(YangInstanceIdentifier.EMPTY);