Examples of MultiMapContainer


Examples of com.hazelcast.multimap.MultiMapContainer

    public ValuesOperation(String name) {
        super(name);
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
        response = new MultiMapResponse(container.values());
    }
View Full Code Here

Examples of com.hazelcast.multimap.MultiMapContainer

        }
    }

    public void run() throws Exception {
        begin = Clock.currentTimeMillis();
        MultiMapContainer container = getOrCreateContainer();
        MultiMapWrapper wrapper = container.getOrCreateMultiMapWrapper(dataKey);
        response = true;
        for (Long recordId : recordIds) {
            if (!wrapper.containsRecordId(recordId)) {
                response = false;
                return;
View Full Code Here

Examples of com.hazelcast.multimap.MultiMapContainer

        this.caller = caller;
        this.threadId = threadId;
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        if (!container.txnLock(dataKey, caller, threadId, ttl + LOCK_EXTENSION_TIME_IN_MILLIS)) {
            throw new TransactionException(
                    "Lock is not owned by the transaction! -> " + container.getLockOwnerInfo(dataKey)
            );
        }
    }
View Full Code Here

Examples of com.hazelcast.multimap.MultiMapContainer

    public SizeOperation(String name) {
        super(name);
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        response = container.size();
        ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
    }
View Full Code Here

Examples of com.hazelcast.multimap.MultiMapContainer

    public EntrySetOperation(String name) {
        super(name);
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
        response = new EntrySetResponse(container.copyCollections(), getNodeEngine());
    }
View Full Code Here

Examples of com.hazelcast.multimap.MultiMapContainer

    public ClearBackupOperation(String name) {
        super(name);
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        container.clear();
        response = true;
    }
View Full Code Here

Examples of com.hazelcast.multimap.MultiMapContainer

    public ClearOperation(String name) {
        super(name);
    }

    public void beforeRun() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        shouldBackup = container.size() > 0;
    }
View Full Code Here

Examples of com.hazelcast.multimap.MultiMapContainer

        MultiMapContainer container = getOrCreateContainer();
        shouldBackup = container.size() > 0;
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        response = container.clear();
    }
View Full Code Here

Examples of com.hazelcast.multimap.impl.MultiMapContainer

        this.value = value;
        this.threadId = threadId;
    }

    public void run() throws Exception {
        MultiMapContainer container = getOrCreateContainer();
        ((MultiMapService) getService()).getLocalMultiMapStatsImpl(name).incrementOtherOperations();
        if (key != null && value != null) {
            response = container.containsEntry(isBinary(), key, value);
        } else if (key != null) {
            response = container.containsKey(key);
        } else {
            response = container.containsValue(isBinary(), value);
        }
    }
View Full Code Here

Examples of com.hazelcast.multimap.impl.MultiMapContainer

    @Override
    public boolean shouldWait() {
        if (key == null) {
            return false;
        }
        MultiMapContainer container = getOrCreateContainer();
        if (container.isTransactionallyLocked(key)) {
            return !container.canAcquireLock(key, getCallerUuid(), threadId);
        }
        return false;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.