blob: fb34ff62babe340399488c38ddcc49f616f651bc [file] [log] [blame]
Gaurav Agrawaldab4d772017-03-29 15:15:13 +05301/*
2 * Copyright 2017-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.net.device;
18
Andrea Campanella527f8d02017-06-27 15:22:23 +020019import org.onosproject.net.driver.HandlerBehaviour;
20
Gaurav Agrawaldab4d772017-03-29 15:15:13 +053021import java.util.Collection;
22
23/**
24 * Handler behaviour capable of collecting and updating port statistics.
25 */
Andrea Campanella527f8d02017-06-27 15:22:23 +020026public interface PortStatisticsDiscovery extends HandlerBehaviour {
Gaurav Agrawaldab4d772017-03-29 15:15:13 +053027
28 /**
29 * Returns a list of port statistics descriptions appropriately annotated
30 * to support downstream model extension via projections of their parent
31 * device.
32 *
33 * @return annotated port statistics
34 */
35 Collection<PortStatistics> discoverPortStatistics();
36}