You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by bt...@apache.org on 2015/09/16 17:30:53 UTC

svn commit: r1703426 - in /james/server/trunk: container/cli/ container/spring/src/main/java/org/apache/james/container/spring/mailbox/ data/data-api/src/main/java/org/apache/james/container/ data/data-api/src/main/java/org/apache/james/container/sprin...

Author: btellier
Date: Wed Sep 16 15:30:52 2015
New Revision: 1703426

URL: http://svn.apache.org/r1703426
Log:
JAMES-1603 MailboxCopier MBean interface belongs to data-api -- Contributed by Matthieu Baechler

Added:
    james/server/trunk/data/data-api/src/main/java/org/apache/james/container/
    james/server/trunk/data/data-api/src/main/java/org/apache/james/container/spring/
    james/server/trunk/data/data-api/src/main/java/org/apache/james/container/spring/mailbox/
    james/server/trunk/data/data-api/src/main/java/org/apache/james/container/spring/mailbox/MailboxCopierManagementMBean.java
Removed:
    james/server/trunk/container/spring/src/main/java/org/apache/james/container/spring/mailbox/MailboxCopierManagementMBean.java
Modified:
    james/server/trunk/container/cli/pom.xml

Modified: james/server/trunk/container/cli/pom.xml
URL: http://svn.apache.org/viewvc/james/server/trunk/container/cli/pom.xml?rev=1703426&r1=1703425&r2=1703426&view=diff
==============================================================================
--- james/server/trunk/container/cli/pom.xml (original)
+++ james/server/trunk/container/cli/pom.xml Wed Sep 16 15:30:52 2015
@@ -43,8 +43,8 @@
             <artifactId>james-server-mailbox-adapter</artifactId>
         </dependency>
         <dependency>
-            <groupId>org.apache.james</groupId>
-            <artifactId>james-server-spring</artifactId>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
         </dependency>
         <dependency>
             <groupId>commons-cli</groupId>

Added: james/server/trunk/data/data-api/src/main/java/org/apache/james/container/spring/mailbox/MailboxCopierManagementMBean.java
URL: http://svn.apache.org/viewvc/james/server/trunk/data/data-api/src/main/java/org/apache/james/container/spring/mailbox/MailboxCopierManagementMBean.java?rev=1703426&view=auto
==============================================================================
--- james/server/trunk/data/data-api/src/main/java/org/apache/james/container/spring/mailbox/MailboxCopierManagementMBean.java (added)
+++ james/server/trunk/data/data-api/src/main/java/org/apache/james/container/spring/mailbox/MailboxCopierManagementMBean.java Wed Sep 16 15:30:52 2015
@@ -0,0 +1,47 @@
+/****************************************************************
+ * Licensed to the Apache Software Foundation (ASF) under one   *
+ * or more contributor license agreements.  See the NOTICE file *
+ * distributed with this work for additional information        *
+ * regarding copyright ownership.  The ASF licenses this file   *
+ * to you under the Apache License, Version 2.0 (the            *
+ * "License"); you may not use this file except in compliance   *
+ * with the License.  You may obtain a copy of the License at   *
+ *                                                              *
+ *   http://www.apache.org/licenses/LICENSE-2.0                 *
+ *                                                              *
+ * Unless required by applicable law or agreed to in writing,   *
+ * software distributed under the License is distributed on an  *
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY       *
+ * KIND, either express or implied.  See the License for the    *
+ * specific language governing permissions and limitations      *
+ * under the License.                                           *
+ ****************************************************************/
+package org.apache.james.container.spring.mailbox;
+
+import java.util.Map;
+
+/**
+ * Allow to copy {@link MailboxManager} contents from one to the other via JMX
+ */
+public interface MailboxCopierManagementMBean {
+
+    /**
+     * Return a {@link Map} which contains the bean name of the registered
+     * {@link MailboxManager} instances as keys and the classname of them as
+     * values
+     * 
+     * @return managers
+     */
+    Map<String, String> getMailboxManagerBeans();
+
+    /**
+     * Copy from srcBean to dstBean all messages
+     * 
+     * @param srcBean
+     * @param dstBean
+     * @throws Exception
+     *             if copying failed
+     */
+    void copy(String srcBean, String dstBean) throws Exception;
+
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org