com.bagri.server.hazelcast.task.stats.StatisticTotalsCollector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bagri-server-hazelcast Show documentation
Show all versions of bagri-server-hazelcast Show documentation
Bagri DB Cache: Hazelcast implementation
The newest version!
package com.bagri.server.hazelcast.task.stats;
import static com.bagri.server.hazelcast.serialize.TaskSerializationFactory.cli_CollectStatisticTotalsTask;
import java.util.concurrent.Callable;
import javax.management.openmbean.CompositeData;
import com.bagri.support.stats.StatisticsProvider;
import com.hazelcast.spring.context.SpringAware;
@SpringAware
public class StatisticTotalsCollector extends StatisticsTask implements Callable {
public StatisticTotalsCollector() {
super();
}
public StatisticTotalsCollector(String schemaName, String statsName) {
super(schemaName, statsName);
}
@Override
public int getId() {
return cli_CollectStatisticTotalsTask;
}
@Override
public CompositeData call() throws Exception {
StatisticsProvider xdmStats = getStats();
return xdmStats.getStatisticTotals();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy