Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > ee5115d1de8d9cf1c36a33cc4513700b > files > 430

mx4j-manual-3.0.1-9.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_40) on Fri Oct 18 06:47:25 UTC 2013 -->
<title>JythonRunner (MX4J API)</title>
<meta name="date" content="2013-10-18">
<link rel="stylesheet" type="text/css" href="../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="JythonRunner (MX4J API)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/JythonRunner.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?mx4j/tools/jython/JythonRunner.html" target="_top">Frames</a></li>
<li><a href="JythonRunner.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">mx4j.tools.jython</div>
<h2 title="Class JythonRunner" class="title">Class JythonRunner</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>mx4j.tools.jython.JythonRunner</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>java.util.EventListener, javax.management.MBeanRegistration, javax.management.NotificationListener, <a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></dd>
</dl>
<hr>
<br>
<pre>public class <span class="strong">JythonRunner</span>
extends java.lang.Object
implements <a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a>, javax.management.NotificationListener, javax.management.MBeanRegistration</pre>
<div class="block">This MBean enables you to run scripts written in jython. Scripts can be run
 using the managed operation runScript or by listening notifcations from
 another MBean. To us it you need to install jython 2.1 or higher from
 &lt;a href="http://www.jython.org"&gt;here&lt/a&gt
 <p/>
 If you want to use a jython library remember to add the jython jar to the
 classpath in the right location or modify the python.path address
 <p/>
 The scripts have always the &quot;server&quot; embedded variable which points
 to the current server. It also automatically import some JMX modules as:
 <p/>
 <ul>
 <li>from javax.management import *
 <li>from javax.management.loading import *
 </ul></div>
<dl><dt><span class="strong">Version:</span></dt>
  <dd>$Revision: 1.9 $</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#JythonRunner()">JythonRunner</a></strong>()</code>&nbsp;</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#getCacheScript()">getCacheScript</a></strong>()</code>
<div class="block">Returns whether the script should be kept in the cache.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#getNotificationType()">getNotificationType</a></strong>()</code>
<div class="block">Gets the specific notification type being listened</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>javax.management.ObjectName</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#getObservedObject()">getObservedObject</a></strong>()</code>
<div class="block">Gets the object being observed by this MBean</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static PythonInterpreter</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#getPythonInterpreter()">getPythonInterpreter</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#getScript()">getScript</a></strong>()</code>
<div class="block">Returns the script as text.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.net.URL</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#getScriptURL()">getScriptURL</a></strong>()</code>
<div class="block">Returns the URL pointing to the script source</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#getUseText()">getUseText</a></strong>()</code>
<div class="block">Indicates wether to use the script given in the ScripText variable or
 the one given in the script File.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#handleNotification(javax.management.Notification, java.lang.Object)">handleNotification</a></strong>(javax.management.Notification&nbsp;notification,
                  java.lang.Object&nbsp;handback)</code>
<div class="block">Called when a notification occurs.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#loadStream(java.io.InputStream)">loadStream</a></strong>(java.io.InputStream&nbsp;in)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#postDeregister()">postDeregister</a></strong>()</code>
<div class="block">Callback called just after the MBean has been successfully unregistered.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#postRegister(java.lang.Boolean)">postRegister</a></strong>(java.lang.Boolean&nbsp;registrationDone)</code>
<div class="block">Callback called just after the MBean has been registered (successfully or not).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#preDeregister()">preDeregister</a></strong>()</code>
<div class="block">Callback called just before MBean unregistration from the MBeanServer.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>javax.management.ObjectName</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#preRegister(javax.management.MBeanServer, javax.management.ObjectName)">preRegister</a></strong>(javax.management.MBeanServer&nbsp;server,
           javax.management.ObjectName&nbsp;name)</code>
