[jboss-dev-forums] [IronJacamar Development] - Re: IronJacamar RHQ plugin development
Yang Yong
do-not-reply at jboss.com
Wed Mar 2 22:14:08 EST 2011
Yang Yong [http://community.jboss.org/people/yyang%40redhat.com] created the discussion
"Re: IronJacamar RHQ plugin development"
To view the discussion, visit: http://community.jboss.org/message/590759#590759
--------------------------------------------------------------
Hi Jesper,
Returning ManagementRepository works well in ronJacamar/Embedded environment, but for IronJacamar/AS7 and IronJacamar/standalone environments, I think it is not suitable to return ManagementRepository instance, because we have to face many problems. In fact there are 2 ways to return a ManagementRepository instance, we can analyze these 2 ways.
1) Serailize.
In this situation, we have to make all IronJacamar Management POJO classes serializable even if the referenced classes, and may cause network bandwidth issue and dirty local data issue, so this is not a good enough plan.
2) return a (Dynamic) Proxy object
A proxy object will delegate all invocations to remote IronJacamar Management Model and don't have any local data, the problem is we have to map objects between "AS Detyped MetaValue object" and "IronJacamar management POJO", but actually we can resolve Detyped MetaValue and show the value in the console UI directly, this looks like an extra work.
So, after discuss with lgao, our plan is creating an abstract layer to encapsulate all common methods,and the separate implementations of AS7/Standalone/embedded to 3 sub-packages , and in the implementation classes of the sub-packages, can implement the abstract methods(for example methods to get and resolve data) by using the best way in each enironment separately, for example, use as7 management api in IronJacamar/AS7, use jmx in IronJacamar/Standalone, and directly call ManagementRepository in IronJacamar/Embedded for testing. This structure looks simple and clear, and easy to maintain.
Package sturcture:
...rhq (abstract classes encapsulate all common methods here)
|
- as7 (implementation for as7 here)
|
- standalone (implementation for IronJacamar standalone here)
|
- embedded (implementation for IronJacamar embeddded testing here)
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/590759#590759]
Start a new discussion in IronJacamar Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2099]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110302/9f987c35/attachment.html
More information about the jboss-dev-forums
mailing list