You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by do...@apache.org on 2002/09/21 02:59:48 UTC

cvs commit: jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/launcher JMXLauncherMBean.java

donaldp     2002/09/20 17:59:48

  Added:       src/java/org/apache/avalon/phoenix/launcher
                        JMXLauncherMBean.java
  Log:
  Add in a JMX interface that follows JBoss patterns to enable launching of Phoenix from within JBoss.
  
  Submitted By: Steve Short
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-phoenix/src/java/org/apache/avalon/phoenix/launcher/JMXLauncherMBean.java
  
  Index: JMXLauncherMBean.java
  ===================================================================
  package org.apache.avalon.phoenix.launcher;
  
  /**
   * A simple JMX interface to launcher.
   * Used to launch Phoenix from within Phoenix.
   *
   * @author <a href="mailto:sshort at postx.com">Steve Short</a>
   */
  public interface JMXLauncherMBean
  {
      String OBJECT_NAME = "Phoenix:service=Launcher";
  
      // Constants -----------------------------------------------------
  
      String[] states = new String[]
      {
          "Stopped", "Stopping", "Starting", "Started", "Failed"
      };
  
      int STOPPED = 0;
      int STOPPING = 1;
      int STARTING = 2;
      int STARTED = 3;
      int FAILED = 4;
  
      /**
       * Return MBean state as an int
       */
      int getState();
  
      /**
       * Return MBean state as a String
       */
      String getStateString();
  
      /**
       * create the service, do expensive operations etc
       */
      void create() throws Exception;
  
      /**
       * start the service, create is already called
       */
      void start() throws Exception;
  
      /**
       * stop the service
       */
      void stop();
  
      /**
       * destroy the service, tear down
       */
      void destroy();
  
      /**
       * Accessors for phoenix home directory
       */
      void setPhoenixHome( String value );
  
      String getPhoenixHome();
  
      /**
       * Accessors for phoenix config file
       */
      void setPhoenixConfigFile( String value );
  
      String getPhoenixConfigFile();
  
      /**
       * Accessors for phoenix applications directory
       */
      void setAppsPath( String value );
  
      String getAppsPath();
  
      /**
       * Accessors for phoenix log file name
       */
      void setLogFilename( String value );
  
      String getLogFilename();
  
      /**
       * Accessors for phoenix debug flag
       */
      void setPhoenixDebug( String value );
  
      String getPhoenixDebug();
  }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>