<div class="block">Gathers some basic data</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#registerListener()">registerListener</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#runScript()">runScript</a></strong>()</code>
<div class="block">Executes a given script.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#setCacheScript(boolean)">setCacheScript</a></strong>(boolean&nbsp;useCache)</code>
<div class="block">Sets whether the script should be kept in the cache.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#setNotificationType(java.lang.String)">setNotificationType</a></strong>(java.lang.String&nbsp;notificationName)</code>
<div class="block">Sets the notification being listed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#setObservedObject(javax.management.ObjectName)">setObservedObject</a></strong>(javax.management.ObjectName&nbsp;targetMBeanName)</code>
<div class="block">Sets the object being observed by this MBean.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#setScript(java.lang.String)">setScript</a></strong>(java.lang.String&nbsp;text)</code>
<div class="block">Sets the content of the script.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#setScriptURL(java.net.URL)">setScriptURL</a></strong>(java.net.URL&nbsp;file)</code>
<div class="block">Sets the script source as URL.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../mx4j/tools/jython/JythonRunner.html#unregisterListener()">unregisterListener</a></strong>()</code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="JythonRunner()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>JythonRunner</h4>
<pre>public&nbsp;JythonRunner()</pre>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="handleNotification(javax.management.Notification, java.lang.Object)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>handleNotification</h4>
<pre>public&nbsp;void&nbsp;handleNotification(javax.management.Notification&nbsp;notification,
                      java.lang.Object&nbsp;handback)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code>javax.management.NotificationListener</code></strong></div>
<div class="block">Called when a notification occurs.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>handleNotification</code>&nbsp;in interface&nbsp;<code>javax.management.NotificationListener</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>notification</code> - The notification object</dd><dd><code>handback</code> - Helps in associating information regarding the listener.</dd></dl>
</li>
</ul>
<a name="runScript()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>runScript</h4>
<pre>public&nbsp;void&nbsp;runScript()</pre>
<div class="block">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</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#runScript()">runScript</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="getPythonInterpreter()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPythonInterpreter</h4>
<pre>public static&nbsp;PythonInterpreter&nbsp;getPythonInterpreter()</pre>
</li>
</ul>
<a name="loadStream(java.io.InputStream)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>loadStream</h4>
<pre>protected static&nbsp;java.lang.String&nbsp;loadStream(java.io.InputStream&nbsp;in)
                                      throws java.io.IOException</pre>
<dl><dt><span class="strong">Throws:</span></dt>
<dd><code>java.io.IOException</code></dd></dl>
</li>
</ul>
<a name="getNotificationType()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNotificationType</h4>
<pre>public&nbsp;java.lang.String&nbsp;getNotificationType()</pre>
<div class="block">Gets the specific notification type being listened</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#getNotificationType()">getNotificationType</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="setNotificationType(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setNotificationType</h4>
<pre>public&nbsp;void&nbsp;setNotificationType(java.lang.String&nbsp;notificationName)</pre>
<div class="block">Sets the notification being listed. If null any notification will trigger
 the execution of the script. Otherwise only notifications matching notificationName
 will trigger it</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#setNotificationType(java.lang.String)">setNotificationType</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="setObservedObject(javax.management.ObjectName)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setObservedObject</h4>
<pre>public&nbsp;void&nbsp;setObservedObject(javax.management.ObjectName&nbsp;targetMBeanName)</pre>
<div class="block">Sets the object being observed by this MBean. The MBean will register
 itself as a listener of targetMBeanName</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#setObservedObject(javax.management.ObjectName)">setObservedObject</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="getObservedObject()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getObservedObject</h4>
<pre>public&nbsp;javax.management.ObjectName&nbsp;getObservedObject()</pre>
<div class="block">Gets the object being observed by this MBean</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#getObservedObject()">getObservedObject</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="getUseText()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getUseText</h4>
<pre>public&nbsp;boolean&nbsp;getUseText()</pre>
<div class="block">Indicates wether to use the script given in the ScripText variable or
 the one given in the script File.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#getUseText()">getUseText</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="setScript(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setScript</h4>
<pre>public&nbsp;void&nbsp;setScript(java.lang.String&nbsp;text)</pre>
<div class="block">Sets the content of the script. If you want to use a file, use ScriptFile
 instead.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#setScript(java.lang.String)">setScript</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="getScript()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScript</h4>
