james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hamm...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james JamesMBean.java JamesMBean.mxinfo James.java James.xinfo
Date Thu, 15 Aug 2002 07:07:21 GMT
hammant     2002/08/15 00:07:21

  Modified:    .        build.xml
               src/java/org/apache/james James.java James.xinfo
  Added:       src/java/org/apache/james JamesMBean.java JamesMBean.mxinfo
  Log:
  First JMX managable thing (addUser)
  
  Revision  Changes    Path
  1.102     +2 -1      jakarta-james/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-james/build.xml,v
  retrieving revision 1.101
  retrieving revision 1.102
  diff -u -r1.101 -r1.102
  --- build.xml	13 Aug 2002 05:43:02 -0000	1.101
  +++ build.xml	15 Aug 2002 07:07:21 -0000	1.102
  @@ -208,6 +208,7 @@
               <fileset dir="${java.dir}">
                   <include name="**/*.properties"/>
                   <include name="**/*.xinfo"/>
  +                <include name="**/*.mxinfo"/>
               </fileset>
           </copy>
       </target>
  
  
  
  1.25      +6 -6      jakarta-james/src/java/org/apache/james/James.java
  
  Index: James.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/James.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- James.java	8 Aug 2002 00:47:45 -0000	1.24
  +++ James.java	15 Aug 2002 07:07:21 -0000	1.25
  @@ -59,7 +59,7 @@
    */
   public class James
       extends AbstractLogEnabled
  -    implements Contextualizable, Composable, Configurable,
  +    implements Contextualizable, Composable, Configurable, JamesMBean,
                  Initializable, MailServer, MailetContext, Component {
   
       private final static String VERSION = Constants.SOFTWARE_NAME + " " + Constants.SOFTWARE_VERSION;
  @@ -267,7 +267,7 @@
               throw new MessagingException("Exception spooling message: " + e.getMessage(),
e);
           }
           if (getLogger().isInfoEnabled()) {
  -            StringBuffer logBuffer = 
  +            StringBuffer logBuffer =
                   new StringBuffer(64)
                           .append("Mail ")
                           .append(mailimpl.getName())
  @@ -319,7 +319,7 @@
       }
   
       public String getId() {
  -        StringBuffer idBuffer = 
  +        StringBuffer idBuffer =
               new StringBuffer(64)
                       .append("Mail")
                       .append(System.currentTimeMillis())
  @@ -474,7 +474,7 @@
                       return;
                   } catch (MessagingException me) {
                       if (getLogger().isErrorEnabled()) {
  -                        StringBuffer logBuffer = 
  +                        StringBuffer logBuffer =
                               new StringBuffer(128)
                                       .append("Error forwarding mail to ")
                                       .append(forwardTo.toString())
  
  
  
  1.4       +5 -0      jakarta-james/src/java/org/apache/james/James.xinfo
  
  Index: James.xinfo
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/James.xinfo,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- James.xinfo	25 Oct 2001 03:07:01 -0000	1.3
  +++ James.xinfo	15 Aug 2002 07:07:21 -0000	1.4
  @@ -13,6 +13,11 @@
       <service name="org.apache.mailet.MailetContext" version="1.0" />
     </services>
   
  +  <!-- interfaces that may be exported to manange this block -->
  +  <management-access-points>
  +    <service name="org.apache.james.JamesMBean"/>
  +  </management-access-points>
  +
     <dependencies>
   
       <dependency>
  
  
  
  1.1                  jakarta-james/src/java/org/apache/james/JamesMBean.java
  
  Index: JamesMBean.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE file.
   */
  package org.apache.james;
  
  public interface JamesMBean {
  
  	boolean addUser(String userName, String password);
  }
  
  
  
  1.1                  jakarta-james/src/java/org/apache/james/JamesMBean.mxinfo
  
  Index: JamesMBean.mxinfo
  ===================================================================
  <?xml version="1.0"?>
  <!DOCTYPE mxinfo PUBLIC "-//PHOENIX/Mx Info DTD Version 1.0//EN"
                    "http://jakarta.apache.org/phoenix/mxinfo_1_0.dtd">
  
  <mxinfo>
  
      <topic name="Main JAMES Server Management" >
  
        <!-- attributes -->            
  
        <!-- operations -->
  
        <operation
          name="addUser"
          description="Add a User"
          type="boolean">
          <param name="user" description="User ID" type="java.lang.String"/>
          <param name="password" description="Password" type="java.lang.String"/>
        </operation>
  
  
      </topic>
  
  </mxinfo>
  
  
  

--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message