2 * Copyright (c) 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.netconf.topology.util;
11 import com.google.common.annotations.Beta;
12 import javax.annotation.Nonnull;
13 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
14 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.network.topology.topology.Node;
17 * Customizable code that gets executed after result aggregation, meant for custom writes
18 * into the datastore, but any user code can be run here if desired.
21 public interface NodeWriter {
23 void init(@Nonnull final NodeId id, @Nonnull final Node operationalDataNode);
25 void update(@Nonnull final NodeId id, @Nonnull final Node operationalDataNode);
27 void delete(@Nonnull final NodeId id);