Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.management.events
Class EventMonitoring

java.lang.Object
  extended by org.nuxeo.ecm.core.management.events.EventMonitoring
All Implemented Interfaces:
EventMonitoringMBean

public class EventMonitoring
extends Object
implements EventMonitoringMBean

Monitoring MBean implementation.

Author:
Thierry Delprat

Constructor Summary
EventMonitoring()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventMonitoring

public EventMonitoring()
Method Detail

isAsyncHandlersTrackingEnabled

public boolean isAsyncHandlersTrackingEnabled()
Description copied from interface: EventMonitoringMBean
Tells if time tracking is active for Async event handlers.

Specified by:
isAsyncHandlersTrackingEnabled in interface EventMonitoringMBean

setAsyncHandlersTrackingEnabled

public void setAsyncHandlersTrackingEnabled(boolean collectAsyncHandlersExecTime)
Description copied from interface: EventMonitoringMBean
Enables or disables time tracking for Async event handlers.

Specified by:
setAsyncHandlersTrackingEnabled in interface EventMonitoringMBean

isSyncHandlersTrackingEnabled

public boolean isSyncHandlersTrackingEnabled()
Description copied from interface: EventMonitoringMBean
Tells if time tracking is active for Sync event handlers.

Specified by:
isSyncHandlersTrackingEnabled in interface EventMonitoringMBean

setSyncHandlersTrackingEnabled

public void setSyncHandlersTrackingEnabled(boolean collectSyncHandlersExecTime)
Description copied from interface: EventMonitoringMBean
Enables or disables time tracking for Sync event handlers.

Specified by:
setSyncHandlersTrackingEnabled in interface EventMonitoringMBean

getActiveThreadsCount

public int getActiveThreadsCount()
Description copied from interface: EventMonitoringMBean
Gets number of active threads.

Specified by:
getActiveThreadsCount in interface EventMonitoringMBean

getEventsInQueueCount

public int getEventsInQueueCount()
Description copied from interface: EventMonitoringMBean
Gets the number of events in process or waiting for available slots.

Specified by:
getEventsInQueueCount in interface EventMonitoringMBean

getAsyncHandlersExecTime

public String getAsyncHandlersExecTime()
Description copied from interface: EventMonitoringMBean
Returns the statistics for Async Handlers.

Specified by:
getAsyncHandlersExecTime in interface EventMonitoringMBean

getSyncHandlersExecTime

public String getSyncHandlersExecTime()
Description copied from interface: EventMonitoringMBean
Returns the statistics for Sync Handlers.

Specified by:
getSyncHandlersExecTime in interface EventMonitoringMBean

isBlockAsyncHandlers

public boolean isBlockAsyncHandlers()
Description copied from interface: EventMonitoringMBean
Tells if async handlers execution is blocked.

Specified by:
isBlockAsyncHandlers in interface EventMonitoringMBean

setBlockAsyncHandlers

public void setBlockAsyncHandlers(boolean blockAsyncHandlers)
Description copied from interface: EventMonitoringMBean
Blocks or enables async handlers execution.

Specified by:
setBlockAsyncHandlers in interface EventMonitoringMBean

isBlockSyncPostCommitHandlers

public boolean isBlockSyncPostCommitHandlers()
Description copied from interface: EventMonitoringMBean
Tells if post-commit sync handlers execution is blocked.

Specified by:
isBlockSyncPostCommitHandlers in interface EventMonitoringMBean

setBlockSyncPostCommitHandlers

public void setBlockSyncPostCommitHandlers(boolean blockSyncPostCommitHandlers)
Description copied from interface: EventMonitoringMBean
Blocks or enables post-commit sync handlers execution.

Specified by:
setBlockSyncPostCommitHandlers in interface EventMonitoringMBean

resetHandlersExecTime

public void resetHandlersExecTime()
Description copied from interface: EventMonitoringMBean
Resets the statistics.

Specified by:
resetHandlersExecTime in interface EventMonitoringMBean

getListenersConfig

public String getListenersConfig()
Description copied from interface: EventMonitoringMBean
Get a summary of all registered listeners (name - type - enabled).

Specified by:
getListenersConfig in interface EventMonitoringMBean

setListenerEnabledFlag

public void setListenerEnabledFlag(String listenerName,
                                   boolean enabled)
Description copied from interface: EventMonitoringMBean
Enables or disables a listener by its name.

Specified by:
setListenerEnabledFlag in interface EventMonitoringMBean

isBulkModeEnabled

public boolean isBulkModeEnabled()
Description copied from interface: EventMonitoringMBean
Getter for bulkMode processing. Bulk mode may be used by listeners to drop some processing.

Specified by:
isBulkModeEnabled in interface EventMonitoringMBean

setBulkModeEnabled

public void setBulkModeEnabled(boolean bulkModeEnabled)
Description copied from interface: EventMonitoringMBean
Enables/Disables bulkMode processing.

Specified by:
setBulkModeEnabled in interface EventMonitoringMBean

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.