From cdc4d09c152e985c93016ff61789bc699b97883d Mon Sep 17 00:00:00 2001 From: Tibor Král Date: Wed, 28 Nov 2018 18:20:00 +0100 Subject: HC2VPP-395: Provide Interface statistics counters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: If0f62b36b9d9dc6718ed62f81268ac0908f02297 Signed-off-by: Tibor Král --- .../cache/InterfaceCacheStatisticsDumpManager.java | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfacesstate/cache/InterfaceCacheStatisticsDumpManager.java (limited to 'v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfacesstate/cache/InterfaceCacheStatisticsDumpManager.java') diff --git a/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfacesstate/cache/InterfaceCacheStatisticsDumpManager.java b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfacesstate/cache/InterfaceCacheStatisticsDumpManager.java new file mode 100644 index 000000000..9f4912331 --- /dev/null +++ b/v3po/v3po2vpp/src/main/java/io/fd/hc2vpp/v3po/interfacesstate/cache/InterfaceCacheStatisticsDumpManager.java @@ -0,0 +1,37 @@ +/* + * Copyright (c) 2019 PANTHEON.tech. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at: + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package io.fd.hc2vpp.v3po.interfacesstate.cache; + +import io.fd.vpp.jvpp.core.dto.VnetPerInterfaceCombinedCounters; +import java.time.LocalDateTime; +import javax.annotation.Nullable; + +public interface InterfaceCacheStatisticsDumpManager { + @Nullable + InterfaceCacheStatisticsSample getStatisticsData(int ifcSwIndex); + + void setStatisticsData(VnetPerInterfaceCombinedCounters data, LocalDateTime captureTime, int ifcSwIndex); + + @Nullable + int[] getEnabledInterfaces(); + + void disableInterface(int ifcSwIndex); + + void disableAll(); + + void enableInterface(int index); +} -- cgit 1.2.3-korg