317 lines
14 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="header">
<div class="subTitle">
compact3
</div>
<div class="subTitle">
javax.management
</div>
<h2 class="title" title="Interface DynamicMBean">Interface DynamicMBean</h2>
</div><div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>
All Known Subinterfaces:
</dt>
<dd>
<span><a href="../../javax/management/modelmbean/ModelMBean.html" title="javax.management.modelmbean中的接口">ModelMBean</a></span>
</dd>
</dl>
<dl>
<dt>
所有已知实现类:
</dt>
<dd>
<span><a href="../../javax/management/modelmbean/RequiredModelMBean.html" title="javax.management.modelmbean中的类">RequiredModelMBean</a> <a href="../../javax/management/StandardEmitterMBean.html" title="javax.management中的类">StandardEmitterMBean</a> <a href="../../javax/management/StandardMBean.html" title="javax.management中的类">StandardMBean</a></span>
</dd>
</dl>
<hr/> <br/> <pre>public interface <span class="typeNameLabel">DynamicMBean</span></pre>
<div class="block">
定义应该由动态MBean显示动态管理界面的MBean实现的方法。
</div>
<dl>
<dt>
<span class="simpleTagLabel">从以下版本开始:</span>
</dt>
<dd>
1.5
</dd>
</dl> </li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- --> </a> <h3>方法摘要</h3>
<table border="0" cellpadding="3" cellspacing="0" class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<caption>
<span class="activeTableTab" id="t0"><span>所有方法</span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t2"><span><a href="javascript:show(2);">接口方法</a></span><span class="tabEnd"> </span></span>
<span class="tableTab" id="t3"><span><a href="javascript:show(4);">抽象方法</a></span><span class="tabEnd"> </span></span>
</caption>
<tbody>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor" id="i0">
<td class="colFirst"><code><a href="../../java/lang/Object.html" title="class in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/management/DynamicMBean.html#getAttribute-java.lang.String-">getAttribute</a></span>(<a href="../../java/lang/String.html" title="class in java.lang">String</a> attribute)</code>
<div class="block">
获取动态MBean的特定属性的值。
</div> </td>
</tr>
<tr class="rowColor" id="i1">
<td class="colFirst"><code><a href="../../javax/management/AttributeList.html" title="class in javax.management">AttributeList</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/management/DynamicMBean.html#getAttributes-java.lang.String:A-">getAttributes</a></span>(<a href="../../java/lang/String.html" title="class in java.lang">String</a>[] attributes)</code>
<div class="block">
获取动态MBean的几个属性的值。
</div> </td>
</tr>
<tr class="altColor" id="i2">
<td class="colFirst"><code><a href="../../javax/management/MBeanInfo.html" title="class in javax.management">MBeanInfo</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/management/DynamicMBean.html#getMBeanInfo--">getMBeanInfo</a></span>()</code>
<div class="block">
使用MBeanInfo对象提供动态MBean的公开属性和动作。
</div> </td>
</tr>
<tr class="rowColor" id="i3">
<td class="colFirst"><code><a href="../../java/lang/Object.html" title="class in java.lang">Object</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/management/DynamicMBean.html#invoke-java.lang.String-java.lang.Object:A-java.lang.String:A-">invoke</a></span>(<a href="../../java/lang/String.html" title="class in java.lang">String</a> actionName, <a href="../../java/lang/Object.html" title="class in java.lang">Object</a>[] params, <a href="../../java/lang/String.html" title="class in java.lang">String</a>[] signature)</code>
<div class="block">
允许在动态MBean上调用操作。
</div> </td>
</tr>
<tr class="altColor" id="i4">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/management/DynamicMBean.html#setAttribute-javax.management.Attribute-">setAttribute</a></span>(<a href="../../javax/management/Attribute.html" title="class in javax.management">Attribute</a> attribute)</code>
<div class="block">
设置动态MBean的特定属性的值。
</div> </td>
</tr>
<tr class="rowColor" id="i5">
<td class="colFirst"><code><a href="../../javax/management/AttributeList.html" title="class in javax.management">AttributeList</a></code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../javax/management/DynamicMBean.html#setAttributes-javax.management.AttributeList-">setAttributes</a></span>(<a href="../../javax/management/AttributeList.html" title="class in javax.management">AttributeList</a> attributes)</code>
<div class="block">
设置动态MBean的几个属性的值。
</div> </td>
</tr>
</tbody>
</table> </li>
</ul> </li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- --> </a> <h3>方法详细信息</h3> <a name="getAttribute-java.lang.String-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getAttribute</h4> <pre><a href="../../java/lang/Object.html" title="class in java.lang">Object</a> getAttribute(<a href="../../java/lang/String.html" title="class in java.lang">String</a> attribute)
throws <a href="../../javax/management/AttributeNotFoundException.html" title="class in javax.management">AttributeNotFoundException</a>,
<a href="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</a>,
<a href="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</a></pre>
<div class="block">
获取动态MBean的特定属性的值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>attribute</code> - 要检索的属性的名称
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
检索的属性的值。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../javax/management/AttributeNotFoundException.html" title="class in javax.management">AttributeNotFoundException</a></code>
</dd>
<dd>
<code><a href="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</a></code> - 包裹MBean的吸气
<code>java.lang.Exception</code>抛出的
<code>java.lang.Exception</code>
</dd>
<dd>
<code><a href="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</a></code> - 包装
<code>java.lang.Exception</code>在尝试调用getter时抛出。
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../javax/management/DynamicMBean.html#setAttribute-javax.management.Attribute-"><code>setAttribute(javax.management.Attribute)</code></a>
</dd>
</dl> </li>
</ul> <a name="setAttribute-javax.management.Attribute-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>setAttribute</h4> <pre>void setAttribute(<a href="../../javax/management/Attribute.html" title="class in javax.management">Attribute</a> attribute)
throws <a href="../../javax/management/AttributeNotFoundException.html" title="class in javax.management">AttributeNotFoundException</a>,
<a href="../../javax/management/InvalidAttributeValueException.html" title="class in javax.management">InvalidAttributeValueException</a>,
<a href="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</a>,
<a href="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</a></pre>
<div class="block">
设置动态MBean的特定属性的值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>attribute</code> - 要设置的属性的标识和要设置的值。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../javax/management/AttributeNotFoundException.html" title="class in javax.management">AttributeNotFoundException</a></code>
</dd>
<dd>
<code><a href="../../javax/management/InvalidAttributeValueException.html" title="class in javax.management">InvalidAttributeValueException</a></code>
</dd>
<dd>
<code><a href="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</a></code> - 包装MBean的设定者抛出的
<code>java.lang.Exception</code>
</dd>
<dd>
<code><a href="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</a></code> - 在尝试调用MBean的设置器时抛出一个
<code>java.lang.Exception</code>
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../javax/management/DynamicMBean.html#getAttribute-java.lang.String-"><code>getAttribute(java.lang.String)</code></a>
</dd>
</dl> </li>
</ul> <a name="getAttributes-java.lang.String:A-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>getAttributes</h4> <pre><a href="../../javax/management/AttributeList.html" title="class in javax.management">AttributeList</a> getAttributes(<a href="../../java/lang/String.html" title="class in java.lang">String</a>[] attributes)</pre>
<div class="block">
获取动态MBean的几个属性的值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>attributes</code> - 要检索的属性的列表。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
检索的属性列表。
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../javax/management/DynamicMBean.html#setAttributes-javax.management.AttributeList-"><code>setAttributes(javax.management.AttributeList)</code></a>
</dd>
</dl> </li>
</ul> <a name="setAttributes-javax.management.AttributeList-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>setAttributes</h4> <pre><a href="../../javax/management/AttributeList.html" title="class in javax.management">AttributeList</a> setAttributes(<a href="../../javax/management/AttributeList.html" title="class in javax.management">AttributeList</a> attributes)</pre>
<div class="block">
设置动态MBean的几个属性的值。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>attributes</code> - 属性列表:要设置的属性的标识以及要设置的属性值。
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
已设置的属性列表及其新值。
</dd>
<dt>
<span class="seeLabel">另请参见:</span>
</dt>
<dd>
<a href="../../javax/management/DynamicMBean.html#getAttributes-java.lang.String:A-"><code>getAttributes(java.lang.String[])</code></a>
</dd>
</dl> </li>
</ul> <a name="invoke-java.lang.String-java.lang.Object:A-java.lang.String:A-">
<!-- --> </a>
<ul class="blockList">
<li class="blockList"> <h4>invoke</h4> <pre><a href="../../java/lang/Object.html" title="class in java.lang">Object</a> invoke(<a href="../../java/lang/String.html" title="class in java.lang">String</a> actionName,
<a href="../../java/lang/Object.html" title="class in java.lang">Object</a>[] params,
<a href="../../java/lang/String.html" title="class in java.lang">String</a>[] signature)
throws <a href="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</a>,
<a href="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</a></pre>
<div class="block">
允许在动态MBean上调用操作。
</div>
<dl>
<dt>
<span class="paramLabel">参数</span>
</dt>
<dd>
<code>actionName</code> - 要调用的动作的名称。
</dd>
<dd>
<code>params</code> - 包含调用操作时要设置的参数的数组。
</dd>
<dd>
<span><code>signature</code> - 包含动作签名的数组。</span>
<span>类对象将通过与用于加载调用操作的MBean相同的类加载器来加载。</span>
</dd>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
该操作返回的对象表示在指定的MBean上调用操作的结果。
</dd>
<dt>
<span class="throwsLabel">异常</span>
</dt>
<dd>
<code><a href="../../javax/management/MBeanException.html" title="class in javax.management">MBeanException</a></code> - 包装由MBean调用的方法抛出的
<code>java.lang.Exception</code>
</dd>
<dd>
<code><a href="../../javax/management/ReflectionException.html" title="class in javax.management">ReflectionException</a></code> - 在尝试调用该方法时抛出一个
<code>java.lang.Exception</code>
</dd>
</dl> </li>
</ul> <a name="getMBeanInfo--">
<!-- --> </a>
<ul class="blockListLast">
<li class="blockList"> <h4>getMBeanInfo</h4> <pre><a href="../../javax/management/MBeanInfo.html" title="class in javax.management">MBeanInfo</a> getMBeanInfo()</pre>
<div class="block">
使用MBeanInfo对象提供动态MBean的公开属性和动作。
</div>
<dl>
<dt>
<span class="returnLabel">结果</span>
</dt>
<dd>
<code>MBeanInfo</code>一个实例允许检索此动态MBean公开的所有属性和操作。
</dd>
</dl> </li>
</ul> </li>
</ul> </li>
</ul>
</div>
</div>