Package org.eclipse.orion.server.core.resources

Examples of org.eclipse.orion.server.core.resources.FileLocker.tryLock()


    }
    long start = System.currentTimeMillis();
    FileLocker lock = new FileLocker(lockFile);
    int indexed = 0, userCount = 0, activeUserCount = 0;
    try {
      if (!lock.tryLock()) {
        if (logger.isInfoEnabled()) {
          logger.info("Search indexer: another process is currently indexing"); //$NON-NLS-1$
        }
        schedule(IDLE_DELAY);
        return Status.OK_STATUS;
View Full Code Here


      logger.debug("Purging indexes"); //$NON-NLS-1$
    long start = System.currentTimeMillis();
    FileLocker lock = new FileLocker(lockFile);
    SolrQuery query = findAllQuery();
    try {
      if (!lock.tryLock()) {
        if (logger.isInfoEnabled()) {
          logger.info("Search index purge: another process is currently running");
        }
        schedule(DEFAULT_DELAY * 2);
        return Status.OK_STATUS;
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.