All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.mo.Mlet.Client

java.lang.Object
   |
   +----examples.mo.Mlet.Client

public class Client
extends Object
implements Runnable
The Client implements a simple management application.
The example shows how the M-Let service can be used to obtain m-beans remotely and instanciate them in a remote agent using MLET tags in a file. The two following MLET tags are specified in the file:

<MLET
CODE = examples.mo.Mlet.Name.class
ARCHIVE = Container.jar
NAME = defaultDomain:examples.mo.Mlet.Name.id=NAME
VERSION = 1.0
>
</MLET>

<MLET
CODE = examples.mo.Mlet.Name.class
ARCHIVE = Container.jar
VERSION = 1.0
>
</MLET>

Note that the second MLET tag does not specify the m-bean object name. In this case the m-bean can either implement the initCmf method and provide an object name or do nothing and let the client register it with the framework. For this example the m-bean implemented the initCmf method.

Prior to starting the client application, make sure an agent is running. Also if you didn't follow the default installation set the URL to point to the direcory containing the file with the MLET tags and recompile the example.

See Also:
Name, MLetSrv, AdaptorMO, Main

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.

 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