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:
- use the
initCmf method to register the m-bean.
The object has two properties:
- "State" a read only property
-
Sub()
-
-
getState()
- Getter for the "State" property.
-
initCmf(Framework, ObjectName)
- Register the m-bean with the agent and set the "State" property.
Sub
public Sub()
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.
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