Package com.thinkaurelius.titan.diskstorage.locking.consistentkey

Examples of com.thinkaurelius.titan.diskstorage.locking.consistentkey.ExpectedValueCheckingStore


                    store[i] = new TransactionalLockStore(store[i]);
                } else if (storeFeatures.supportsConsistentKeyOperations()) {

                    KeyColumnValueStore lockerStore = manager[i].openDatabase(DB_NAME + "_lock_");
                    ConsistentKeyLocker c = new ConsistentKeyLocker.Builder(lockerStore).fromCommonsConfig(sc).mediatorName(concreteClassName + i).build();
                    store[i] = new ExpectedValueCheckingStore(store[i], c);
                    for (int j = 0; j < NUM_TX; j++)
                        tx[i][j] = new ExpectedValueCheckingTransaction(tx[i][j], manager[i].beginTransaction(new StoreTxConfig(ConsistencyLevel.KEY_CONSISTENT)), GraphDatabaseConfiguration.READ_ATTEMPTS_DEFAULT);
                } else throw new IllegalArgumentException("Store needs to support some form of locking");
            }
        }
View Full Code Here


            if (storeFeatures.supportsTransactions()) {
                store = new TransactionalLockStore(store);
            } else if (storeFeatures.supportsConsistentKeyOperations()) {
                if (lockEnabled) {
                    final String lockerName = store.getName() + LOCK_STORE_SUFFIX;
                    store = new ExpectedValueCheckingStore(store, getLocker(lockerName));
                } else {
                    store = new ExpectedValueCheckingStore(store, null);
                }
            } else throw new IllegalArgumentException("Store needs to support some form of locking");
        }
        return store;
    }
View Full Code Here

TOP

Related Classes of com.thinkaurelius.titan.diskstorage.locking.consistentkey.ExpectedValueCheckingStore

Copyright © 2018 www.massapicom. 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.