Package proj.zoie.api

Examples of proj.zoie.api.ZoieException


    synchronized (this) {
      while (_batch.size() >= _batchSize) {
        if (_consumerThread == null || !_consumerThread.isAlive() || _consumerThread._stop) {
          ZoieHealth.setFatal();
          throw new ZoieException("consumer thread has stopped");
        }
        try {
          this.notifyAll();
          this.wait();
        } catch (InterruptedException e) {
View Full Code Here


      synchronized (cachemonitor) {
        cachemonitor.notifyAll();
        long elapsed = System.currentTimeMillis() - begintime;
        if (elapsed > timeout) {
          log.debug("refreshCached reader timeout in " + elapsed + "ms");
          throw new ZoieException("refreshCached reader timeout in " + elapsed + "ms");
        }
        long timetowait = Math.min(timeout - elapsed, 200);
        try {
          cachemonitor.wait(timetowait);
        } catch (InterruptedException e) {
View Full Code Here

      synchronized (this) {
        try {
          while (_flushedVersion == null
              || _versionComparator.compare(_flushedVersion, version) < 0) {
            if (now >= due) {
              throw new ZoieException("sync timed out");
            }
            try {
              this.notifyAll();
              _flushing = true;
              this.wait(Math.min(due - now, 200));
View Full Code Here

      synchronized (cachemonitor) {
        cachemonitor.notifyAll();
        long elapsed = System.currentTimeMillis() - begintime;
        if (elapsed > timeout) {
          log.debug("refreshCached reader timeout in " + elapsed + "ms");
          throw new ZoieException("refreshCached reader timeout in " + elapsed + "ms");
        }
        long timetowait = Math.min(timeout - elapsed, 200);
        try {
          cachemonitor.wait(timetowait);
        } catch (InterruptedException e) {
View Full Code Here

        while (_currentBatchSize > _maxBatchSize) {
          // check if load manager thread is alive
          if (_loadMgrThread == null || !_loadMgrThread.isAlive()) {
            ZoieHealth.setFatal();
            throw new ZoieException("fatal: indexing thread loader manager has stopped");
          }

          this.notifyAll(); // wake up load manager thread

          try {
View Full Code Here

    }

    long t1 = System.currentTimeMillis();
    try {
      if (readOnlyMemIndex == null) {
        throw new ZoieException("readOnlyMemIndex is null");
      }
      _luceneDataLoader.loadFromIndex(readOnlyMemIndex);
    } catch (Exception e) {
      ZoieHealth.setFatal();
      log.error(e.getMessage(), e);
View Full Code Here

TOP

Related Classes of proj.zoie.api.ZoieException

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.