<pre>public&nbsp;java.lang.String&nbsp;getScript()</pre>
<div class="block">Returns the script as text.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#getScript()">getScript</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="getScriptURL()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getScriptURL</h4>
<pre>public&nbsp;java.net.URL&nbsp;getScriptURL()</pre>
<div class="block">Returns the URL pointing to the script source</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#getScriptURL()">getScriptURL</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="setScriptURL(java.net.URL)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setScriptURL</h4>
<pre>public&nbsp;void&nbsp;setScriptURL(java.net.URL&nbsp;file)</pre>
<div class="block">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</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#setScriptURL(java.net.URL)">setScriptURL</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="getCacheScript()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCacheScript</h4>
<pre>public&nbsp;boolean&nbsp;getCacheScript()</pre>
<div class="block">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</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#getCacheScript()">getCacheScript</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="setCacheScript(boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCacheScript</h4>
<pre>public&nbsp;void&nbsp;setCacheScript(boolean&nbsp;useCache)</pre>
<div class="block">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</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html#setCacheScript(boolean)">setCacheScript</a></code>&nbsp;in interface&nbsp;<code><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython">JythonRunnerMBean</a></code></dd>
</dl>
</li>
</ul>
<a name="preRegister(javax.management.MBeanServer, javax.management.ObjectName)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>preRegister</h4>
<pre>public&nbsp;javax.management.ObjectName&nbsp;preRegister(javax.management.MBeanServer&nbsp;server,
                                      javax.management.ObjectName&nbsp;name)
                                        throws java.lang.Exception</pre>
<div class="block">Gathers some basic data</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>preRegister</code>&nbsp;in interface&nbsp;<code>javax.management.MBeanRegistration</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>server</code> - The MBeanServer on which the MBean will be registered.</dd><dd><code>name</code> - The <code>ObjectName</code> of the MBean.</dd>
<dt><span class="strong">Returns:</span></dt><dd>The <code>ObjectName</code> of the registered MBean, must not be null</dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.Exception</code> - Any possible exception generated by this method will be caught
                   by the <code>MBeanServer</code> and re-thrown as an <code>MBeanRegistrationException</code>
                   to the client.</dd></dl>
</li>
</ul>
<a name="postRegister(java.lang.Boolean)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>postRegister</h4>
<pre>public&nbsp;void&nbsp;postRegister(java.lang.Boolean&nbsp;registrationDone)</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code>javax.management.MBeanRegistration</code></strong></div>
<div class="block">Callback called just after the MBean has been registered (successfully or not).</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>postRegister</code>&nbsp;in interface&nbsp;<code>javax.management.MBeanRegistration</code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>registrationDone</code> - True if the registration was successful, false otherwise.</dd></dl>
</li>
</ul>
<a name="preDeregister()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>preDeregister</h4>
<pre>public&nbsp;void&nbsp;preDeregister()
                   throws java.lang.Exception</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code>javax.management.MBeanRegistration</code></strong></div>
<div class="block">Callback called just before MBean unregistration from the MBeanServer.
 Any exception thrown by this method will cause the MBean unregistration to abort.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>preDeregister</code>&nbsp;in interface&nbsp;<code>javax.management.MBeanRegistration</code></dd>
<dt><span class="strong">Throws:</span></dt>
<dd><code>java.lang.Exception</code> - Any possible exception generated by this method will be caught
                   by the <code>MBeanServer</code> and re-thrown as an <code>MBeanRegistrationException</code>
                   to the client.</dd></dl>
</li>
</ul>
<a name="postDeregister()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>postDeregister</h4>
<pre>public&nbsp;void&nbsp;postDeregister()</pre>
<div class="block"><strong>Description copied from interface:&nbsp;<code>javax.management.MBeanRegistration</code></strong></div>
<div class="block">Callback called just after the MBean has been successfully unregistered.</div>
<dl>
<dt><strong>Specified by:</strong></dt>
<dd><code>postDeregister</code>&nbsp;in interface&nbsp;<code>javax.management.MBeanRegistration</code></dd>
</dl>
</li>
</ul>
<a name="registerListener()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>registerListener</h4>
<pre>protected&nbsp;void&nbsp;registerListener()</pre>
</li>
</ul>
<a name="unregisterListener()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>unregisterListener</h4>
<pre>protected&nbsp;void&nbsp;unregisterListener()</pre>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/JythonRunner.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../index-all.html">Index</a></li>
<li><a href="../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Class</li>
<li><a href="../../../mx4j/tools/jython/JythonRunnerMBean.html" title="interface in mx4j.tools.jython"><span class="strong">Next Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../index.html?mx4j/tools/jython/JythonRunner.html" target="_top">Frames</a></li>
<li><a href="JythonRunner.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">Method</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small><center><small>Copyright &#169; 2001-2005 The MX4J Contributors. All Rights Reserved.</small></center></small></p>
</body>
</html>