1 /*******************************************************************************
2 * ============LICENSE_START========================================================================
3 * ONAP : ccsdk feature sdnr wt
4 * =================================================================================================
5 * Copyright (C) 2019 highstreet technologies GmbH Intellectual Property. All rights reserved.
6 * =================================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
8 * in compliance with the License. You may obtain a copy of the License at
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software distributed under the License
13 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14 * or implied. See the License for the specific language governing permissions and limitations under
16 * ============LICENSE_END==========================================================================
17 ******************************************************************************/
19 package org.onap.ccsdk.features.sdnr.wt.netconfnodestateservice;
21 import java.util.EventListener;
23 import org.opendaylight.mdsal.binding.api.DataBroker;
24 import org.opendaylight.yang.gen.v1.urn.opendaylight.netconf.node.topology.rev150114.NetconfNode;
25 import org.opendaylight.yang.gen.v1.urn.tbd.params.xml.ns.yang.network.topology.rev131021.NodeId;
28 * Indicate if device is connected or not.
29 * A NetconfNode (Mountpoint) is providing the status.
30 * If this is Master and connected, this function is calles.
33 public interface NetconfNodeConnectListener extends EventListener, AutoCloseable {
36 * Called if device state changes to "connected" for a netconf master node.
37 * @param nNodeId name of mount point
38 * @param netconfNode with related information
39 * @param netconfNodeDataBroker to access connected netconf device
41 public void onEnterConnected(NodeId nNodeId, NetconfNode netconfNode, DataBroker netconfNodeDataBroker);
44 * Notify of device state change to "not connected" mount point supervision.
45 * HINT: This callback could be called multiple times also the onEnterConnected state was not called.
46 * @param nNodeId name of mount point
48 public void onLeaveConnected(NodeId nNodeId);