Package com.day.cq.replication
Class ReplicationOptions
- java.lang.Object
-
- com.day.cq.replication.ReplicationOptions
-
public class ReplicationOptions extends java.lang.ObjectTheReplicationOptionsencapsulate optional configuration parameters for a replication.
-
-
Constructor Summary
Constructors Constructor Description ReplicationOptions()Create a new options object with default values
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddToAliasReplicated(java.lang.String path)Add path to already replicated alias set.AggregateHandlergetAggregateHandler()Returns the defined aggregate handler ornullAgentFiltergetFilter()Returns the filter for selecting the agents.ReplicationListenergetListener()Returns the replication listener.java.lang.StringgetRevision()Returns the revision to replicatebooleanisAliasReplicated(java.lang.String path)Returns true if path is already replicated else false.booleanisDisablePreProcessors()If pre processors disabled or enabledbooleanisSuppressStatusUpdate()Iftrue, the replication will not update the replication status properties after a replication.booleanisSuppressVersions()Iftruethe replication will not trigger implicit versioning.booleanisSynchronous()Should the replication be done synchronous or asynchronous? The default is asynchronously.booleanisUpdateAlias()booleanisUseAtomicCalls()Deprecated.no longer requiredvoidsetAggregateHandler(AggregateHandler aggregateHandler)Sets the aggregate handler.voidsetDesiredAgentIDs(java.lang.String... desiredAgentId)Deprecated.usesetFilter(AgentFilter)instead.voidsetDisablePreProcessors(boolean disablePreProcessors)voidsetFilter(AgentFilter filter)Sets the filter for selecting the agents for the replication.voidsetListener(ReplicationListener listener)Sets the replication listener.voidsetRevision(java.lang.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 requiredjava.lang.StringtoString()
-
-
-
Method Detail
-
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
-
setDesiredAgentIDs
@Deprecated public void setDesiredAgentIDs(java.lang.String... desiredAgentId)
Deprecated.usesetFilter(AgentFilter)instead.Set the desired agent ids. Please note, that this method internally sets a newAgentIdFilter.- Parameters:
desiredAgentId- agent ids
-
setFilter
public void setFilter(AgentFilter filter)
Sets the filter for selecting the agents for the replication.- Parameters:
filter- agent filter
-
getFilter
public AgentFilter getFilter()
Returns the filter for selecting the agents.- Returns:
- the filter
-
getRevision
public java.lang.String getRevision()
Returns the revision to replicate- Returns:
- the revision
-
setRevision
public void setRevision(java.lang.String revision)
Sets the revision to replicate.- Parameters:
revision- the revision name.
-
getListener
public ReplicationListener getListener()
Returns the replication listener.- Returns:
- the listener or
null
-
setListener
public void setListener(ReplicationListener listener)
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
public AggregateHandler getAggregateHandler()
Returns the defined aggregate handler ornull- Returns:
- the aggregate handler.
- Since:
- 5.5
-
setAggregateHandler
public void setAggregateHandler(AggregateHandler aggregateHandler)
Sets the aggregate handler.- Parameters:
aggregateHandler- the aggregate handler- Since:
- 5.5
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
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
public void addToAliasReplicated(java.lang.String path)
Add path to already replicated alias set.- Parameters:
path- the path
-
isAliasReplicated
public boolean isAliasReplicated(java.lang.String path)
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
-
-