2 * Copyright (c) 2014 Cisco Systems, Inc. and others. All rights reserved.
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
9 package org.opendaylight.protocol.bgp.rib.impl.stats.peer;
11 import org.opendaylight.controller.config.yang.bgp.rib.impl.BgpSessionState;
14 * Serves to expose BGP session statistics to the BGP Peer, to which the session is related.
16 public interface BGPSessionStats {
19 * Retrieves actual BGP session state. Containing all information collected from the session.
21 * @return State of the BGP session.
23 BgpSessionState getBgpSessionState();
26 * Resets BGP session statistics. Sets counters values to zero.
28 void resetBgpSessionStats();