public class WorksQueueMonitoring extends Object implements WorksQueueMonitoringMBean
Constructor and Description |
---|
WorksQueueMonitoring(String id) |
Modifier and Type | Method and Description |
---|---|
long[] |
getMetrics()
Gets scheduled/running/completed/cancelled counters at once
|
boolean |
isProcessing()
Is at least one queue is processing works ?
|
protected WorkManager |
manager() |
boolean |
toggleProcessing()
Toogles processing for all queues
|
public WorksQueueMonitoring(String id)
protected WorkManager manager()
public long[] getMetrics()
WorksQueueMonitoringMBean
getMetrics
in interface WorksQueueMonitoringMBean
public boolean isProcessing()
WorksQueueMonitoringMBean
isProcessing
in interface WorksQueueMonitoringMBean
public boolean toggleProcessing() throws InterruptedException
WorksQueueMonitoringMBean
toggleProcessing
in interface WorksQueueMonitoringMBean
InterruptedException
Copyright © 2016 Nuxeo SA. All rights reserved.