Openwings API Documentation (v1.1)

net.openwings.management
Interface Manager

All Superinterfaces:
RemoteManager

public interface Manager
extends RemoteManager

This interface is the centerpiece of the Openwings Management architecture. The methods defined in this interface provide access to the management capabilities associated with a component, therefore every Openwings Component will contain a Manager object implementing this interface.

A subset of these methods are exposed in the RemoteManager interface, a service that allows management to be accessed remotely.

An implementation of this interface is obtained using the ManagerFactory. An Openwings Component can obtain a Manager object by calling the net.openwings.component.ComponentComplex.getManager() method.


Method Summary
 void addMBean(MBean bean)
          This method adds an MBean to this Manager.
 void addMBeanAdapter(MBeanAdapter adapter)
          This method adds an MBeanAdapter to this Manager.
 void addUserInterfaceFactory(UserInterfaceFactory factory)
          This method adds a user interface factory to this Manager.
 void removeMBean(MBean bean)
          This method removes an MBean from this Manager.
 void removeMBeanAdapter(MBeanAdapter adapter)
          This method removes an MBeanAdapter.
 void removeUserInterfaceFactory(UserInterfaceFactory factory)
          This method removes a user interface factory from this Manager.
 void shutdown()
          This method is used to terminate all processing provided by a Manager.
 
Methods inherited from interface net.openwings.management.RemoteManager
addManagerListener, getAdapterURLList, getAllMBeans, getInetAddress, getMBean, getUserInterfaceFactories, getUserInterfaceFactories, removeManagerListener
 

Method Detail

addMBean

public void addMBean(MBean bean)
This method adds an MBean to this Manager.

Parameters:
bean - The management bean to be added.

removeMBean

public void removeMBean(MBean bean)
This method removes an MBean from this Manager.

Parameters:
bean - The management bean to be removed.

addMBeanAdapter

public void addMBeanAdapter(MBeanAdapter adapter)
This method adds an MBeanAdapter to this Manager. All existing and MBeans in the Manager will be passed to the MBeanAdapter.

Parameters:
adapter - the management bean adapter

removeMBeanAdapter

public void removeMBeanAdapter(MBeanAdapter adapter)
This method removes an MBeanAdapter.

Parameters:
adapter - the management bean adapter

addUserInterfaceFactory

public void addUserInterfaceFactory(UserInterfaceFactory factory)
This method adds a user interface factory to this Manager. Factories added to the Manager should be used to create user interfaces requested by the inherited method RemoteManager.getUserInterface().

Parameters:
factory - the user interface factory

removeUserInterfaceFactory

public void removeUserInterfaceFactory(UserInterfaceFactory factory)
This method removes a user interface factory from this Manager.

Parameters:
factory - the user interface factory

shutdown

public void shutdown()
This method is used to terminate all processing provided by a Manager. All registered MBeans and ManagerListeners are removed, and all MBeanAdapters are shutdown. The RemoteManager service provided by the Manager should be removed. After this method is called, any operation on the Manager is undefined.


Openwings API Documentation (v1.1)