You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Meeraj Kunnumpurath <m....@hotmail.co.uk> on 2007/01/05 00:53:48 UTC

Update on management service

Hi,

This is a quick summary for the changes to enable management service within 
composite components so that component registration can be relayed through 
to the management service,

1. The runtime creates a management service and registers with the system 
composite
2. The type of management service will be defined in etc/runtime.properties
3. Runtime passes the management service in to the default bootstrapper to 
be used by the primodial builder registry
4. BuilderRegistry will have a depenedency on management service
5. This will be autowired for the one that comes from the scdl and set 
manually for the one created in bootstrapper
6. CompositeComponent will have a setManagementService
7. After the builder builds the component and if it is a composite component 
the builder registry will set the management service.
8. From there onwards the composite component will use the management 
service for exposing its child components for management.

We will also have to pass contextual information to the management service 
when it is created by the runtime. For eg, the JMX management service would 
need a reference to the mbean server used by the host. I have a JMX runtime 
info that is wired into the JMX management service to pass the mbean server. 
However for this to work with a generic creation mechanism for management 
service, we need to have runtime info as part of the management service 
abstraction. Something like this in the runtime,

Properties runtimeProps = new Porperties();
InputStream in = 
bootClassLoader.getResourceAsStream("/etc/runtime.properties");
runtimeProps.load(in);

String managementServiceClass = 
runtimeProps.getProperty("management.service.class");
ManagementService managementService = (ManagementService) 
Class.forName(managementServiceClass ).newInstance();
managementService .setRuntimeInfo(runtimeInfo);

and the JmxManagementService's setRuntimeInfo would look like

JmxRunrimeInfo jmxRuntimeInfo = (JmxRuntimeInfo) runtimeInfo;
this.mbeanServer = jmxRuntimeInfo.getMbeanServer();

We could even paremeterize ManagementService with RuntimeInfo to avoid the 
donwcast.

Ta
Meeraj

_________________________________________________________________
Find Singles In Your Area This Christmas With Match.com! msnuk.match.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org