org.apache.directory.server.ldap.replication
Class ReplicaPeerConfiguration

java.lang.Object
  extended by org.apache.directory.server.ldap.replication.ReplicaPeerConfiguration

public class ReplicaPeerConfiguration
extends java.lang.Object

A configuration for a replica peer. We may have many replications relation set for a server, each one of them being described with this structure.

Version:
$Rev$, $Date$
Author:
Apache Directory Project
XBean

Constructor Summary
ReplicaPeerConfiguration()
          Creates a new instance of ConsumerConfiguration.
 
Method Summary
 org.apache.directory.shared.ldap.name.LdapDN getBaseDN()
           
 java.lang.String getHost()
           
 long getInterval()
           
 java.lang.String getPassword()
           
 int getPort()
           
 org.apache.directory.shared.ldap.name.LdapDN getPrincipalDN()
           
 org.apache.directory.shared.ldap.util.LdapURL getProducer()
           
 boolean isRefreshOnly()
           
 boolean isUseSSL()
           
 void setInterval(long interval)
          Set the delay between two RefreshOnly replication.
 void setPassword(java.lang.String password)
           
 void setPrincipalDN(java.lang.String principalDN)
           
 void setProducer(java.lang.String producer)
           
 void setRefreshOnly(boolean refreshOnly)
          Set the type of replication wanted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplicaPeerConfiguration

public ReplicaPeerConfiguration()
Creates a new instance of ConsumerConfiguration.

Method Detail

setRefreshOnly

public void setRefreshOnly(boolean refreshOnly)
Set the type of replication wanted. If false, it will default to RefreshAndPersist.

Parameters:
refreshOnly - true if the refreshOnly replication is requested

isRefreshOnly

public boolean isRefreshOnly()
Returns:
the refreshOnly flag

setInterval

public void setInterval(long interval)
Set the delay between two RefreshOnly replication. Its given in seconds.

Parameters:
interval - the interval to set

getInterval

public long getInterval()
Returns:
the interval

getBaseDN

public org.apache.directory.shared.ldap.name.LdapDN getBaseDN()
Returns:
the baseDN

setPrincipalDN

public void setPrincipalDN(java.lang.String principalDN)
                    throws javax.naming.InvalidNameException
Parameters:
principalDN - the principalDN to set
Throws:
javax.naming.InvalidNameException

getPrincipalDN

public org.apache.directory.shared.ldap.name.LdapDN getPrincipalDN()
Returns:
the principalDN

setPassword

public void setPassword(java.lang.String password)
Parameters:
password - the password to set

getPassword

public java.lang.String getPassword()
Returns:
the password

setProducer

public void setProducer(java.lang.String producer)
                 throws org.apache.directory.shared.ldap.codec.util.LdapURLEncodingException
Parameters:
producer - the producer to set
Throws:
org.apache.directory.shared.ldap.codec.util.LdapURLEncodingException

getProducer

public org.apache.directory.shared.ldap.util.LdapURL getProducer()
Returns:
the producer

isUseSSL

public boolean isUseSSL()
Returns:
true if the connection with the producer is done using SSL

getHost

public java.lang.String getHost()
Returns:
the producer's host

getPort

public int getPort()
Returns:
the producer's port


Copyright © 2003-2009 The Apache Software Foundation. All Rights Reserved.