Package org.apache.blur.utils

Examples of org.apache.blur.utils.GCAction


  private Set<AtomicBoolean> _stops = Collections.synchronizedSet(new HashSet<AtomicBoolean>());

  public DefaultBlurIndexWarmup(long warmupBandwidthThrottleBytesPerSec) {
    super(warmupBandwidthThrottleBytesPerSec);
    GCWatcher.registerAction(new GCAction() {
      @Override
      public void takeAction() throws Exception {
        synchronized (_stops) {
          for (AtomicBoolean stop : _stops) {
            stop.set(true);
View Full Code Here


        } catch (Throwable e) {
          LOG.error("Unknown error while trying to cleanup finished queries.", e);
        }
      }
    }, statusCleanupTimerDelay, statusCleanupTimerDelay);
    GCWatcher.registerAction(new GCAction() {
      @Override
      public void takeAction() throws Exception {
        stopAllQueriesForBackPressure();
      }
    });
View Full Code Here

TOP

Related Classes of org.apache.blur.utils.GCAction

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.