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.3 $
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

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


getScript

String getScript()

setScriptLanguage

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


getScriptLanguage

String getScriptLanguage()

setDynamicSubscriptions

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


getDynamicSubscriptions

boolean getDynamicSubscriptions()

getNotificationsReceived

long getNotificationsReceived()
The number of notifications received


getNotificationsProcessed

long getNotificationsProcessed()
The number of notification processed


getTotalProcessingTime

long getTotalProcessingTime()
The time spent processing notifications in msecs


getAverageProcessingTime

long getAverageProcessingTime()
The average notification processing time in msecs



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