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.
-
Agent(String, String)
- In order to initialize the agent, implementation names of the
different services required by the Common Management Framework
must be provided.
-
getClassVersion()
- Returns the version of this class.
-
localTest()
- The method performs a number of local tests on the agents.
-
main(String[])
-
-
usage()
-
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.
localTest
public void localTest() throws Exception
- The method performs a number of local tests on the agents.
- Throws: Exception
- No comment.
main
public static void main(String args[])
usage
public static void usage()
getClassVersion
public String getClassVersion()
- Returns the version of this class.
All Packages Class Hierarchy This Package Previous Next Index