org.ow2.util.jmx.api
Interface ICommonsModelerExtService


public interface ICommonsModelerExtService

Allow to register BaseModelMbeanExt with an id.
Each attributes and operations are associate with a regexp used to register them on all matching BaseModelMbeanExt.

Author:
missonng

Method Summary
 IBaseModelMBeanExt getBaseModelMBeanExt(String id)
          Get the BaseModelMBeanExt with the given id.
 void registerAttribute(IMBeanAttribute attribute, String regexp)
          Register a new attribute.
The attribute will automatically be register with each registered BaseModelMBeanExt matching the given regexp.
 void registerBaseModelMBeanExt(String id, IBaseModelMBeanExt mbean)
          Register a new BaseModelMBeanExt.
 void registerOperation(IMBeanOperation operation, String regexp)
          Register a new operation.
The operation will automatically be register with each registered BaseModelMBeanExt matching the given regexp.
 void start()
          Start the service.
 void stop()
          Stop the service.
 void unregisterAttribute(IMBeanAttribute attribute)
          Unregister an attribute.
 void unregisterBaseModelMBeanExt(String id)
          Unregister a BaseModelMBeanExt.
 void unregisterOperation(IMBeanOperation operation)
          Unregister an operation.
 

Method Detail

start

void start()
Start the service.


stop

void stop()
Stop the service.


getBaseModelMBeanExt

IBaseModelMBeanExt getBaseModelMBeanExt(String id)
Get the BaseModelMBeanExt with the given id.

Parameters:
id - The id of the BaseModelMBeanExt to get.
Returns:
The BaseModelMBeanExt with the given id.

registerBaseModelMBeanExt

void registerBaseModelMBeanExt(String id,
                               IBaseModelMBeanExt mbean)
Register a new BaseModelMBeanExt.

Parameters:
id - The id to register the BaseModelMBeanExt with.
mbean - The BaseModelMBeanExt to register.

unregisterBaseModelMBeanExt

void unregisterBaseModelMBeanExt(String id)
Unregister a BaseModelMBeanExt.

Parameters:
id - The id to unregister.

registerAttribute

void registerAttribute(IMBeanAttribute attribute,
                       String regexp)
Register a new attribute.
The attribute will automatically be register with each registered BaseModelMBeanExt matching the given regexp.

Parameters:
attribute - The attribute to register.
regexp - The regexp to apply.

unregisterAttribute

void unregisterAttribute(IMBeanAttribute attribute)
Unregister an attribute.

Parameters:
attribute - The attribute to unregister.

registerOperation

void registerOperation(IMBeanOperation operation,
                       String regexp)
Register a new operation.
The operation will automatically be register with each registered BaseModelMBeanExt matching the given regexp.

Parameters:
operation - The operation to register.
regexp - The regexp to apply.

unregisterOperation

void unregisterOperation(IMBeanOperation operation)
Unregister an operation.

Parameters:
operation - The operation to unregister.


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.