Class WorksQueueMonitoring
- java.lang.Object
-
- org.nuxeo.ecm.core.management.works.WorksQueueMonitoring
-
- All Implemented Interfaces:
WorksQueueMonitoringMBean
public class WorksQueueMonitoring extends Object implements WorksQueueMonitoringMBean
-
-
Constructor Summary
Constructors Constructor Description WorksQueueMonitoring(String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long[]
getMetrics()
Gets scheduled/running/completed/cancelled counters at onceboolean
isProcessing()
Is at least one queue is processing works ?protected WorkManager
manager()
boolean
toggleProcessing()
Toogles processing for all queues
-
-
-
Constructor Detail
-
WorksQueueMonitoring
public WorksQueueMonitoring(String id)
-
-
Method Detail
-
manager
protected WorkManager manager()
-
getMetrics
public long[] getMetrics()
Description copied from interface:WorksQueueMonitoringMBean
Gets scheduled/running/completed/cancelled counters at once- Specified by:
getMetrics
in interfaceWorksQueueMonitoringMBean
-
isProcessing
public boolean isProcessing()
Description copied from interface:WorksQueueMonitoringMBean
Is at least one queue is processing works ?- Specified by:
isProcessing
in interfaceWorksQueueMonitoringMBean
-
toggleProcessing
public boolean toggleProcessing()
Description copied from interface:WorksQueueMonitoringMBean
Toogles processing for all queues- Specified by:
toggleProcessing
in interfaceWorksQueueMonitoringMBean
-
-