@ManagedAnnotation("queueSize") @ManagedDescription("The work queue size") public int queueSize() { return managedObject.getQueueSize(); }
@ManagedAnnotation("queueSize") @ManagedDescription("The work queue size") public int queueSize() { return managedObject.getQueueSize(); }
public void stopPopulation() { ExecutionService svc = nodeEngine.getExecutionService(); ManagedExecutorService mes = svc.getExecutor(MAP_LOADER_EXECUTOR); if (mes != null) { logger.info("stopPopulation; stopping.. completed load tasks: {}; remaining load tasks: {}", mes.getCompletedTaskCount(), mes.getQueueSize()); } allowPopulation = false; stopTime.set(nodeEngine.getClusterService().getClusterTime()); }
public ManagedExecutorDTO(ManagedExecutorService executorService) { this.name = executorService.getName(); this.queueSize = executorService.getQueueSize(); this.poolSize = executorService.getPoolSize(); this.remainingQueueCapacity = executorService.getRemainingQueueCapacity(); this.maximumPoolSize = executorService.getMaximumPoolSize(); this.isTerminated = executorService.isTerminated(); this.completedTaskCount = executorService.getCompletedTaskCount(); }
public ManagedExecutorDTO(ManagedExecutorService executorService) { this.name = executorService.getName(); this.queueSize = executorService.getQueueSize(); this.poolSize = executorService.getPoolSize(); this.remainingQueueCapacity = executorService.getRemainingQueueCapacity(); this.maximumPoolSize = executorService.getMaximumPoolSize(); this.isTerminated = executorService.isTerminated(); this.completedTaskCount = executorService.getCompletedTaskCount(); }