Example code: Distributed WebSphere Extension mbean.
示例代码:分布式WebSphere扩展mbean。
The mbeanServer bean holds a reference to the existing MBean server.
mbeanServerbean 保存一个到现有MBean服务器的引用。
Our example MBean code and WebSphere XML MBean Descriptor file are stored in the JAR file located at /build/newmbean/newmbean.jar .
我们的示例MBean代码和WebSphereXMLMBean描述符文件被存储在位于 /build/newmbean/newmbean.jar 的 JAR 文件中。
The JMX standard offers four MBean variants.
JMX标准提供了四种不同的mbean。
Select new to define a new MBean for this provider.
为了定义这个提供程序的新的MBean,请选择new。
This injects the log4j MBean into the MBean server.
这将把log4jMBean注入到MBean服务器。
The MBean server is a core component inside an agent.
MBean服务器是代理内部的核心组件。
Type - the type to be used for registering this MBean.
type-用于注册这个MBean的类型。
The following code returns the Stats object in an MBean.
以下的代码返回MBean中的Stats对象。
The WSS runtime simulator operates on the data via MBean.
WSS运行时模拟器通过MBean操作数据。
Core to the instrumentation level are the MBean interfaces.
工具层的核心是MBean接口。
The interface to access the MBean server is specified by JMX.
访问MBean服务器的接口由JMX指定。
The TaskManagement MBean can generate the following notifications
TaskManagementMBean可以生成下面的通知
Other MBean types can also be passed to find the relevant MBeans.
我们也可以传递其他MBean类型来查找相关的MBean。
We will use this information to access the MBean remotely from OpenNMS.
我们将用该信息来从OpenNMS远程地访问MBean。
Once you create it, you need to register an MBean with an MBean server.
MBean创建好之后,需要注册到 MBean服务器上。
Similarly, the NodeAgent MBean only generates notifications for servers.
类似地,NodeAgentMBean仅为服务器生成通知。
Similarly, the NodeAgent MBean can generate the following notifications.
类似地,NodeAgentMBean可生成下列通知。
There is also an MBean interface available that provides these functions.
还有一个MBean接口也提供这些功能。
The following code will return the MBean ObjectName of PerfMBean in a server.
以下的代码将会返回服务器中的PerfMBean的MBeanObjectName。
In addition, the Server MBean represents node agents and deployment managers.
另外,ServerMBean还代表节点代理和部署管理器。
Listing 1 shows an MBean interface for a network service such as a Web server.
清单1显示了网络服务(例如Web服务器)的MBean接口。
To get a specific MBean, add the code in Listing 16 to the bottom of the script.
为了获得某个特定MBean,请将清单16中的代码添加到脚本底部。
In addition to changing attribute values, you can also call methods on an MBean.
除了更改属性值以外,您还可以调用MBean上的方法。
Select Enable Startup so that the custom MBean starts every time the server starts.
选择EnableStartup,这样每次启动服务器时自定义MBean 都要启动。
In some cases, a collection's target MBean attribute might not be a flat numeric type.
在某些情况下,收集的目标MBean属性可能不是纯数值类型。
Set the priority attribute of the root MBean back to ERROR to cut down the noise level.
将根MBean的优先级属性设置回ERROR来减少干扰。
The invokeStop method stops the server by invoking the stop operation on the Server MBean
InvokeStop方法通过调用ServerMBean的stop操作来停止服务器。
The JRules execution server defines several security roles to restrict access to its MBean.
JRulesExecutionServer定义几个安全角色以限制对它的MBean的访问。
This example above shows how to activate an MBean implemented in your J2EE application code.
以上这个示例说明了如何激活在J2EE应用程序代码中实现的MBean。
应用推荐