Package org.elasticsearch.common.blobstore.fs

Examples of org.elasticsearch.common.blobstore.fs.AbstractFsBlobContainer


    @Override public SnapshotLock obtainSnapshotLock() throws Exception {
        if (!snapshotLock) {
            return NO_SNAPSHOT_LOCK;
        }
        AbstractFsBlobContainer fsBlobContainer = (AbstractFsBlobContainer) blobContainer;
        NativeFSLockFactory lockFactory = new NativeFSLockFactory(fsBlobContainer.filePath());

        Lock lock = lockFactory.makeLock("snapshot.lock");
        boolean obtained = lock.obtain();
        if (!obtained) {
            throw new ElasticSearchIllegalStateException("failed to obtain snapshot lock [" + lock + "]");
View Full Code Here

TOP

Related Classes of org.elasticsearch.common.blobstore.fs.AbstractFsBlobContainer

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.