Class EventMonitoring
java.lang.Object
org.nuxeo.ecm.core.management.events.EventMonitoring
- All Implemented Interfaces:
EventMonitoringMBean
@Deprecated(since="11.4")
public class EventMonitoring
extends Object
implements EventMonitoringMBean
Deprecated.
since 11.4: superseded by dropwizard metrics
Monitoring MBean implementation.
- Author:
- Thierry Delprat
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
Deprecated.Gets number of active threads.Deprecated.Returns the statistics for Async Handlers.int
Deprecated.Gets the number of events in process or waiting for available slots.Deprecated.Get a summary of all registered listeners (name - type - enabled).Deprecated.Returns the statistics for Sync Handlers.boolean
Deprecated.Tells if time tracking is active for Async event handlers.boolean
Deprecated.Tells if async handlers execution is blocked.boolean
Deprecated.Tells if post-commit sync handlers execution is blocked.boolean
Deprecated.Getter for bulkMode processing.boolean
Deprecated.Tells if time tracking is active for Sync event handlers.void
Deprecated.Resets the statistics.void
setAsyncHandlersTrackingEnabled
(boolean collectAsyncHandlersExecTime) Deprecated.Enables or disables time tracking for Async event handlers.void
setBlockAsyncHandlers
(boolean blockAsyncHandlers) Deprecated.Blocks or enables async handlers execution.void
setBlockSyncPostCommitHandlers
(boolean blockSyncPostCommitHandlers) Deprecated.Blocks or enables post-commit sync handlers execution.void
setBulkModeEnabled
(boolean bulkModeEnabled) Deprecated.Enables/Disables bulkMode processing.void
setListenerEnabledFlag
(String listenerName, boolean enabled) Deprecated.Enables or disables a listener by its name.void
setSyncHandlersTrackingEnabled
(boolean collectSyncHandlersExecTime) Deprecated.Enables or disables time tracking for Sync event handlers.
-
Constructor Details
-
EventMonitoring
public EventMonitoring()Deprecated.
-
-
Method Details
-
isAsyncHandlersTrackingEnabled
public boolean isAsyncHandlersTrackingEnabled()Deprecated.Description copied from interface:EventMonitoringMBean
Tells if time tracking is active for Async event handlers.- Specified by:
isAsyncHandlersTrackingEnabled
in interfaceEventMonitoringMBean
-
setAsyncHandlersTrackingEnabled
public void setAsyncHandlersTrackingEnabled(boolean collectAsyncHandlersExecTime) Deprecated.Description copied from interface:EventMonitoringMBean
Enables or disables time tracking for Async event handlers.- Specified by:
setAsyncHandlersTrackingEnabled
in interfaceEventMonitoringMBean
-
isSyncHandlersTrackingEnabled
public boolean isSyncHandlersTrackingEnabled()Deprecated.Description copied from interface:EventMonitoringMBean
Tells if time tracking is active for Sync event handlers.- Specified by:
isSyncHandlersTrackingEnabled
in interfaceEventMonitoringMBean
-
setSyncHandlersTrackingEnabled
public void setSyncHandlersTrackingEnabled(boolean collectSyncHandlersExecTime) Deprecated.Description copied from interface:EventMonitoringMBean
Enables or disables time tracking for Sync event handlers.- Specified by:
setSyncHandlersTrackingEnabled
in interfaceEventMonitoringMBean
-
getActiveThreadsCount
public int getActiveThreadsCount()Deprecated.Description copied from interface:EventMonitoringMBean
Gets number of active threads.- Specified by:
getActiveThreadsCount
in interfaceEventMonitoringMBean
-
getEventsInQueueCount
public int getEventsInQueueCount()Deprecated.Description copied from interface:EventMonitoringMBean
Gets the number of events in process or waiting for available slots.- Specified by:
getEventsInQueueCount
in interfaceEventMonitoringMBean
-
getAsyncHandlersExecTime
Deprecated.Description copied from interface:EventMonitoringMBean
Returns the statistics for Async Handlers.- Specified by:
getAsyncHandlersExecTime
in interfaceEventMonitoringMBean
-
getSyncHandlersExecTime
Deprecated.Description copied from interface:EventMonitoringMBean
Returns the statistics for Sync Handlers.- Specified by:
getSyncHandlersExecTime
in interfaceEventMonitoringMBean
-
isBlockAsyncHandlers
public boolean isBlockAsyncHandlers()Deprecated.Description copied from interface:EventMonitoringMBean
Tells if async handlers execution is blocked.- Specified by:
isBlockAsyncHandlers
in interfaceEventMonitoringMBean
-
setBlockAsyncHandlers
public void setBlockAsyncHandlers(boolean blockAsyncHandlers) Deprecated.Description copied from interface:EventMonitoringMBean
Blocks or enables async handlers execution.- Specified by:
setBlockAsyncHandlers
in interfaceEventMonitoringMBean
-
isBlockSyncPostCommitHandlers
public boolean isBlockSyncPostCommitHandlers()Deprecated.Description copied from interface:EventMonitoringMBean
Tells if post-commit sync handlers execution is blocked.- Specified by:
isBlockSyncPostCommitHandlers
in interfaceEventMonitoringMBean
-
setBlockSyncPostCommitHandlers
public void setBlockSyncPostCommitHandlers(boolean blockSyncPostCommitHandlers) Deprecated.Description copied from interface:EventMonitoringMBean
Blocks or enables post-commit sync handlers execution.- Specified by:
setBlockSyncPostCommitHandlers
in interfaceEventMonitoringMBean
-
resetHandlersExecTime
public void resetHandlersExecTime()Deprecated.Description copied from interface:EventMonitoringMBean
Resets the statistics.- Specified by:
resetHandlersExecTime
in interfaceEventMonitoringMBean
-
getListenersConfig
Deprecated.Description copied from interface:EventMonitoringMBean
Get a summary of all registered listeners (name - type - enabled).- Specified by:
getListenersConfig
in interfaceEventMonitoringMBean
-
setListenerEnabledFlag
Deprecated.Description copied from interface:EventMonitoringMBean
Enables or disables a listener by its name.- Specified by:
setListenerEnabledFlag
in interfaceEventMonitoringMBean
-
isBulkModeEnabled
public boolean isBulkModeEnabled()Deprecated.Description copied from interface:EventMonitoringMBean
Getter for bulkMode processing. Bulk mode may be used by listeners to drop some processing.- Specified by:
isBulkModeEnabled
in interfaceEventMonitoringMBean
-
setBulkModeEnabled
public void setBulkModeEnabled(boolean bulkModeEnabled) Deprecated.Description copied from interface:EventMonitoringMBean
Enables/Disables bulkMode processing.- Specified by:
setBulkModeEnabled
in interfaceEventMonitoringMBean
-