blob: 61898375f14de1eb229729c1226fd2560d142748 [file] [log] [blame]
jaegonkimdcf7c822019-02-06 15:00:14 +09001/*
2 * Copyright 2019-present Open Networking Foundation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.ofoverlay.impl.util;
17
18import com.jcraft.jsch.Session;
19import org.onosproject.workflow.api.WorkflowException;
20
21/**
22 * Functional interface for ssh behavior.
23 * @param <R> return value of ssh behavior
24 */
25@FunctionalInterface
26public interface SshBehavior<R> {
27
28 R apply(Session session) throws WorkflowException;
29
30}