Search in sources :

Example 11 with LocalQueueStatsImpl

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

the class RemainingCapacityOperation method afterRun.

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

Example 12 with LocalQueueStatsImpl

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

the class TxnOfferOperation method afterRun.

@Override
public void afterRun() throws Exception {
    LocalQueueStatsImpl queueStats = getQueueService().getLocalQueueStatsImpl(name);
    if (Boolean.TRUE.equals(response)) {
        queueStats.incrementOffers();
        publishEvent(ItemEventType.ADDED, data);
    } else {
        queueStats.incrementRejectedOffers();
    }
}
Also used : LocalQueueStatsImpl(com.hazelcast.monitor.impl.LocalQueueStatsImpl)

Example 13 with LocalQueueStatsImpl

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

the class TxnPeekOperation method afterRun.

@Override
public void afterRun() throws Exception {
    if (response != null) {
        LocalQueueStatsImpl localQueueStatsImpl = getQueueService().getLocalQueueStatsImpl(name);
        localQueueStatsImpl.incrementOtherOperations();
    }
}
Also used : LocalQueueStatsImpl(com.hazelcast.monitor.impl.LocalQueueStatsImpl)

Example 14 with LocalQueueStatsImpl

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

the class TxnPollOperation method afterRun.

@Override
public void afterRun() throws Exception {
    LocalQueueStatsImpl queueStats = getQueueService().getLocalQueueStatsImpl(name);
    if (response == null) {
        queueStats.incrementEmptyPolls();
    } else {
        queueStats.incrementPolls();
        publishEvent(ItemEventType.REMOVED, data);
    }
}
Also used : LocalQueueStatsImpl(com.hazelcast.monitor.impl.LocalQueueStatsImpl)

Example 15 with LocalQueueStatsImpl

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

the class DrainOperation 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)

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