mx4j.tools.jython
Interface JythonRunnerMBean
- JythonRunner
public interface JythonRunnerMBean
Management interface for the JythonRunner MBean.
boolean | getCacheScript() - Returns whether the script should be kept in the cache.
|
String | getNotificationType() - Gets the specific notification type being listened
|
javax.management.ObjectName | getObservedObject() - Gets the object being observed by this MBean
|
String | getScript() - Returns the script as text.
|
URL | getScriptURL() - Returns the URL pointing to the script source
|
boolean | getUseText() - Indicates wether to use the script given in the ScripText variable or the one given in the script File.
|
void | runScript() - Executes a given script.
|
void | setCacheScript(boolean useCache) - Sets whether the script should be kept in the cache.
|
void | setNotificationType(String notificationName) - Sets the notification type being listened.
|
void | setObservedObject(javax.management.ObjectName targetMBeanName) - Sets the object being observed by this MBean.
|
void | setScript(String text) - Sets the content of the script.
|
void | setScriptURL(URL file) - Sets the script source as URL.
|
getCacheScript
public boolean getCacheScript()
Returns whether the script should be kept in the cache.
If true, no further attempts to read the script will be done afterwards. By default is false
getNotificationType
public String getNotificationType()
Gets the specific notification type being listened
getObservedObject
public javax.management.ObjectName getObservedObject()
Gets the object being observed by this MBean
getScript
public String getScript()
Returns the script as text.
getScriptURL
public URL getScriptURL()
Returns the URL pointing to the script source
getUseText
public boolean getUseText()
Indicates wether to use the script given in the ScripText variable or the one given in the script File.
runScript
public void runScript()
Executes a given script.
If useText is true the text passed will be run as a script otherwise
the script will be loaded from the URL an executed
setCacheScript
public void setCacheScript(boolean useCache)
Sets whether the script should be kept in the cache. If true, no further attempts to read the script will be done afterwards. By default is false
setNotificationType
public void setNotificationType(String notificationName)
Sets the notification type being listened.
If null any notification will trigger the execution of the script.
Otherwise only notifications matching notificationName will trigger it
setObservedObject
public void setObservedObject(javax.management.ObjectName targetMBeanName)
Sets the object being observed by this MBean.
The MBean will register itself as a listener of targetMBeanName
setScript
public void setScript(String text)
Sets the content of the script. If you want to use a file, use ScriptFile instead.
setScriptURL
public void setScriptURL(URL file)
Sets the script source as URL. If the cache script variable is true the file will be loaded only once, otherwise everytime the script is executed
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.