2 * Copyright (c) 2016 Brocade Communication Systems 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
8 package org.opendaylight.netconf.callhome.protocol;
10 import io.netty.util.concurrent.Promise;
11 import javax.annotation.Nonnull;
12 import org.opendaylight.netconf.client.NetconfClientSession;
13 import org.opendaylight.netconf.client.NetconfClientSessionListener;
16 * Activator of NETCONF channel on incoming SSH Call Home session.
18 public interface CallHomeChannelActivator {
20 * Activates Netconf Client Channel with supplied client session listener.
23 * Activation of channel will result in start of NETCONF client
24 * session negotiation on underlying ssh channel.
26 * @param listener Client Session Listener to be attached to NETCONF session.
27 * @return Promise with negotiated NETCONF session
30 Promise<NetconfClientSession> activate(@Nonnull NetconfClientSessionListener listener);