Search in sources :

Example 1 with LocalOperationStats

use of com.hazelcast.internal.monitor.LocalOperationStats in project hazelcast by hazelcast.

the class SlowOperationDetectorAbstractTest method getOperationStats.

static JsonObject getOperationStats(HazelcastInstance instance) {
    TimedMemberStateFactory timedMemberStateFactory = new TimedMemberStateFactory(getHazelcastInstanceImpl(instance));
    LocalOperationStats operationStats = timedMemberStateFactory.createTimedMemberState().getMemberState().getOperationStats();
    return ((JsonSerializable) operationStats).toJson();
}
Also used : TimedMemberStateFactory(com.hazelcast.internal.management.TimedMemberStateFactory) LocalOperationStats(com.hazelcast.internal.monitor.LocalOperationStats) JsonSerializable(com.hazelcast.json.internal.JsonSerializable)

Aggregations

TimedMemberStateFactory (com.hazelcast.internal.management.TimedMemberStateFactory)1 LocalOperationStats (com.hazelcast.internal.monitor.LocalOperationStats)1 JsonSerializable (com.hazelcast.json.internal.JsonSerializable)1