james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ieu...@apache.org
Subject svn commit: r1295664 - in /james/mailbox/trunk: ./ zoo-seq-provider/ zoo-seq-provider/src/ zoo-seq-provider/src/main/ zoo-seq-provider/src/main/java/ zoo-seq-provider/src/main/java/org/ zoo-seq-provider/src/main/java/org/apache/ zoo-seq-provider/src/ma...
Date Thu, 01 Mar 2012 16:41:36 GMT
Author: ieugen
Date: Thu Mar  1 16:41:36 2012
New Revision: 1295664

URL: http://svn.apache.org/viewvc?rev=1295664&view=rev
Log:
Issue #MAILBOX-103 - Design and implement Distributed UID generation
MAILBOX-103
- added zoo-seq-provider module to the mailbox

Added:
    james/mailbox/trunk/zoo-seq-provider/
    james/mailbox/trunk/zoo-seq-provider/pom.xml   (with props)
    james/mailbox/trunk/zoo-seq-provider/src/
    james/mailbox/trunk/zoo-seq-provider/src/main/
    james/mailbox/trunk/zoo-seq-provider/src/main/java/
    james/mailbox/trunk/zoo-seq-provider/src/main/java/org/
    james/mailbox/trunk/zoo-seq-provider/src/main/java/org/apache/
    james/mailbox/trunk/zoo-seq-provider/src/main/java/org/apache/james/
    james/mailbox/trunk/zoo-seq-provider/src/main/java/org/apache/james/mailbox/
    james/mailbox/trunk/zoo-seq-provider/src/main/java/org/apache/james/mailbox/store/
    james/mailbox/trunk/zoo-seq-provider/src/main/java/org/apache/james/mailbox/store/mail/
    james/mailbox/trunk/zoo-seq-provider/src/main/java/org/apache/james/mailbox/store/mail/ZooUidProvider.java
  (with props)
    james/mailbox/trunk/zoo-seq-provider/src/test/
    james/mailbox/trunk/zoo-seq-provider/src/test/java/
Modified:
    james/mailbox/trunk/pom.xml

Modified: james/mailbox/trunk/pom.xml
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/pom.xml?rev=1295664&r1=1295663&r2=1295664&view=diff
==============================================================================
--- james/mailbox/trunk/pom.xml (original)
+++ james/mailbox/trunk/pom.xml Thu Mar  1 16:41:36 2012
@@ -47,6 +47,7 @@
         <module>hbase</module>
         <module>spring</module>
         <module>tool</module>
+        <module>zoo-seq-provider</module>
     </modules>
 
     <scm>

Added: james/mailbox/trunk/zoo-seq-provider/pom.xml
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/zoo-seq-provider/pom.xml?rev=1295664&view=auto
==============================================================================
--- james/mailbox/trunk/zoo-seq-provider/pom.xml (added)
+++ james/mailbox/trunk/zoo-seq-provider/pom.xml Thu Mar  1 16:41:36 2012
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <artifactId>apache-james-mailbox</artifactId>
+        <groupId>org.apache.james</groupId>
+        <version>0.5-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+
+    <artifactId>zookeeper-sequence-provider</artifactId>
+
+    <name>Apache James Zookeeper Sequence Provider</name>
+    <description>High performance distribuited sequence provider based on ZooKeepr
</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit-dep</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.slf4j</groupId>
+            <artifactId>slf4j-simple</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>apache-james-mailbox-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>${project.groupId}</groupId>
+            <artifactId>apache-james-mailbox-store</artifactId>
+        </dependency>
+    </dependencies>
+</project>

Propchange: james/mailbox/trunk/zoo-seq-provider/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Id Author Revision HeadURL

Added: james/mailbox/trunk/zoo-seq-provider/src/main/java/org/apache/james/mailbox/store/mail/ZooUidProvider.java
URL: http://svn.apache.org/viewvc/james/mailbox/trunk/zoo-seq-provider/src/main/java/org/apache/james/mailbox/store/mail/ZooUidProvider.java?rev=1295664&view=auto
==============================================================================
--- james/mailbox/trunk/zoo-seq-provider/src/main/java/org/apache/james/mailbox/store/mail/ZooUidProvider.java
(added)
+++ james/mailbox/trunk/zoo-seq-provider/src/main/java/org/apache/james/mailbox/store/mail/ZooUidProvider.java
Thu Mar  1 16:41:36 2012
@@ -0,0 +1,41 @@
+/****************************************************************
+ * 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.mailbox.store.mail;
+
+import org.apache.james.mailbox.MailboxSession;
+import org.apache.james.mailbox.exception.MailboxException;
+import org.apache.james.mailbox.store.mail.model.Mailbox;
+
+/**
+ * ZooKeepr based implementation of a distribuited sequential UID generator.
+ */
+public class ZooUidProvider<E> implements UidProvider<E> {
+
+    @Override
+    public long nextUid(MailboxSession session,
+                        Mailbox<E> mailbox) throws MailboxException {
+        throw new UnsupportedOperationException("Not supported yet.");
+    }
+
+    @Override
+    public long lastUid(MailboxSession session,
+                        Mailbox<E> mailbox) throws MailboxException {
+        throw new UnsupportedOperationException("Not supported yet.");
+    }
+}

Propchange: james/mailbox/trunk/zoo-seq-provider/src/main/java/org/apache/james/mailbox/store/mail/ZooUidProvider.java
------------------------------------------------------------------------------
    svn:keywords = Id Author Revision HeadURL



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


Mime
View raw message