com.admc.jamama
Class Jamama

java.lang.Object
  extended byAbstractDynamicMBean
      extended bycom.admc.jamama.Jamama

public class Jamama
extends AbstractDynamicMBean

The top-level class for the Jamama application. This is an MBean Agent which starts up an MBean server thread and all other managed components. It also manages configuration load and save, and server component startup and shutdown. To keep a handle on complexity, we're restricting to use no more than one Director at this time.

Version:
$Revision: 1.19 $
Author:
Blaine Simpson
See Also:
Serialized Form

Constructor Summary
Jamama()
          This starts everthing up.
 
Method Summary
protected  MBeanOperationInfo[] createMBeanOperationInfo()
           
protected  java.lang.String getMBeanDescription()
           
static void main(java.lang.String[] sa)
          Invocation point for the Jamama application.
 void restoreRunStates()
          Restores run state of all top-level server threads.
 void saveCfg()
          Store global Jamama configuration to the Jamama XML configuration file
 void stop()
          Stops all top-level server threads.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Jamama

public Jamama()
This starts everthing up. If when we exit, there are any non-daemon threads running in anything we spawn off, this program will continue to run (unless something calls System.exit(), of course).

Method Detail

createMBeanOperationInfo

protected MBeanOperationInfo[] createMBeanOperationInfo()

getMBeanDescription

protected java.lang.String getMBeanDescription()

main

public static void main(java.lang.String[] sa)
                 throws java.lang.Exception
Invocation point for the Jamama application.

Parameters:
sa - Switch -i will start a command-line interactive session after startup.
Throws:
java.lang.Exception

saveCfg

public void saveCfg()
             throws java.lang.Exception
Store global Jamama configuration to the Jamama XML configuration file

Throws:
java.lang.Exception

stop

public void stop()
Stops all top-level server threads.


restoreRunStates

public void restoreRunStates()
Restores run state of all top-level server threads.