[jboss-dev-forums] [Design of POJO Server] - Re: Updating docs
adrian@jboss.org
do-not-reply at jboss.com
Tue Sep 19 12:23:51 EDT 2006
"scott.stark at jboss.org" wrote : My only question is whether there are distinct outputs for the runtime metadata and management interface. Having to create management views from the raw deployer metadata is too cumbersome and does not lend itself to introduction of higher level notions like extracting server wide views like all network ports in use. So an explicit management view like the ManagedObject notion that existed previously is something that should show up in a Deployer contract.
|
Yes, but in principle the ManagedObject can be constructed from
the raw metadata/real object by correctly annotating it
either in the metadata or on the object.
This is a similar mechanism to how the OpenMBean stuff works
(or at least will work in JMX2.0) except we will likely need a
richer annotation set and some conventions:
e.g.
| public class MyClass
| {
| // Annotated valid values and the config impact
| @ValidValues(min=1, max=100)
| @ConfigImpact(Impact.RUNTIME_CONFIGURABLE)
| public int setPercentage() {}
|
| // Effectively inject the port configuration
| public void setServerSocket(ServerSocket socket) {}
|
| @Statistics // or with MyStats suitably annotated
| public MyStats getStats() {};
| }
|
>From this kind of thing, a ManagedObject can be constructed that is
easier to handle by the management layer.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3972658#3972658
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3972658
More information about the jboss-dev-forums
mailing list