Search in sources :

Example 1 with LocalQueueStatsImpl

use of com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl in project hazelcast by hazelcast.

the class SizeOperation method afterRun.

@Override
public void afterRun() throws Exception {
    LocalQueueStatsImpl stats = getQueueService().getLocalQueueStatsImpl(name);
    stats.incrementOtherOperations();
}
Also used : LocalQueueStatsImpl(com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl)

Example 2 with LocalQueueStatsImpl

use of com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl in project hazelcast by hazelcast.

the class ClearOperation method afterRun.

@Override
public void afterRun() throws Exception {
    LocalQueueStatsImpl stats = getQueueService().getLocalQueueStatsImpl(name);
    stats.incrementOtherOperations();
    for (Data data : dataMap.values()) {
        publishEvent(ItemEventType.REMOVED, data);
    }
}
Also used : LocalQueueStatsImpl(com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl) Data(com.hazelcast.internal.serialization.Data)

Example 3 with LocalQueueStatsImpl

use of com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl in project hazelcast by hazelcast.

the class CompareAndRemoveOperation method afterRun.

@Override
public void afterRun() throws Exception {
    LocalQueueStatsImpl stats = getQueueService().getLocalQueueStatsImpl(name);
    stats.incrementOtherOperations();
    if (hasListener()) {
        for (Data data : dataMap.values()) {
            publishEvent(ItemEventType.REMOVED, data);
        }
    }
}
Also used : LocalQueueStatsImpl(com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl) Data(com.hazelcast.internal.serialization.Data)

Example 4 with LocalQueueStatsImpl

use of com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl in project hazelcast by hazelcast.

the class RemoveOperation method afterRun.

@Override
public void afterRun() throws Exception {
    LocalQueueStatsImpl stats = getQueueService().getLocalQueueStatsImpl(name);
    stats.incrementOtherOperations();
    if (itemId != -1) {
        publishEvent(ItemEventType.REMOVED, data);
    }
}
Also used : LocalQueueStatsImpl(com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl)

Example 5 with LocalQueueStatsImpl

use of com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl in project hazelcast by hazelcast.

the class AddAllOperation method afterRun.

@Override
public void afterRun() throws Exception {
    LocalQueueStatsImpl stats = getQueueService().getLocalQueueStatsImpl(name);
    stats.incrementOtherOperations();
    if (Boolean.TRUE.equals(response)) {
        for (Data data : dataList) {
            publishEvent(ItemEventType.ADDED, data);
        }
    }
}
Also used : LocalQueueStatsImpl(com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl) Data(com.hazelcast.internal.serialization.Data)

Aggregations

LocalQueueStatsImpl (com.hazelcast.internal.monitor.impl.LocalQueueStatsImpl)17 Data (com.hazelcast.internal.serialization.Data)4 Address (com.hazelcast.cluster.Address)1 IPartition (com.hazelcast.internal.partition.IPartition)1