public class ReplicationOptions
extends java.lang.Object
ReplicationOptions
encapsulate optional
configuration parameters for a replication.Constructor and Description |
---|
ReplicationOptions()
Create a new options object with default values
|
Modifier and Type | Method and Description |
---|---|
void |
addToAliasReplicated(java.lang.String path)
Add path to already replicated alias set.
|
AggregateHandler |
getAggregateHandler()
Returns the defined aggregate handler or
null |
AgentFilter |
getFilter()
Returns the filter for selecting the agents.
|
ReplicationListener |
getListener()
Returns the replication listener.
|
java.lang.String |
getRevision()
Returns the revision to replicate
|
boolean |
isAliasReplicated(java.lang.String path)
Returns true if path is already replicated else false.
|
boolean |
isSuppressStatusUpdate()
If
true , the replication will not update the replication
status properties after a replication. |
boolean |
isSuppressVersions()
If
true the replication will not trigger implicit versioning. |
boolean |
isSynchronous()
Should the replication be done synchronous or asynchronous?
The default is asynchronously.
|
boolean |
isUpdateAlias() |
void |
setAggregateHandler(AggregateHandler aggregateHandler)
Sets the aggregate handler.
|
void |
setDesiredAgentIDs(java.lang.String... desiredAgentId)
Deprecated.
use
setFilter(AgentFilter) instead. |
void |
setFilter(AgentFilter filter)
Sets the filter for selecting the agents for the replication.
|
void |
setListener(ReplicationListener listener)
Sets the replication listener.
|
void |
setRevision(java.lang.String revision)
Sets the revision to replicate.
|
void |
setSuppressStatusUpdate(boolean suppressStatusUpdate)
If set to
true the replication will not update the
replication status properties after a replication. |
void |
setSuppressVersions(boolean suppressVersions)
If set to
true the replication will not trigger implicit
versioning. |
void |
setSynchronous(boolean synchronous)
Set the synchronous flag.
|
void |
setUpdateAlias(boolean updateAlias) |
java.lang.String |
toString() |
public ReplicationOptions()
public boolean isSynchronous()
true
for synchronous replicationpublic void setSynchronous(boolean synchronous)
synchronous
- true
for synchronous replicationpublic void setDesiredAgentIDs(java.lang.String... desiredAgentId)
setFilter(AgentFilter)
instead.AgentIdFilter
.desiredAgentId
- agent idspublic void setFilter(AgentFilter filter)
filter
- agent filterpublic AgentFilter getFilter()
public java.lang.String getRevision()
public void setRevision(java.lang.String revision)
revision
- the revision name.public ReplicationListener getListener()
null
public void setListener(ReplicationListener listener)
listener
- the replication listener.public boolean isSuppressStatusUpdate()
true
, the replication will not update the replication
status properties after a replication.true
if status updates should be suppressed.public void setSuppressStatusUpdate(boolean suppressStatusUpdate)
true
the replication will not update the
replication status properties after a replication.suppressStatusUpdate
- true
if status updates should be suppressedpublic boolean isSuppressVersions()
true
the replication will not trigger implicit versioning.true
if implicit versioning should be suppressedpublic void setSuppressVersions(boolean suppressVersions)
true
the replication will not trigger implicit
versioning.suppressVersions
- set to true
if implicit versioning should be suppressedpublic AggregateHandler getAggregateHandler()
null
public void setAggregateHandler(AggregateHandler aggregateHandler)
aggregateHandler
- the aggregate handlerpublic java.lang.String toString()
toString
in class java.lang.Object
public void setUpdateAlias(boolean updateAlias)
updateAlias
- the boolean value to set the updateAlias topublic boolean isUpdateAlias()
public void addToAliasReplicated(java.lang.String path)
path
- the pathpublic boolean isAliasReplicated(java.lang.String path)
path
- the pathtrue
if path is already replicated, else false
Copyright © 2010 - 2020 Adobe. All Rights Reserved