public class SyncReplConfiguration extends java.lang.Object implements ReplicationConsumerConfig
| Modifier and Type | Field and Description |
|---|---|
private org.apache.directory.api.ldap.model.message.AliasDerefMode |
aliasDerefMode
alias dereferencing mode, default is set to 'never deref aliases'
|
private java.util.Set<java.lang.String> |
attributes
names of attributes to be replicated, default value is all user attributes
|
private java.lang.String |
baseDn
the base Dn whose content will be searched for replicating
|
private boolean |
chaseReferrals
flag to indicate whether to chase referrals or not, default is false hence passes ManageDsaITControl with syncsearch request
|
private org.apache.directory.api.ldap.model.name.Dn |
configEntryDn
The configuration entry DN
|
private byte[] |
cookie
the cookie received from server
|
private java.lang.String |
filter
the ldap filter for fetching the entries, default value is (objectClass=*)
|
private boolean |
mmrMode
flag to indicate if this node is part of a MMR setup, default value is true
|
private java.lang.String |
producer
The producer, as
|
private long |
refreshInterval
time interval for successive sync requests, default is 60 seconds
|
private boolean |
refreshNPersist
flag to represent refresh and persist or refresh only mode, defaults to true
|
private java.lang.String |
remoteHost
host name of the syncrepl remote server, default value is localhost
|
private int |
remotePort
port number of the syncrepl provider server, default is 10389
|
private int |
replicaId
the replica's id
|
private java.lang.String |
replUserDn
replication user's Dn
|
private byte[] |
replUserPassword
password for binding with replication user dn
|
private org.apache.directory.api.ldap.model.message.SearchScope |
searchScope
the search scope, default is sub tree level
|
private int |
searchSizeLimit
the maximum number of search results to be fetched
default value is 0 (i.e no limit)
|
private int |
searchTimeout
the timeout value to be used while doing a search
default value is 0 (i.e no limit)
|
private boolean |
strictCertVerification
flag to indicate the use of strict certificate verification, default is true
|
private javax.net.ssl.X509TrustManager |
trustManager
the X509 certificate trust manager used, default value set to
NoVerificationTrustManager |
private boolean |
useTls
flag to indicate the use of TLS, default is true
|
| Constructor and Description |
|---|
SyncReplConfiguration()
Creates a new instance of SyncreplConfiguration
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.directory.api.ldap.model.message.AliasDerefMode |
getAliasDerefMode() |
java.lang.String[] |
getAttributes() |
java.lang.String |
getBaseDn() |
org.apache.directory.api.ldap.model.name.Dn |
getConfigEntryDn() |
byte[] |
getCookie() |
java.lang.String |
getFilter() |
java.lang.String |
getProducer()
A convenient method that concatenates the host and port of the producer
|
long |
getRefreshInterval() |
java.lang.String |
getRemoteHost() |
int |
getRemotePort() |
int |
getReplicaId() |
java.lang.String |
getReplUserDn() |
byte[] |
getReplUserPassword() |
org.apache.directory.api.ldap.model.message.SearchScope |
getSearchScope() |
int |
getSearchSizeLimit() |
int |
getSearchTimeout() |
javax.net.ssl.X509TrustManager |
getTrustManager() |
boolean |
isChaseReferrals()
Tells if we chase referrals
|
boolean |
isMmrMode() |
boolean |
isRefreshNPersist() |
boolean |
isStrictCertVerification() |
boolean |
isUseTls() |
void |
setAliasDerefMode(org.apache.directory.api.ldap.model.message.AliasDerefMode aliasDerefMode) |
void |
setAttributes(java.lang.String[] attrs) |
void |
setBaseDn(java.lang.String baseDn) |
void |
setChaseReferrals(boolean chaseReferrals) |
void |
setConfigEntryDn(org.apache.directory.api.ldap.model.name.Dn configEntryDn) |
void |
setCookie(byte[] cookie) |
void |
setFilter(java.lang.String filter) |
void |
setMmrMode(boolean mmrMode)
enable/disable MMR option
|
void |
setRefreshInterval(long refreshInterval) |
void |
setRefreshNPersist(boolean refreshNPersist) |
void |
setRemoteHost(java.lang.String remoteHost) |
void |
setRemotePort(int remotePort) |
void |
setReplicaId(int replicaId) |
void |
setReplUserDn(java.lang.String replUserdDn) |
void |
setReplUserPassword(byte[] replUserPassword) |
void |
setSearchScope(org.apache.directory.api.ldap.model.message.SearchScope searchScope) |
void |
setSearchSizeLimit(int searchSizeLimit) |
void |
setSearchTimeout(int searchTimeout) |
void |
setStrictCertVerification(boolean strictCertVerification)
set the strict certificate verification
|
void |
setUseTls(boolean useTls)
set the option to turn on/off use of TLS
|
java.lang.String |
toString() |
private java.lang.String remoteHost
private int remotePort
private java.lang.String producer
private java.lang.String replUserDn
private byte[] replUserPassword
private boolean refreshNPersist
private long refreshInterval
private java.lang.String baseDn
private java.lang.String filter
private java.util.Set<java.lang.String> attributes
private int searchSizeLimit
private int searchTimeout
private org.apache.directory.api.ldap.model.message.SearchScope searchScope
private org.apache.directory.api.ldap.model.message.AliasDerefMode aliasDerefMode
private byte[] cookie
private int replicaId
private org.apache.directory.api.ldap.model.name.Dn configEntryDn
private boolean chaseReferrals
private boolean useTls
private boolean strictCertVerification
private javax.net.ssl.X509TrustManager trustManager
NoVerificationTrustManagerprivate boolean mmrMode
public SyncReplConfiguration()
public java.lang.String getRemoteHost()
public void setRemoteHost(java.lang.String remoteHost)
remoteHost - the remote Host to setpublic java.lang.String getProducer()
public int getRemotePort()
public void setRemotePort(int remotePort)
remotePort - the remote port to setpublic java.lang.String getReplUserDn()
public void setReplUserDn(java.lang.String replUserdDn)
replUserdDn - the Dn of the replication userpublic byte[] getReplUserPassword()
public void setReplUserPassword(byte[] replUserPassword)
replUserPassword - the replication user's passwordpublic boolean isRefreshNPersist()
public void setRefreshNPersist(boolean refreshNPersist)
refreshNPersist - the falg indicating to run the consumer in refreshAndPersist modepublic long getRefreshInterval()
public void setRefreshInterval(long refreshInterval)
refreshInterval - the consumerInterval to setpublic java.lang.String getBaseDn()
public void setBaseDn(java.lang.String baseDn)
baseDn - the baseDn to setpublic java.lang.String getFilter()
public void setFilter(java.lang.String filter)
filter - the filter to setpublic java.lang.String[] getAttributes()
public void setAttributes(java.lang.String[] attrs)
attrs - the attributes to setpublic int getSearchSizeLimit()
public void setSearchSizeLimit(int searchSizeLimit)
searchSizeLimit - the searchSizeLimit to setpublic int getSearchTimeout()
public void setSearchTimeout(int searchTimeout)
searchTimeout - the searchTimeout to setpublic org.apache.directory.api.ldap.model.message.SearchScope getSearchScope()
public void setSearchScope(org.apache.directory.api.ldap.model.message.SearchScope searchScope)
searchScope - the searchScope to setpublic int getReplicaId()
public void setReplicaId(int replicaId)
replicaId - the replicaId to setpublic org.apache.directory.api.ldap.model.message.AliasDerefMode getAliasDerefMode()
public void setAliasDerefMode(org.apache.directory.api.ldap.model.message.AliasDerefMode aliasDerefMode)
aliasDerefMode - Should be either NEVER_DEREF_ALIASES or DEREF_FINDING_BASE_OBJpublic byte[] getCookie()
public void setCookie(byte[] cookie)
cookie - The cookie to setpublic boolean isChaseReferrals()
public void setChaseReferrals(boolean chaseReferrals)
chaseReferrals - Lust be false, always.public org.apache.directory.api.ldap.model.name.Dn getConfigEntryDn()
public boolean isUseTls()
public void setUseTls(boolean useTls)
useTls - public boolean isStrictCertVerification()
public void setStrictCertVerification(boolean strictCertVerification)
strictCertVerification - public javax.net.ssl.X509TrustManager getTrustManager()
public void setConfigEntryDn(org.apache.directory.api.ldap.model.name.Dn configEntryDn)
configEntryDn - the configEntryDn to setpublic boolean isMmrMode()
public void setMmrMode(boolean mmrMode)
mmrMode - public java.lang.String toString()
toString in class java.lang.Object