blob: f1260132978ea6dbb2faab0cd75900c6c458f1ab [file] [log] [blame]
Charles Chanff79dd92018-06-01 16:33:48 -07001/*
2 * Copyright 2018-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.net.host;
17
18import org.onosproject.net.ConnectPoint;
19import org.onosproject.net.Host;
20import org.onosproject.net.provider.Provider;
21
22/**
23 * Provider of host probing.
24 */
25public interface HostProbingProvider extends Provider {
26
27 /**
28 * Probe given host on the given connectPoint with given probeMode.
29 *
30 * @param host host to be probed
31 * @param connectPoint connect point on which the probe is sent
32 * @param probeMode probe mode
33 */
34 void probeHost(Host host, ConnectPoint connectPoint, ProbeMode probeMode);
35
36 /**
37 * Process host probing events.
38 *
39 * @param event host probing event
40 */
41 void processEvent(HostProbingEvent event);
42}