2 * Copyright (c) 2015 NEC Corporation
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this
7 * distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
10 package org.opendaylight.vtn.manager.internal.inventory;
12 import org.opendaylight.vtn.manager.internal.TxTask;
14 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
16 import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.node.NodeConnector;
19 * An event context used to handle node connector events.
21 interface NodeConnectorEventContext extends TxTask<Void> {
23 * Add the given node to the node map to be updated.
25 * @param path The identifier of the node connector to be added.
26 * @param nc A {@link NodeConnector} instance to be added
27 * @param label A label usd only for logging.
29 void addUpdated(InstanceIdentifier<NodeConnector> path, NodeConnector nc,
33 * Add the given node to the node map to be removed.
35 * @param path The identifier of the node connector to be added.
36 * @param nc A {@link NodeConnector} instance to be added.
38 void addRemoved(InstanceIdentifier<NodeConnector> path, NodeConnector nc);
41 * Determine whether this instance contains at least one port information
42 * to be updated or removed.
44 * @return {@code true} only if this instance contains at least one port
45 * information to be updated or removed.