From e28c01d29595f630e7fd55003a5794bb221ebca4 Mon Sep 17 00:00:00 2001 From: Peter Alfonsi Date: Wed, 14 Feb 2024 15:52:07 -0800 Subject: [PATCH] Removed skeleton TSC stats implementation Signed-off-by: Peter Alfonsi --- .../cache/tier/TieredSpilloverCacheStats.java | 123 ------------------ 1 file changed, 123 deletions(-) delete mode 100644 server/src/main/java/org/opensearch/common/cache/tier/TieredSpilloverCacheStats.java diff --git a/server/src/main/java/org/opensearch/common/cache/tier/TieredSpilloverCacheStats.java b/server/src/main/java/org/opensearch/common/cache/tier/TieredSpilloverCacheStats.java deleted file mode 100644 index e8ccc0422a704..0000000000000 --- a/server/src/main/java/org/opensearch/common/cache/tier/TieredSpilloverCacheStats.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * - * The OpenSearch Contributors require contributions made to - * this file be licensed under the Apache-2.0 license or a - * compatible open source license. - */ - -package org.opensearch.common.cache.tier; - -import org.opensearch.common.cache.stats.CacheStats; -import org.opensearch.common.cache.stats.CacheStatsDimension; -import org.opensearch.common.cache.stats.CacheStatsResponse; -import org.opensearch.core.common.io.stream.StreamOutput; - -import java.io.IOException; -import java.util.List; - -public class TieredSpilloverCacheStats implements CacheStats { - private final CacheStats heapStats; - private final CacheStats diskStats; - - public TieredSpilloverCacheStats(CacheStats heapStats, CacheStats diskStats) { - this.heapStats = heapStats; - this.diskStats = diskStats; - } - - // TODO: This is a skeleton implementation, not yet functional! - @Override - public void writeTo(StreamOutput out) throws IOException { - - } - - @Override - public CacheStatsResponse getTotalStats() { - return null; - } - - @Override - public CacheStatsResponse getStatsByDimensions(List dimensions) { - return null; - } - - @Override - public long getTotalHits() { - return 0; - } - - @Override - public long getTotalMisses() { - return 0; - } - - @Override - public long getTotalEvictions() { - return 0; - } - - @Override - public long getTotalMemorySize() { - return 0; - } - - @Override - public long getTotalEntries() { - return 0; - } - - @Override - public long getHitsByDimensions(List dimensions) { - return 0; - } - - @Override - public long getMissesByDimensions(List dimensions) { - return 0; - } - - @Override - public long getEvictionsByDimensions(List dimensions) { - return 0; - } - - @Override - public long getMemorySizeByDimensions(List dimensions) { - return 0; - } - - @Override - public long getEntriesByDimensions(List dimensions) { - return 0; - } - - @Override - public void incrementHitsByDimensions(List dimensions) { - - } - - @Override - public void incrementMissesByDimensions(List dimensions) { - - } - - @Override - public void incrementEvictionsByDimensions(List dimensions) { - - } - - @Override - public void incrementMemorySizeByDimensions(List dimensions, long amountBytes) { - - } - - @Override - public void incrementEntriesByDimensions(List dimensions) { - - } - - @Override - public void decrementEntriesByDimensions(List dimensions) { - - } -}