All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.bagri.server.hazelcast.task.stats.StatisticSeriesCollector Maven / Gradle / Ivy

The newest version!
package com.bagri.server.hazelcast.task.stats;

import static com.bagri.server.hazelcast.serialize.TaskSerializationFactory.cli_CollectStatisticSeriesTask;

import java.util.concurrent.Callable;

import javax.management.openmbean.TabularData;

import com.bagri.support.stats.StatisticsProvider;
import com.hazelcast.spring.context.SpringAware;

@SpringAware
public class StatisticSeriesCollector extends StatisticsTask implements Callable  {

	
	public StatisticSeriesCollector() {
		super();
	}

	public StatisticSeriesCollector(String schemaName, String statsName) {
		super(schemaName, statsName);
	}

	@Override
	public int getId() {
		return cli_CollectStatisticSeriesTask;
	}

	@Override
	public TabularData call() throws Exception {
		
		StatisticsProvider xdmStats = getStats();
        return xdmStats.getStatisticSeries(); 
    }
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy