Search in sources :

Example 1 with LocalQueueStatsImpl

use of com.hazelcast.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.monitor.impl.LocalQueueStatsImpl)

Example 2 with LocalQueueStatsImpl

use of com.hazelcast.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.monitor.impl.LocalQueueStatsImpl)

Example 3 with LocalQueueStatsImpl

use of com.hazelcast.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.monitor.impl.LocalQueueStatsImpl) Data(com.hazelcast.nio.serialization.Data)

Example 4 with LocalQueueStatsImpl

use of com.hazelcast.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.monitor.impl.LocalQueueStatsImpl) Data(com.hazelcast.nio.serialization.Data)

Example 5 with LocalQueueStatsImpl

use of com.hazelcast.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.monitor.impl.LocalQueueStatsImpl) Data(com.hazelcast.nio.serialization.Data)

Aggregations

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