Examples of LockType


Examples of com.asakusafw.compiler.bulkloader.BulkLoaderScript.LockType

    }

    private ImportTable convert(InputDescription input) {
        assert input != null;
        BulkLoadImporterDescription desc = extract(input);
        LockType lockType;
        LockedOperation lockedOperation;
        switch (desc.getLockType()) {
        case CHECK:
            lockType = LockType.UNLOCKED;
            lockedOperation = LockedOperation.ERROR;
View Full Code Here

Examples of com.github.sardine.model.Locktype

    HttpLock entity = new HttpLock(url);
    Lockinfo body = new Lockinfo();
    Lockscope scopeType = new Lockscope();
    scopeType.setExclusive(new Exclusive());
    body.setLockscope(scopeType);
    Locktype lockType = new Locktype();
    lockType.setWrite(new Write());
    body.setLocktype(lockType);
    entity.setEntity(new StringEntity(SardineUtil.toXml(body), UTF_8));
    // Return the lock token
    return this.execute(entity, new LockResponseHandler());
  }
View Full Code Here

Examples of com.github.sardine.model.Locktype

    HttpUnlock entity = new HttpUnlock(url, token);
    Lockinfo body = new Lockinfo();
    Lockscope scopeType = new Lockscope();
    scopeType.setExclusive(new Exclusive());
    body.setLockscope(scopeType);
    Locktype lockType = new Locktype();
    lockType.setWrite(new Write());
    body.setLocktype(lockType);
    this.execute(entity, new VoidResponseHandler());
  }
View Full Code Here

Examples of com.googlecode.sardine.model.Locktype

    HttpLock entity = new HttpLock(url);
    Lockinfo body = new Lockinfo();
    Lockscope scopeType = new Lockscope();
    scopeType.setExclusive(new Exclusive());
    body.setLockscope(scopeType);
    Locktype lockType = new Locktype();
    lockType.setWrite(new Write());
    body.setLocktype(lockType);
    entity.setEntity(new StringEntity(SardineUtil.toXml(body), UTF_8));
    // Return the lock token
    return this.execute(entity, new LockResponseHandler());
  }
View Full Code Here

Examples of com.googlecode.sardine.model.Locktype

    HttpUnlock entity = new HttpUnlock(url, token);
    Lockinfo body = new Lockinfo();
    Lockscope scopeType = new Lockscope();
    scopeType.setExclusive(new Exclusive());
    body.setLockscope(scopeType);
    Locktype lockType = new Locktype();
    lockType.setWrite(new Write());
    body.setLocktype(lockType);
    this.execute(entity, new VoidResponseHandler());
  }
View Full Code Here

Examples of com.sleepycat.je.txn.LockType

             * from each db verify invalidate the cursor.  Use dirty read
             * (LockMode.NONE) because locks on the MapLN should never be held
             * for long, as that will cause deadlocks with splits and
             * checkpointing.
             */
            final LockType lockType = LockType.NONE;
            class Traversal implements CursorImpl.WithCursor {
                boolean allOk = true;

                public boolean withCursor(CursorImpl cursor,
                                          @SuppressWarnings("unused")
View Full Code Here

Examples of com.sleepycat.je.txn.LockType

    private long skipInternal(final long maxCount,
                              final boolean forward,
                              final DatabaseEntry key,
                              final DatabaseEntry data,
                              final LockMode lockMode) {
        final LockType lockType = getLockType(lockMode, false);
        synchronized (getTxnSynchronizer()) {
            checkTxnState();
            while (true) {
                final CursorImpl dup = beginMoveCursor(true);
                boolean success = false;
View Full Code Here

Examples of com.sleepycat.je.txn.LockType

                return (cmp != 0) ? cmp : 1;
            }
        };

        OperationStatus status = OperationStatus.NOTFOUND;
        final LockType lockType = getLockType(lockMode, false);
        final CursorImpl dup =
            beginMoveCursor(false /* searchAndPosition will add cursor */);
        try {
            final KeyChangeStatus result =
                searchInternal(dup, key, data,
View Full Code Here

Examples of com.sleepycat.je.txn.LockType

                    if (!first) {
                        cursorImpl.lockEof(LockType.RANGE_READ);
                    }

                    /* Use a range lock for getFirst. */
                    final LockType lockType = getLockType(lockMode, first);

                    /* Perform operation. */
                    final OperationStatus status =
                        positionAllowPhantoms(key, data, lockType, first);

View Full Code Here

Examples of com.sleepycat.je.txn.LockType

         final SearchMode searchMode,
         final Comparator<byte[]> searchComparator) {

        try {
            if (!isSerializableIsolation(lockMode)) {
                final LockType lockType = getLockType(lockMode, false);
                final KeyChangeStatus result = searchAllowPhantoms
                    (key, data, lockType, lockType, searchMode,
                     searchComparator, cursorRangeConstraint);
                return result.status;
            }

            /*
             * Perform range locking to prevent phantoms and handle restarts.
             */
            while (true) {
                try {
                    /* Do not use a range lock for the initial search. */
                    final LockType searchLockType =
                        getLockType(lockMode, false);

                    /* Switch to a range lock when advancing forward. */
                    final LockType advanceLockType =
                        getLockType(lockMode, true);

                    /* Do not modify key/data params until SUCCESS. */
                    final DatabaseEntry tryKey = cloneEntry(key);
                    final DatabaseEntry tryData = cloneEntry(data);
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.