Package com.thenetcircle.comsumerdispatcher.distribution.watcher

Examples of com.thenetcircle.comsumerdispatcher.distribution.watcher.CountChangedWatcher.execute()


  public void addJobExecutor(int numToAdd) {
    _logger.info("[THREAD ADD] going to add " + numToAdd + " new executors ...");
   
        CountChangedWatcher ccw = (CountChangedWatcher) countChangedWatcher;
        ccw.setNumToSet(numToAdd + activeExecutorCount.intValue());
        ccw.execute();
  }
 
  @Override
  public void removeJobExecutors(int numToRemove) {
    _logger.info("[THREAD INTERRUPT] going to stop " + numToRemove + " executors ...");
View Full Code Here


  @Override
  public void removeJobExecutors(int numToRemove) {
    _logger.info("[THREAD INTERRUPT] going to stop " + numToRemove + " executors ...");
        CountChangedWatcher ccw = (CountChangedWatcher) countChangedWatcher;
        ccw.setNumToSet(activeExecutorCount.intValue() - numToRemove);
        ccw.execute();
    _logger.info("[THREAD INTERRUPT] stopped");
  }
 
  @Override
    public void stopAllExecutors() {
View Full Code Here

   
    _logger.info("[THREAD INTERRUPT] going to stop all executors ...");
   
        CountChangedWatcher ccw = (CountChangedWatcher) countChangedWatcher;
        ccw.setNumToSet(0);
        ccw.execute();
    }

  @Override
  public void purgeQueue() {
    _logger.info("[Queue Purge] going to purge queue ...: " + job.getQueue());
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.