com.sun.jaw.impl.base
Class Main

java.lang.Object
  |
  +--com.sun.jaw.impl.base.Main

public class Main
extends java.lang.Object

The Main class provides an implementation of a simple Java Dynamic Management agent. It provides a single framework for the management of applications and system resources on a host machine.

An agent implemented by the Main class initializes the services that a Java Dynamic Management agent must provide:

In addition, the agent starts these managed object adaptor servers: The HTML adaptor allows the user to manage the agent that uses it through a Web browser. To manage the agent through a Web browser, point the Web browser at http://hostname:8082.

The default URL for the HTTP adaptor is http://hostname:8081. The port number to be used for HTTP can be changed.

The default URL for the RMI adaptor is rmi://hostname:1099/com.sun.jaw.impl.adaptor.rmi.AdaptorServer. The port number to be used for RMI can be changed.

When running the agent a command-line argument can be provided in order to specify the property file containing the Java DMK properties to be loaded. If no property file is specified then default values will be used.

You have to extend an agent implemented by the Main class to enable the agent to restart the non-persistent services that can be dynamically added to it. To extend an agent in this way, you use a configuration file.


Constructor Summary
Main()
           
 
Method Summary
static void main(java.lang.String[] args)
          The main method allows you to provide a command-line parameter that specifies the Java DMK property file to be loaded.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Main

public Main()
Method Detail

main

public static void main(java.lang.String[] args)
The main method allows you to provide a command-line parameter that specifies the Java DMK property file to be loaded. If no property file is specified then default values will be used. In addition, it allows you to specify the trace level by using the DEBUG properties. For more information on trace levels, refer to the class Debug.