All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.mo.Mlet2.Sub

java.lang.Object
   |
   +----examples.mo.Mlet2.Sub

public class Sub
extends Object
implements Serializable
A simple definition of an m-bean.
The m-bean shows how to: The object has two properties:


Constructor Index

 o Sub()

Method Index

 o getState()
Getter for the "State" property.
 o initCmf(Framework, ObjectName)
Register the m-bean with the agent and set the "State" property.

Constructors

 o Sub
 public Sub()

Methods

 o getState
 public String getState()
Getter for the "State" property. The method is compliant with the Bean design pattern.

Returns:
the current value of the "State" property.
 o initCmf
 public void initCmf(Framework agent,
                     ObjectName name) throws ServiceNotFoundException, InstanceAlreadyExistException, IllegalAccessException
Register the m-bean with the agent and set the "State" property.

Parameters:
agent - a reference to the core management framework.
name - the object name to use for registering.
Throws: IllegalAccessException
The method cannot access the class definition of the specified m-bean.
Throws: ServiceNotFoundException
The requested service is not supported.
Throws: InstanceAlreadyExistException
The m-bean is already registered in the repository.

All Packages  Class Hierarchy  This Package  Previous  Next  Index