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

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

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

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

import java.util.concurrent.Callable;

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

@SpringAware
public class StatisticsReseter extends StatisticsTask implements Callable  {

	public StatisticsReseter() {
		super();
	}

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

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

	@Override
	public Boolean call() throws Exception {
		
		StatisticsProvider xdmStats = getStats();
		xdmStats.resetStatistics();
        return true; 
    }


}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy