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.
-
Client()
-
-
Client(String)
- Create an adaptor client to enable the client to manage an agent.
-
getClassVersion()
- Returns the version of this class.
-
main(String[])
-
-
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.
Client
public Client()
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.
main
public static void main(String args[])
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.
getClassVersion
public String getClassVersion()
- Returns the version of this class.
All Packages Class Hierarchy This Package Previous Next Index