All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.mo.SelfReg.SelfRegBean

java.lang.Object
   |
   +----examples.mo.SelfReg.SelfRegBean

public class SelfRegBean
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 SelfRegBean()

Method Index

 o deleteCmf()
Perform closedown tasks.
 o getNbChanges()
Getter for the "NbChanges" property.
 o getState()
Getter for the "State" property.
 o initCmf(Framework, ObjectName)
Perform initialization tasks and register the m-bean.
 o performReset()
Resetter for the "NbChanges" property.
 o setState(String)
Setter for the "State" property.

Constructors

 o SelfRegBean
 public SelfRegBean()

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 setState
 public void setState(String s)
Setter for the "State" property. The method is compliant with the Bean design pattern.

Parameters:
s - the new value of the property.
 o getNbChanges
 public Integer getNbChanges()
Getter for the "NbChanges" property. The method is compliant with the Bean design pattern.

Returns:
the current value of the "NbChanges" property.
 o performReset
 public void performReset()
Resetter for the "NbChanges" property.

 o initCmf
 public void initCmf(Framework agent,
                     ObjectName name) throws IllegalAccessException, ServiceNotFoundException, InstanceAlreadyExistException, IllegalArgumentException
Perform initialization tasks and register the m-bean.

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.
Throws: IllegalArgumentException
One of the parameters in the call to the method is invalid.
 o deleteCmf
 public void deleteCmf()
Perform closedown tasks. In this example we serialize the m-bean on closedown.


All Packages  Class Hierarchy  This Package  Previous  Next  Index