Flowable 6.6.0 BPMN用户指南 -18 Tooling - 18.1 JMX(1,2)

Flowable 6.6.0 用户指南相关文档下载


《Flowable 6.6.0 BPMN用户指南》

1. 入门
2. 配置
3 The Flowable API
4 Flowable 6.6.0 BPMN用户指南 - (4)Spring集成
5 Spring Boot
6 部署
7 BPMN 2.0简介
8 BPMN 2.0的构造
9 表单(Forms)
10 流程实例迁移
11 JPA
12 历史(History)
13 身份管理(Identity management)
14 REST API
15 CDI集成
16 LDAP集成
17 高级用例
18 Tooling

有关Flowable的更多文档,参见:

《Flowable文档大全》


18 Tooling

18.1 JMX

18.1.1 简介

It is possible to connect to Flowable engine using standard Java Management Extensions (JMX) technology in order to get information or to change its behavior. Any standard JMX client can be used for that purpose. Enabling and disabling Job Executor, deploy new process definition files and deleting them are just samples of what could be done using JMX without writing a single line of code.

可以使用标准的Java管理扩展(JMX)技术连接到Flowable引擎,以获取信息或更改其行为。任何标准的JMX客户机都可用于此目的。启用和禁用作业执行器(Job Executor)、部署新的流程定义文件并删除它们只是使用JMX而无需编写一行代码就可以完成的工作的示例。

18.1.2 快速入门

By default JMX is not enabled. To enable JMX in its default configuration, it is enough to add the flowable-jmx jar file to your classpath, using Maven or by any other means. In case you are using Maven, you can add proper dependency by adding the following lines in your pom.xml:

默认情况下,JMX未启用。要在默认配置中启用JMX,只需使用Maven或任何其他方法将flowable-jmx jar文件添加到类路径(classpath)就足够了。如使用Maven,可以通过在pom.xml文件中添加如下几行,即可添加正确的依赖:

<dependency>
  <groupId>org.flowable</groupId>
  <artifactId>flowable-jmx</artifactId>
  <version>latest.version</version>
</dependency>

After adding the dependency and building process engine, the JMX connection is ready to be used. Just run jconsole available in a standard JDK distribution. In the list of local processes, you will see the JVM containing Flowable. If for any reason the proper JVM is not listed in “local processes” section, try connecting to it using this URL in “Remote Process” section:
service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi/flowable

在添加了依赖项并构建了流程引擎之后,JMX连接就可以使用了。只需运行标准JDK发行版(standard JDK distribution)中可用的jconsole。在本地进程列表中,您将看到包含Flowable的JVM。如果出于任何原因,适当的JVM没有在“本地进程”部分列出,请尝试使用“远程进程”部分中的以下URL连接到它:

service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi/flowable

You can find the exact local URL in your log files. After connecting, you can see the standard JVM statistics and MBeans. You can view Flowable specific MBeans by selecting MBeans tab and select “org.flowable.jmx.Mbeans” on the right panel. By selecting any MBean, you can query information or change configuration. This snapshot shows how the jconsole looks like:

Any JMX client not limited to jconsole can be used to access MBeans. Most of data center monitoring tools have some connectors which enables them to connect to JMX MBeans.

您可以在日志文件中找到确切的本地URL。连接之后,通过选择位于右侧面板上MBeans选项卡并选择“org.flowable.jmx.Mbeans”,您可以看到标准的JVM统计信息和MBean。通过选择MBean,您可以查询信息或更改配置。此快照显示jconsole的外观:

其它JMX客户端(不限于jconsole)都可用来访问MBean。大多数数据中心监视工具都有一些连接器,使它们能够连接到JMX MBean。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

月满闲庭

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值