blob: 4da17e0c61640b868081a76b57aa874c27509fc2 [file] [log] [blame]
pierventre1483e642016-06-08 18:52:29 +02001/*
2 * Copyright 2016-present Open Networking Laboratory
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 */
16
17package org.onosproject.sdxl2;
18
19import org.onosproject.net.ConnectPoint;
20import org.onosproject.net.intent.Key;
21
22/**
23 * Service that provides the current state of
24 * the SDX-L2 related intents and of the
25 * client interfaces.
26 */
27public interface SdxL2MonitoringService {
28
29 /**
30 * Returns the state of the Intent that has been provided as input.
31 *
32 * @param intentKey key of the intent;
33 * @return the last state of the intent;
34 */
35 SdxL2State getIntentState(Key intentKey);
36
37 /**
38 * Returns the state of the EdgePort that has been provided as input.
39 *
40 * @param edgeport the connect point representing the edge port
41 * @return the last state of the edge port;
42 */
43 SdxL2State getEdgePortState(ConnectPoint edgeport);
44
45 /**
46 * Remove listeners.
47 */
48 void cleanup();
49
50}