org.jboss.monitor.services
Interface ScriptingListenerMBean

All Superinterfaces:
org.jboss.system.ListenerServiceMBean, org.jboss.system.Service, org.jboss.system.ServiceMBean
All Known Implementing Classes:
ScriptingListener

public interface ScriptingListenerMBean
extends org.jboss.system.ListenerServiceMBean

MBean interface of a configurable JMX notification listener that processes notification

Version:
$Revision: 1.1.2.2 $
Author:
Dimitris Andreadis

Field Summary
 
Fields inherited from interface org.jboss.system.ListenerServiceMBean
SL_FILTER_ELEMENT, SL_FILTER_FACTORY_ATTRIBUTE, SL_MBEAN_ELEMENT, SL_MBEAN_HANDBACK_ATTRIBUTE, SL_MBEAN_NAME_ATTRIBUTE, SL_NOTIFICATION_ELEMENT, SL_NOTIFICATION_TYPE_ATTRIBUTE, SL_ROOT_ELEMENT
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Method Summary
 long getAverageProcessingTime()
          The average notification processing time in msecs
 boolean getDynamicSubscriptions()
           
 long getNotificationsProcessed()
          The number of notification processed
 long getNotificationsReceived()
          The number of notifications received
 String getScript()
           
 String getScriptLanguage()
           
 long getTotalProcessingTime()
          The time spent processing notifications in msecs
 void setDynamicSubscriptions(boolean dynamicSubscriptions)
          Flag to enable/disable dynamic subscriptions
 void setScript(String script)
          The script to execute when a notification is received
 void setScriptLanguage(String language)
          The language the script is written into
 
Methods inherited from interface org.jboss.system.ListenerServiceMBean
setSubscriptionList
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Method Detail

setScript

public void setScript(String script)
The script to execute when a notification is received


getScript

public String getScript()

setScriptLanguage

public void setScriptLanguage(String language)
The language the script is written into


getScriptLanguage

public String getScriptLanguage()

setDynamicSubscriptions

public void setDynamicSubscriptions(boolean dynamicSubscriptions)
Flag to enable/disable dynamic subscriptions


getDynamicSubscriptions

public boolean getDynamicSubscriptions()

getNotificationsReceived

public long getNotificationsReceived()
The number of notifications received


getNotificationsProcessed

public long getNotificationsProcessed()
The number of notification processed


getTotalProcessingTime

public long getTotalProcessingTime()
The time spent processing notifications in msecs


getAverageProcessingTime

public long getAverageProcessingTime()
The average notification processing time in msecs



Copyright © 2002 JBoss Group, LLC. All Rights Reserved.