All Packages Class Hierarchy This Package Previous Next Index
Class examples.qry.Agent
java.lang.Object
|
+----examples.qry.Agent
- public class Agent
- extends Object
The purpose of this example is to illustrate the use of the Filter service
provided with Java Dynamic Management.
The Filter service makes use of the Query package.
This Agent class is an extension to the simple
agent example provided
with Java Dynamic Management, which also uses the Filter service.
The MBeans defined for this agent are
- ClassMB : this MBean represents a Java Class
- MethodMB : this MBean represents a method of a Java Class
The classes that the agent must register as class MBeans can be given as arguments. If none is
provided, the agent will use a few basic classes as example.
Each class that is registered in the framework also registers the methods that
are defined within this class.
The agent then applies a set of queries when getting the objects from the Framework.
The queries that are applied can be examined by looking at the Queries class.
-
Agent()
-
-
main(String[])
- The
main method allows you to specify the set of
classes which the agent is going to register.
Agent
public Agent()
main
public static void main(String args[])
- The
main method allows you to specify the set of
classes which the agent is going to register.
It also allows you to specify the trace level
by using the DEBUG properties.
For more information on trace levels, refer to
Debug object.
All Packages Class Hierarchy This Package Previous Next Index