2 * Copyright (c) 2016 Brocade Communications 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
8 package org.opendaylight.protocol.bgp.rib.impl.stats.rib.impl;
10 import javax.annotation.Nonnull;
11 import javax.annotation.Nullable;
12 import org.opendaylight.controller.config.yang.bgp.rib.impl.BgpRenderState;
13 import org.opendaylight.controller.config.yang.bgp.rib.impl.RIBImplRuntimeMXBean;
14 import org.opendaylight.protocol.bgp.rib.impl.stats.UnsignedInt32Counter;
15 import org.opendaylight.protocol.bgp.rib.impl.stats.peer.route.PerTableTypeRouteCounter;
16 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber;
17 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.rib.rev130925.RibId;
18 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.BgpId;
19 import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.ClusterIdentifier;
24 public class RIBImplRuntimeMXBeanImpl implements BGPRenderStats, RIBImplRuntimeMXBean {
25 private final BGPRenderStats renderStats;
27 public RIBImplRuntimeMXBeanImpl(@Nonnull final BgpId bgpId, @Nonnull final RibId ribId, @Nonnull final AsNumber localAs, @Nullable final ClusterIdentifier clusterId) {
28 renderStats = new BGPRenderStatsImpl(bgpId, ribId, localAs, clusterId);
32 public BgpRenderState getBgpRenderState() {
33 return this.renderStats.getBgpRenderState();
37 public PerTableTypeRouteCounter getLocRibRouteCounter() {
38 return this.renderStats.getLocRibRouteCounter();
42 public UnsignedInt32Counter getConfiguredPeerCounter() {
43 return this.renderStats.getConfiguredPeerCounter();
47 public UnsignedInt32Counter getConnectedPeerCounter() {
48 return this.renderStats.getConnectedPeerCounter();