blob: 8fe35bbd9fc2f65335410891e8d211466c0d6093 [file] [log] [blame]
Jonathan Hart41349e92015-02-09 14:14:02 -08001/*
Jonathan Hartf4bd0482017-01-27 15:11:18 -08002 * Copyright 2017-present Open Networking Laboratory
Jonathan Hart41349e92015-02-09 14:14:02 -08003 *
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 */
Jonathan Hart3930f632015-10-19 12:12:51 -070016
17package org.onosproject.routing.fpm;
18
Jonathan Hartdc7e76c2017-03-27 11:35:34 -070019import java.util.Collection;
Jonathan Hart6b045582016-02-03 10:00:08 -080020import java.util.Map;
Jonathan Hart41349e92015-02-09 14:14:02 -080021
22/**
Jonathan Hartb10f1e72017-05-02 16:36:26 -070023 * Provides information about the FPM route receiver module.
Jonathan Hart41349e92015-02-09 14:14:02 -080024 */
Jonathan Hart6b045582016-02-03 10:00:08 -080025public interface FpmInfoService {
Jonathan Hart41349e92015-02-09 14:14:02 -080026
Jonathan Hartb10f1e72017-05-02 16:36:26 -070027 /**
28 * Returns the FPM peers that are currently connected.
29 *
30 * @return a map of FPM peer to connection time.
31 */
Jonathan Hartdc7e76c2017-03-27 11:35:34 -070032 Map<FpmPeer, Collection<FpmConnectionInfo>> peers();
Jonathan Hart41349e92015-02-09 14:14:02 -080033}