All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.client.Client

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

public class Client
extends Object
implements Runnable
This class provides a simple example showing how to write a client.


Constructor Index

 o Client()
 o Client(String)
Create an adaptor client to enable the client to manage an agent.

Method Index

 o getClassVersion()
Returns the version of this class.
 o main(String[])
 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()
 o Client
 public Client(String adaptor) throws ClassNotFoundException, InstantiationException, IllegalAccessException
Create an adaptor client to enable the client to manage an agent.

Parameters:
adaptor - Name of the adaptor client to be created.
Throws: ClassNotFoundException
The specified class could not be found.
Throws: InstantiationException
A new instance of the specified class could not be created.
Throws: IllegalAccessException
The method has tried to access a class that is not public and in another package.

Methods

 o main
 public static void main(String args[])
 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.

 o getClassVersion
 public String getClassVersion()
Returns the version of this class.


All Packages  Class Hierarchy  This Package  Previous  Next  Index