BUG-5032: BGP Operational State
[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.rev130925.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      * @param tablesKey table
22      * @return count
23      */
24     long getPrefixedReceivedCount(@Nonnull final TablesKey tablesKey);
25
26     /**
27      * list of supported tables per Peer
28      * @return tables list
29      */
30     Set<TablesKey> getTableKeys();
31
32     /**
33      * table supported per Peer
34      * @param tablesKey table type
35      * @return true if supported
36      */
37     boolean isSupported(TablesKey tablesKey);
38 }