Package com.day.cq.replication
Class ReplicationOptions
java.lang.Object
com.day.cq.replication.ReplicationOptions
The
ReplicationOptions encapsulate optional
configuration parameters for a replication.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToAliasReplicated(String path) Add path to already replicated alias set.Returns the defined aggregate handler ornullbooleanReturns the filter for selecting the agents.Returns the replication listener.Returns the revision to replicatebooleanisAliasReplicated(String path) Returns true if path is already replicated else false.booleanIf pre processors disabled or enabledbooleanIftrue, the replication will not update the replication status properties after a replication.booleanIftruethe replication will not trigger implicit versioning.booleanShould the replication be done synchronous or asynchronous? The default is asynchronously.booleanbooleanDeprecated.no longer requiredvoidsetAggregateHandler(AggregateHandler aggregateHandler) Sets the aggregate handler.voidsetDesiredAgentIDs(String... desiredAgentId) Deprecated.usesetFilter(AgentFilter)instead.voidsetDisablePreProcessors(boolean disablePreProcessors) voidsetEnableAuditLog(boolean enableAuditLog) Set the enableAuditLog event flagvoidsetFilter(AgentFilter filter) Sets the filter for selecting the agents for the replication.voidsetListener(ReplicationListener listener) Sets the replication listener.voidsetRevision(String revision) Sets the revision to replicate.voidsetSuppressStatusUpdate(boolean suppressStatusUpdate) If set totruethe replication will not update the replication status properties after a replication.voidsetSuppressVersions(boolean suppressVersions) If set totruethe replication will not trigger implicit versioning.voidsetSynchronous(boolean synchronous) Set the synchronous flag.voidsetUpdateAlias(boolean updateAlias) voidsetUseAtomicCalls(boolean useAtomicCalls) Deprecated.no longer requiredtoString()
-
Constructor Details
-
ReplicationOptions
public ReplicationOptions()Create a new options object with default values
-
-
Method Details
-
isSynchronous
public boolean isSynchronous()Should the replication be done synchronous or asynchronous? The default is asynchronously.- Returns:
truefor synchronous replication
-
setSynchronous
public void setSynchronous(boolean synchronous) Set the synchronous flag.- Parameters:
synchronous-truefor synchronous replication
-
setEnableAuditLog
public void setEnableAuditLog(boolean enableAuditLog) Set the enableAuditLog event flag- Parameters:
enableAuditLog-falseskips the creation of the audit log
-
getEnableAuditLog
public boolean getEnableAuditLog()- Returns:
- if audit logging is enabled
-
setDesiredAgentIDs
Deprecated.usesetFilter(AgentFilter)instead.Set the desired agent ids. Please note, that this method internally sets a newAgentIdFilter.- Parameters:
desiredAgentId- agent ids
-
setFilter
Sets the filter for selecting the agents for the replication.- Parameters:
filter- agent filter
-
getFilter
Returns the filter for selecting the agents.- Returns:
- the filter
-
getRevision
Returns the revision to replicate- Returns:
- the revision
-
setRevision
Sets the revision to replicate.- Parameters:
revision- the revision name.
-
getListener
Returns the replication listener.- Returns:
- the listener or
null
-
setListener
Sets the replication listener. Please note that a listener is currently only called for synchronous replication.- Parameters:
listener- the replication listener.
-
isSuppressStatusUpdate
public boolean isSuppressStatusUpdate()Iftrue, the replication will not update the replication status properties after a replication.- Returns:
trueif status updates should be suppressed.- Since:
- 5.4
-
setSuppressStatusUpdate
public void setSuppressStatusUpdate(boolean suppressStatusUpdate) If set totruethe replication will not update the replication status properties after a replication.- Parameters:
suppressStatusUpdate-trueif status updates should be suppressed- Since:
- 5.4
-
isSuppressVersions
public boolean isSuppressVersions()Iftruethe replication will not trigger implicit versioning.- Returns:
trueif implicit versioning should be suppressed- Since:
- 5.4
-
setSuppressVersions
public void setSuppressVersions(boolean suppressVersions) If set totruethe replication will not trigger implicit versioning.- Parameters:
suppressVersions- set totrueif implicit versioning should be suppressed- Since:
- 5.4
-
getAggregateHandler
Returns the defined aggregate handler ornull- Returns:
- the aggregate handler.
- Since:
- 5.5
-
setAggregateHandler
Sets the aggregate handler.- Parameters:
aggregateHandler- the aggregate handler- Since:
- 5.5
-
toString
-
setUpdateAlias
public void setUpdateAlias(boolean updateAlias) - Parameters:
updateAlias- the boolean value to set the updateAlias to- Since:
- 5.9
-
isUpdateAlias
public boolean isUpdateAlias()- Returns:
- the boolean value for the updateAlias
- Since:
- 5.9
-
setUseAtomicCalls
public void setUseAtomicCalls(boolean useAtomicCalls) Deprecated.no longer requiredAllows the system to split the provided paths into multiple independent batches, thus not replicating all provided paths in an atomic fashion. By default atomic calls are configured.- Parameters:
useAtomicCalls-falseif a large batch of paths should be replicated, but atomicity is not required.
-
isUseAtomicCalls
public boolean isUseAtomicCalls()Deprecated.no longer requiredAllows the system to split the provided paths into multiple independent batches, thus not replicating all provided paths in an atomic fashion- Returns:
falseif a large batch of paths should be replicated, but atomicity is not required.
-
addToAliasReplicated
Add path to already replicated alias set.- Parameters:
path- the path
-
isAliasReplicated
Returns true if path is already replicated else false.- Parameters:
path- the path- Returns:
trueif path is already replicated, elsefalse
-
isDisablePreProcessors
public boolean isDisablePreProcessors()If pre processors disabled or enabled- Returns:
- the boolean value for disablePreProcessors
-
setDisablePreProcessors
public void setDisablePreProcessors(boolean disablePreProcessors) - Parameters:
disablePreProcessors- boolean value for disabling pre-processors
-