2 * Copyright (c) 2016 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.singleton.impl.utils;
11 import org.opendaylight.netconf.client.NetconfClientSessionListener;
12 import org.opendaylight.netconf.sal.connect.api.RemoteDeviceHandler;
13 import org.opendaylight.netconf.sal.connect.netconf.listener.NetconfDeviceCommunicator;
14 import org.opendaylight.netconf.sal.connect.netconf.listener.NetconfSessionPreferences;
16 public class NetconfConnectorDTO implements AutoCloseable {
18 private final NetconfDeviceCommunicator communicator;
19 private final RemoteDeviceHandler<NetconfSessionPreferences> facade;
21 public NetconfConnectorDTO(final NetconfDeviceCommunicator communicator,
22 final RemoteDeviceHandler<NetconfSessionPreferences> facade) {
23 this.communicator = communicator;
27 public NetconfDeviceCommunicator getCommunicator() {
31 public RemoteDeviceHandler<NetconfSessionPreferences> getFacade() {
35 public NetconfClientSessionListener getSessionListener() {
41 if (communicator != null) {