All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.mo.Monitor.AskMe

java.lang.Object
   |
   +----examples.mo.Monitor.AskMe

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

Method Index

 o getFreeMem()
Getter for the "FreeMem" property.
 o getNbObjects()
Getter for the "NbObjects" property.
 o initCmf(Framework, ObjectName)
Registers the m-bean and keep a reference to the core framework.

Constructors

 o AskMe
 public AskMe()

Methods

 o getNbObjects
 public Integer getNbObjects()
Getter for the "NbObjects" property. The method is compliant with the Bean design pattern.

Returns:
the current value of the "NbObjects" property.
 o getFreeMem
 public Integer getFreeMem()
Getter for the "FreeMem" property. The method is compliant with the Bean design pattern.

Returns:
the current value of the "FreeMem" property.
 o initCmf
 public void initCmf(Framework agent,
                     ObjectName name) throws InstanceAlreadyExistException, ServiceNotFoundException, IllegalAccessException
Registers the m-bean and keep a reference to the core framework.

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