As I extend Spring JMX, I'll demonstrate each of the three areas of concern with a simple use case: an example service with start and stop methods and a read-write attribute to be managed.
在扩展SpringJMX时,我将用一个简单的案例分别展示这三个需要关注的领域:一个带有开始和停止方法并且有一个读写属性要管理的示例服务。
I conclude the article with a working example based on a mockup service object with both start and stop methods and a read-write attribute to be managed.
文章的最后是一个基于mockup服务对象的实际例子,需要管理它的启动和停止方法和读写属性。
Lines 41 through 50: implement the getter and setter methods for the read-write age attribute.
第41至50行:实现读写age属性的getter和setter方法。
When you write rules based on sysfs information, you are simply matching attribute contents of some files in one part of the chain. For example, I can read the size of my hard disk as follows.
当我们编写基于sysfs信息的规则时,只是简单的匹配链条上一部分文件的属性内容。
Personally, I find it much easier to read and write attribute-oriented XML formats than subelement-oriented ones.
从个人角度来讲,我发现阅读和编写面向属性的xml格式要比面向子元素的容易得多。
For example, they still use the same usage attribute values "transactional | read-write | nonstrict-read-write | read-only".
例如,它们仍旧使用相同的usage属性值“transactional | read -write |nonstrict - read - write |read - only”。
Note that the identification attribute is read-only and the age attribute is read-write.
请注意,identification属性是只读的,age属性是可读写的。
Note that the identification attribute is read-only and the age attribute is read-write.
请注意,identification属性是只读的,age属性是可读写的。
应用推荐