Search in sources :

Example 6 with CounterSupplier

use of org.opensearch.ml.stats.suppliers.CounterSupplier in project ml-commons by opensearch-project.

the class MLStatsTests method setup.

@Before
public void setup() {
    clusterStatName1 = "clusterStat1";
    nodeStatName1 = "nodeStat1";
    statsMap = new HashMap<String, MLStat<?>>() {

        {
            put(nodeStatName1, new MLStat<>(false, new CounterSupplier()));
            put(clusterStatName1, new MLStat<>(true, new CounterSupplier()));
        }
    };
    mlStats = new MLStats(statsMap);
}
Also used : CounterSupplier(org.opensearch.ml.stats.suppliers.CounterSupplier) Before(org.junit.Before)

Aggregations

CounterSupplier (org.opensearch.ml.stats.suppliers.CounterSupplier)6 Before (org.junit.Before)3 MLStat (org.opensearch.ml.stats.MLStat)3 MLStats (org.opensearch.ml.stats.MLStats)3 Settings (org.opensearch.common.settings.Settings)2 SettableSupplier (org.opensearch.ml.stats.suppliers.SettableSupplier)2 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 ClusterSettings (org.opensearch.common.settings.ClusterSettings)1 IndexScopedSettings (org.opensearch.common.settings.IndexScopedSettings)1 Environment (org.opensearch.env.Environment)1 MLSearchHandler (org.opensearch.ml.action.handler.MLSearchHandler)1 MLCircuitBreakerService (org.opensearch.ml.common.breaker.MLCircuitBreakerService)1 AnomalyLocalizerImpl (org.opensearch.ml.engine.algorithms.anomalylocalization.AnomalyLocalizerImpl)1 LocalSampleCalculator (org.opensearch.ml.engine.algorithms.sample.LocalSampleCalculator)1 MLIndicesHandler (org.opensearch.ml.indices.MLIndicesHandler)1 MLInputDatasetHandler (org.opensearch.ml.indices.MLInputDatasetHandler)1 MLExecuteTaskRunner (org.opensearch.ml.task.MLExecuteTaskRunner)1 MLPredictTaskRunner (org.opensearch.ml.task.MLPredictTaskRunner)1 MLTaskDispatcher (org.opensearch.ml.task.MLTaskDispatcher)1 MLTaskManager (org.opensearch.ml.task.MLTaskManager)1