Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 42267 invoked from network); 4 Apr 2011 10:23:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Apr 2011 10:23:49 -0000 Received: (qmail 73929 invoked by uid 500); 4 Apr 2011 10:23:49 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 73886 invoked by uid 500); 4 Apr 2011 10:23:49 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 73879 invoked by uid 99); 4 Apr 2011 10:23:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 10:23:49 +0000 X-ASF-Spam-Status: No, hits=-1996.4 required=5.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Apr 2011 10:23:48 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0D3A823889B1; Mon, 4 Apr 2011 10:23:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1088538 - in /directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication: ReplicationConsumer.java ReplicationConsumerConfig.java Date: Mon, 04 Apr 2011 10:23:28 -0000 To: commits@directory.apache.org From: kayyagari@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110404102328.0D3A823889B1@eris.apache.org> Author: kayyagari Date: Mon Apr 4 10:23:27 2011 New Revision: 1088538 URL: http://svn.apache.org/viewvc?rev=1088538&view=rev Log: o interface for replication consumer/client o a marker interface for replication configuration Added: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicationConsumer.java directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicationConsumerConfig.java Added: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicationConsumer.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicationConsumer.java?rev=1088538&view=auto ============================================================================== --- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicationConsumer.java (added) +++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicationConsumer.java Mon Apr 4 10:23:27 2011 @@ -0,0 +1,76 @@ +/* + * 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.directory.server.ldap.replication; + + +import org.apache.directory.server.core.DirectoryService; + + +/** + * An interface for providers of a service which receives the ldap entries as and when a + * event happens in the server. The data received might vary based on the internal configuration + * used by implementation. + * + * @author Apache Directory Project + */ +public interface ReplicationConsumer +{ + /** + * sets the configuration of the consumer + * + * @param config the configuration of the consumer + */ + void setConfig( ReplicationConsumerConfig config ); + + + /** + * @return get the configuration of the consumer + */ + ReplicationConsumerConfig getConfig(); + + + /** + * initializes the consumer + * + * @param dirService the DirectoryService + * @throws Exception + */ + void init( DirectoryService dirService ) throws Exception; + + + /** + * starts the consumer + */ + void start(); + + + /** + * stops the consumer + */ + void stop(); + + + /** + * the identifier of this consumer instance + * @return the identifier of the consumer instance + */ + String getId(); +} Added: directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicationConsumerConfig.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicationConsumerConfig.java?rev=1088538&view=auto ============================================================================== --- directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicationConsumerConfig.java (added) +++ directory/apacheds/trunk/protocol-ldap/src/main/java/org/apache/directory/server/ldap/replication/ReplicationConsumerConfig.java Mon Apr 4 10:23:27 2011 @@ -0,0 +1,31 @@ +/* + * 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.directory.server.ldap.replication; + +/** + * A marker interface for the configuration used in implementations of ReplicationConsumer. + * + * @author Apache Directory Project + */ +public interface ReplicationConsumerConfig +{ + +}