All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.agent.Agent

java.lang.Object
   |
   +----examples.agent.Agent

public class Agent
extends Object
This class provides a simple example on how to use the framework.


Constructor Index

 o Agent(String, String)
In order to initialize the agent, implementation names of the different services required by the Common Management Framework must be provided.

Method Index

 o getClassVersion()
Returns the version of this class.
 o localTest()
The method performs a number of local tests on the agents.
 o main(String[])
 o usage()

Constructors

 o Agent
 public Agent(String filImplName,
              String metImplName) throws ClassNotFoundException, IllegalAccessException, InstanceAlreadyExistException, InvocationTargetException, InstantiationException, ServiceNotFoundException
In order to initialize the agent, implementation names of the different services required by the Common Management Framework must be provided.

Parameters:
repImplName - name of the repository implementation
filImplName - name of the filtering implementation
metImplName - name of the metadata implementation
Throws: ClassNotFoundException
The specified class could not be found.
Throws: IllegalAccessException
The method has tried to access a class that is not public and in another package.
Throws: InstanceAlreadyExistException
The m-bean is already registered in the repository.
Throws: InvocationTargetException
It is a checked exception that wraps an exception thrown by an invoked method or constructor.
Throws: InstantiationException
A new instance of the specified class could not be created.
Throws: ServiceNotFoundException
The requested service is not supported.

Methods

 o localTest
 public void localTest() throws Exception
The method performs a number of local tests on the agents.

Throws: Exception
No comment.
 o main
 public static void main(String args[])
 o usage
 public static void usage()
 o getClassVersion
 public String getClassVersion()
Returns the version of this class.


All Packages  Class Hierarchy  This Package  Previous  Next  Index