public class SyncReplConfiguration extends Object implements ReplicationConsumerConfig
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() |
String[] |
getAttributes() |
String |
getBaseDn() |
org.apache.directory.api.ldap.model.name.Dn |
getConfigEntryDn() |
byte[] |
getCookie() |
String |
getFilter() |
String |
getProducer()
A convenient method that concatenates the host and port of the producer
|
long |
getRefreshInterval() |
String |
getRemoteHost() |
int |
getRemotePort() |
int |
getReplicaId() |
String |
getReplUserDn() |
byte[] |
getReplUserPassword() |
org.apache.directory.api.ldap.model.message.SearchScope |
getSearchScope() |
int |
getSearchSizeLimit() |
int |
getSearchTimeout() |
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(String[] attrs) |
void |
setBaseDn(String baseDn) |
void |
setChaseReferrals(boolean chaseReferrals) |
void |
setConfigEntryDn(org.apache.directory.api.ldap.model.name.Dn configEntryDn) |
void |
setCookie(byte[] cookie) |
void |
setFilter(String filter) |
void |
setMmrMode(boolean mmrMode)
enable/disable MMR option
|
void |
setRefreshInterval(long refreshInterval) |
void |
setRefreshNPersist(boolean refreshNPersist) |
void |
setRemoteHost(String remoteHost) |
void |
setRemotePort(int remotePort) |
void |
setReplicaId(int replicaId) |
void |
setReplUserDn(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
|
String |
toString() |
public SyncReplConfiguration()
public String getRemoteHost()
public void setRemoteHost(String remoteHost)
remoteHost
- the remote Host to setpublic String getProducer()
public int getRemotePort()
public void setRemotePort(int remotePort)
remotePort
- the remote port to setpublic String getReplUserDn()
public void setReplUserDn(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 String[] getAttributes()
public void setAttributes(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
- If we have to use TLSpublic boolean isStrictCertVerification()
public void setStrictCertVerification(boolean strictCertVerification)
strictCertVerification
- If we require a certificate validationpublic 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
- The type of replicationCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.