All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.exception.Client

java.lang.Object
   |
   +----examples.exception.Client

public class Client
extends Object
implements Runnable
The Client implements a simple management application illustrating how to deal with exception handling.
The application performs the following tasks: The application deals with exception handling and catchs 3 different exceptions: Prior to starting the client application, make sure an agent is running. For instance you can use the sample agent provided. If you use a different agent, keep in mind that the client application uses the RMI adaptor for communicating with the agent.

In order to start the client, you need to invoke the following command:

where hostname is the name of the machine where the agent is running. By default it is the local host. The Client implements Runnable and can also be started using the Bootstrap service.


Constructor Index

 o Client()

Method Index

 o main(String[])
It is possible to specify on the command line the implementation to use for the adaptor function.
 o run()
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.

Constructors

 o Client
 public Client()

Methods

 o main
 public static void main(String argv[])
It is possible to specify on the command line the implementation to use for the adaptor function. In particular, it is possible to specify the host name where the agent is running.

 o run
 public void run()
When an object implementing interface Runnable is used to create a thread, starting the thread causes the object's run method to be called in that separately executing thread.


All Packages  Class Hierarchy  This Package  Previous  Next  Index