Examples of CountChangedWatcher


Examples of com.thenetcircle.comsumerdispatcher.distribution.watcher.CountChangedWatcher

            mbs.registerMBean(this, new ObjectName(domain, kv));
           
            //watchers
            purgeWatcher = new QueuePurgeWatcher();
            purgeWatcher.register(this);
            countChangedWatcher = new CountChangedWatcher();
            countChangedWatcher.register(this);
        }
        catch (Exception e)
        {
            throw new RuntimeException(e);
View Full Code Here

Examples of com.thenetcircle.comsumerdispatcher.distribution.watcher.CountChangedWatcher

  @Override
  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();
  }
View Full Code Here

Examples of com.thenetcircle.comsumerdispatcher.distribution.watcher.CountChangedWatcher

  }
 
  @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");
  }
View Full Code Here

Examples of com.thenetcircle.comsumerdispatcher.distribution.watcher.CountChangedWatcher

      return;
    }
   
    _logger.info("[THREAD INTERRUPT] going to stop all executors ...");
   
        CountChangedWatcher ccw = (CountChangedWatcher) countChangedWatcher;
        ccw.setNumToSet(0);
        ccw.execute();
    }
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.