Fix checkstyle complains
[bgpcep.git] / bgp / rib-impl / src / main / java / org / opendaylight / protocol / bgp / rib / impl / state / peer / PrefixesReceivedCounters.java
1 /*
2  * Copyright (c) 2016 Cisco Systems, Inc. and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8
9 package org.opendaylight.protocol.bgp.rib.impl.state.peer;
10
11 import java.util.Set;
12 import javax.annotation.Nonnull;
13 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev180329.rib.TablesKey;
14
15 /**
16  * Expose Prefixes Received Count.
17  */
18 public interface PrefixesReceivedCounters {
19     /**
20      * Prefixes received from Peer count (AdjRinIn Count) pet Table.
21      *
22      * @param tablesKey table
23      * @return count
24      */
25     long getPrefixedReceivedCount(@Nonnull TablesKey tablesKey);
26
27     /**
28      * list of supported tables per Peer.
29      *
30      * @return tables list
31      */
32     Set<TablesKey> getTableKeys();
33
34     /**
35      * table supported per Peer.
36      *
37      * @param tablesKey table type
38      * @return true if supported
39      */
40     boolean isSupported(@Nonnull TablesKey tablesKey);
41 }