Examples of LockStore


Examples of com.arjuna.ats.txoj.lockstore.LockStore

/*      */
/* 1002 */             param[0] = this.lmAttributes.lockStoreType;
/* 1003 */             param[1] = new Integer(1);
/* 1004 */             param[2] = this.systemKey;
/*      */
/* 1006 */             this.lockStore = new LockStore(param);
/*      */
/* 1008 */             param = null;
/*      */           }
/*      */         }
/*      */
View Full Code Here

Examples of com.hazelcast.concurrent.lock.LockStore

        Node node = getNode(hz);
        LockServiceImpl lockService = node.nodeEngine.getService(LockServiceImpl.SERVICE_NAME);

        Partition partition = instances[0].getPartitionService().getPartition(partitionKey);
        LockStore lockStore = lockService.getLockStore(partition.getPartitionId(), new InternalLockNamespace(lock.getName()));
        assertTrue(lockStore.isLocked(node.getSerializationService().toData(lock.getName())));
    }
View Full Code Here

Examples of org.apache.slide.store.LockStore

                currentStoreChildStores.put
                    (LOCK_STORE, referenceDefinition.getAttribute("store"));
                getLogger().log("Lock store store references " + referenceDefinition.getAttribute("store"),LOG_CHANNEL,Logger.INFO);
            } catch (ConfigurationException ex) {
                getLogger().log("Lock store store: " + lockStoreDefinition.getAttribute("classname"),LOG_CHANNEL,Logger.INFO);
                LockStore lockStore =
                    (LockStore) loadChildStore(lockStoreDefinition,
                                               storeParameters);
                if (lockStore != null) {
                    currentStoreChildStores.put(LOCK_STORE, lockStore);
                }
View Full Code Here

Examples of org.apache.slide.store.LockStore

                    (SecurityStore) dereferenceStore (SECURITY_STORE, childStores);
               
                store.setSecurityStore (securityStore);
               
                // assign LockStore
                LockStore lockStore =
                    (LockStore) dereferenceStore (LOCK_STORE, childStores);
               
                store.setLockStore (lockStore);
               
                // assign RevisionDescriptorsStore
View Full Code Here

Examples of org.apache.slide.store.LockStore

                currentStoreChildStores.put
                    (LOCK_STORE, referenceDefinition.getAttribute("store"));
                getLogger().log("Lock store store references " + referenceDefinition.getAttribute("store"),LOG_CHANNEL,Logger.INFO);
            } catch (ConfigurationException ex) {
                getLogger().log("Lock store store: " + lockStoreDefinition.getAttribute("classname"),LOG_CHANNEL,Logger.INFO);
                LockStore lockStore =
                    (LockStore) loadChildStore(lockStoreDefinition,
                                               storeParameters);
                if (lockStore != null) {
                    currentStoreChildStores.put(LOCK_STORE, lockStore);
                }
View Full Code Here

Examples of org.jboss.weld.context.beanstore.LockStore

        return null;
    }

    @Override
    protected LockStore getLockStore() {
        LockStore lockStore = this.lockStore;
        if (lockStore == null) {
            //needed to prevent some edge cases
            //where we would otherwise enter an infinite loop
            lockStore = CURRENT_LOCK_STORE.get();
            if(lockStore != null) {
                return lockStore;
            }
            HttpSession session = getSession(false);
            if(session == null) {
                lockStore = new LockStore();
                CURRENT_LOCK_STORE.set(lockStore);
                try {
                session = getSession(true);
                } finally {
                    CURRENT_LOCK_STORE.remove();
                }
            }
            lockStore = (LockStore) session.getAttribute(SESSION_KEY);
            if (lockStore == null) {
                //we don't really have anything we can lock on
                //so we just acquire a big global lock
                //this should only be taken on session creation though
                //so should not be a problem
                synchronized (AbstractSessionBeanStore.class) {
                    lockStore = (LockStore) session.getAttribute(SESSION_KEY);
                    if (lockStore == null) {
                        lockStore = new LockStore();
                        session.setAttribute(SESSION_KEY, lockStore);
                    }
                }
            }
            this.lockStore = lockStore;
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.