mx4j.tools.jython
public class JythonRunner extends Object implements JythonRunnerMBean, NotificationListener, MBeanRegistration
Version: $Revision: 1.9 $
Method Summary | |
---|---|
boolean | getCacheScript()
Returns whether the script should be kept in the cache. |
String | getNotificationType()
Gets the specific notification type being listened |
ObjectName | getObservedObject()
Gets the object being observed by this MBean |
static PythonInterpreter | getPythonInterpreter() |
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 | handleNotification(Notification notification, Object handback) |
protected static String | loadStream(InputStream in) |
void | postDeregister() |
void | postRegister(Boolean registrationDone) |
void | preDeregister() |
ObjectName | preRegister(MBeanServer server, ObjectName name)
Gathers some basic data |
protected void | registerListener() |
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 being listed. |
void | setObservedObject(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. |
protected void | unregisterListener() |