"scott.stark(a)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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...