All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.mo.Mlet2.Client

java.lang.Object
   |
   +----examples.mo.Mlet2.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 following MLET tag is specified in the file:

<MLET
CODE = examples.mo.Mlet2.Master.class
ARCHIVE = Master.jar
NAME = defaultDomain:examples.mo.Mlet2.Master.id=auto
VERSION = 1.0
>
</MLET>

Note that we only specify the Master m-bean in the MLET tag, although the JAR file also contains the Sub m-bean. In this case only the Master m-bean will be instanciated and registered with the framework through the M-Let service. In the initCmf method of the Master m-bean we add 2 instances of the Sub m-bean to the framework.

Prior to starting the client application, make sure an agent is running with the M-Let service. 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:
Master, Sub, 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