public class EventMonitoring extends Object implements EventMonitoringMBean
Constructor and Description |
---|
EventMonitoring() |
Modifier and Type | Method and Description |
---|---|
int |
getActiveThreadsCount()
Gets number of active threads.
|
String |
getAsyncHandlersExecTime()
Returns the statistics for Async Handlers.
|
int |
getEventsInQueueCount()
Gets the number of events in process or waiting for available slots.
|
String |
getListenersConfig()
Get a summary of all registered listeners (name - type - enabled).
|
String |
getSyncHandlersExecTime()
Returns the statistics for Sync Handlers.
|
boolean |
isAsyncHandlersTrackingEnabled()
Tells if time tracking is active for Async event handlers.
|
boolean |
isBlockAsyncHandlers()
Tells if async handlers execution is blocked.
|
boolean |
isBlockSyncPostCommitHandlers()
Tells if post-commit sync handlers execution is blocked.
|
boolean |
isBulkModeEnabled()
Getter for bulkMode processing.
|
boolean |
isSyncHandlersTrackingEnabled()
Tells if time tracking is active for Sync event handlers.
|
void |
resetHandlersExecTime()
Resets the statistics.
|
void |
setAsyncHandlersTrackingEnabled(boolean collectAsyncHandlersExecTime)
Enables or disables time tracking for Async event handlers.
|
void |
setBlockAsyncHandlers(boolean blockAsyncHandlers)
Blocks or enables async handlers execution.
|
void |
setBlockSyncPostCommitHandlers(boolean blockSyncPostCommitHandlers)
Blocks or enables post-commit sync handlers execution.
|
void |
setBulkModeEnabled(boolean bulkModeEnabled)
Enables/Disables bulkMode processing.
|
void |
setListenerEnabledFlag(String listenerName,
boolean enabled)
Enables or disables a listener by its name.
|
void |
setSyncHandlersTrackingEnabled(boolean collectSyncHandlersExecTime)
Enables or disables time tracking for Sync event handlers.
|
public boolean isAsyncHandlersTrackingEnabled()
EventMonitoringMBean
isAsyncHandlersTrackingEnabled
in interface EventMonitoringMBean
public void setAsyncHandlersTrackingEnabled(boolean collectAsyncHandlersExecTime)
EventMonitoringMBean
setAsyncHandlersTrackingEnabled
in interface EventMonitoringMBean
public boolean isSyncHandlersTrackingEnabled()
EventMonitoringMBean
isSyncHandlersTrackingEnabled
in interface EventMonitoringMBean
public void setSyncHandlersTrackingEnabled(boolean collectSyncHandlersExecTime)
EventMonitoringMBean
setSyncHandlersTrackingEnabled
in interface EventMonitoringMBean
public int getActiveThreadsCount()
EventMonitoringMBean
getActiveThreadsCount
in interface EventMonitoringMBean
public int getEventsInQueueCount()
EventMonitoringMBean
getEventsInQueueCount
in interface EventMonitoringMBean
public String getAsyncHandlersExecTime()
EventMonitoringMBean
getAsyncHandlersExecTime
in interface EventMonitoringMBean
public String getSyncHandlersExecTime()
EventMonitoringMBean
getSyncHandlersExecTime
in interface EventMonitoringMBean
public boolean isBlockAsyncHandlers()
EventMonitoringMBean
isBlockAsyncHandlers
in interface EventMonitoringMBean
public void setBlockAsyncHandlers(boolean blockAsyncHandlers)
EventMonitoringMBean
setBlockAsyncHandlers
in interface EventMonitoringMBean
public boolean isBlockSyncPostCommitHandlers()
EventMonitoringMBean
isBlockSyncPostCommitHandlers
in interface EventMonitoringMBean
public void setBlockSyncPostCommitHandlers(boolean blockSyncPostCommitHandlers)
EventMonitoringMBean
setBlockSyncPostCommitHandlers
in interface EventMonitoringMBean
public void resetHandlersExecTime()
EventMonitoringMBean
resetHandlersExecTime
in interface EventMonitoringMBean
public String getListenersConfig()
EventMonitoringMBean
getListenersConfig
in interface EventMonitoringMBean
public void setListenerEnabledFlag(String listenerName, boolean enabled)
EventMonitoringMBean
setListenerEnabledFlag
in interface EventMonitoringMBean
public boolean isBulkModeEnabled()
EventMonitoringMBean
isBulkModeEnabled
in interface EventMonitoringMBean
public void setBulkModeEnabled(boolean bulkModeEnabled)
EventMonitoringMBean
setBulkModeEnabled
in interface EventMonitoringMBean
Copyright © 2015 Nuxeo SA. All rights reserved.