public class ReplicationDefinitionImpl extends ActionImpl implements ReplicationDefinition
SchedulableAction.IntervalPeriod| Modifier and Type | Field and Description |
|---|---|
static String |
EXECUTOR_NAME |
static String |
REPLICATION_DEFINITION_ENABLED |
static String |
REPLICATION_DEFINITION_LOCAL_TRANSFER_REPORT |
static String |
REPLICATION_DEFINITION_NAME |
static String |
REPLICATION_DEFINITION_PAYLOAD |
static String |
REPLICATION_DEFINITION_REMOTE_TRANSFER_REPORT |
static String |
REPLICATION_DEFINITION_TARGET |
| Constructor and Description |
|---|
ReplicationDefinitionImpl(Action action) |
ReplicationDefinitionImpl(String id,
String replicationName) |
ReplicationDefinitionImpl(String id,
String replicationName,
String description) |
| Modifier and Type | Method and Description |
|---|---|
NodeRef |
getLocalTransferReport()
Returns the local side of the report on
the transfer.
|
List<NodeRef> |
getPayload()
The list of Nodes to be transfered.
|
NodeRef |
getRemoteTransferReport()
Returns the remote side of the report on
the transfer.
|
String |
getReplicationName() |
QName |
getReplicationQName() |
ScheduledPersistedAction |
getSchedule() |
Integer |
getScheduleIntervalCount()
How many
SchedulableAction.getScheduleIntervalPeriod() periods
should we wait between executions?
Will be null if the action isn't scheduled to
be repeated. |
SchedulableAction.IntervalPeriod |
getScheduleIntervalPeriod()
How long are
SchedulableAction.getScheduleIntervalCount() counts
measured in? |
Date |
getScheduleStart()
Get the first date that the action should be run
on or after, or null if it should start shortly
after each startup.
|
String |
getTargetName() |
boolean |
isEnabled()
Is this Replication Definition currently
enabled (can be run), or disabled
(can't be run)?
|
boolean |
isSchedulingEnabled()
Is scheduling currently enabled?
See
ReplicationService.enableScheduling(ReplicationDefinition) and
ReplicationService.disableScheduling(ReplicationDefinition) |
boolean |
isTargetExists()
Does the target exist?
|
void |
setEnabled(boolean enabled)
Enable or Disable the Replication
Definition.
|
void |
setLocalTransferReport(NodeRef report)
Records the location on the local repository
of the transfer service report on the
replication.
|
void |
setRemoteTransferReport(NodeRef report)
Records the location on the local repository
of the transfer service report that was
generated on the remote repository for the
replication.
|
protected void |
setReplicationQName(QName replicationName) |
void |
setSchedule(ScheduledPersistedAction schedule) |
void |
setScheduleIntervalCount(Integer count)
Sets how many periods should be waited between
each execution, or null if it shouldn't be
repeated.
|
void |
setScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)
Sets the interval period
|
void |
setScheduleStart(Date startDate)
Sets the first date that the action should be
run on or after.
|
void |
setTargetExists(boolean targetExists) |
void |
setTargetName(String targetName)
Sets the name of the target repository.
|
addActionCondition, addActionCondition, addParameterValues, getActionChain, getActionCondition, getActionConditions, getActionDefinitionName, getCompensatingAction, getCreatedDate, getCreator, getDescription, getExecuteAsychronously, getExecutionEndDate, getExecutionFailureMessage, getExecutionInstance, getExecutionStartDate, getExecutionStatus, getModifiedDate, getModifier, getNodeRef, getRunAsUser, getTenantId, getTitle, getTrackStatus, hasActionConditions, indexOfActionCondition, removeActionCondition, removeAllActionConditions, setActionChain, setActionCondition, setCompensatingAction, setCreatedDate, setCreator, setDescription, setExecuteAsynchronously, setExecutionEndDate, setExecutionFailureMessage, setExecutionInstance, setExecutionStartDate, setExecutionStatus, setModifiedDate, setModifier, setNodeRef, setRunAsUser, setTenantId, setTitle, setTrackStatus, toStringequals, getId, getParameterValue, getParameterValues, hashCode, setParameterValue, setParameterValuesclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddActionCondition, addActionCondition, addParameterValues, getActionCondition, getActionConditions, getActionDefinitionName, getCompensatingAction, getCreatedDate, getCreator, getDescription, getExecuteAsychronously, getExecutionEndDate, getExecutionFailureMessage, getExecutionStartDate, getExecutionStatus, getModifiedDate, getModifier, getNodeRef, getTitle, getTrackStatus, hasActionConditions, indexOfActionCondition, removeActionCondition, removeAllActionConditions, setActionCondition, setCompensatingAction, setDescription, setExecuteAsynchronously, setTitle, setTrackStatusgetId, getParameterValue, getParameterValues, setParameterValue, setParameterValuespublic static final String EXECUTOR_NAME
public static final String REPLICATION_DEFINITION_NAME
public static final String REPLICATION_DEFINITION_TARGET
public static final String REPLICATION_DEFINITION_PAYLOAD
public static final String REPLICATION_DEFINITION_ENABLED
public static final String REPLICATION_DEFINITION_LOCAL_TRANSFER_REPORT
public static final String REPLICATION_DEFINITION_REMOTE_TRANSFER_REPORT
public ReplicationDefinitionImpl(String id, String replicationName)
id - the action idreplicationName - a unique name for the replication action.public ReplicationDefinitionImpl(String id, String replicationName, String description)
id - the action idreplicationName - a unique name for the replication action.description - a description of the replicationpublic ReplicationDefinitionImpl(Action action)
public String getReplicationName()
getReplicationName in interface ReplicationDefinitionpublic QName getReplicationQName()
getReplicationQName in interface ReplicationDefinitionprotected void setReplicationQName(QName replicationName)
public boolean isEnabled()
ReplicationDefinitionisEnabled in interface ReplicationDefinitionpublic void setEnabled(boolean enabled)
ReplicationDefinitionsetEnabled in interface ReplicationDefinitionpublic List<NodeRef> getPayload()
ReplicationDefinitiongetPayload in interface ReplicationDefinitionpublic String getTargetName()
getTargetName in interface ReplicationDefinitionpublic void setTargetName(String targetName)
ReplicationDefinitionsetTargetName in interface ReplicationDefinitionpublic NodeRef getLocalTransferReport()
ReplicationDefinitiongetLocalTransferReport in interface ReplicationDefinitionpublic void setLocalTransferReport(NodeRef report)
ReplicationDefinitionsetLocalTransferReport in interface ReplicationDefinitionpublic NodeRef getRemoteTransferReport()
ReplicationDefinitiongetRemoteTransferReport in interface ReplicationDefinitionpublic void setRemoteTransferReport(NodeRef report)
ReplicationDefinitionsetRemoteTransferReport in interface ReplicationDefinitionpublic ScheduledPersistedAction getSchedule()
public void setSchedule(ScheduledPersistedAction schedule)
public Integer getScheduleIntervalCount()
SchedulableActionSchedulableAction.getScheduleIntervalPeriod() periods
should we wait between executions?
Will be null if the action isn't scheduled to
be repeated.getScheduleIntervalCount in interface SchedulableActionpublic SchedulableAction.IntervalPeriod getScheduleIntervalPeriod()
SchedulableActionSchedulableAction.getScheduleIntervalCount() counts
measured in?getScheduleIntervalPeriod in interface SchedulableActionpublic Date getScheduleStart()
SchedulableActiongetScheduleStart in interface SchedulableActionpublic void setScheduleIntervalCount(Integer count)
SchedulableActionsetScheduleIntervalCount in interface SchedulableActionpublic void setScheduleIntervalPeriod(SchedulableAction.IntervalPeriod period)
SchedulableActionsetScheduleIntervalPeriod in interface SchedulableActionpublic void setScheduleStart(Date startDate)
SchedulableActionsetScheduleStart in interface SchedulableActionpublic boolean isSchedulingEnabled()
ReplicationDefinitionReplicationService.enableScheduling(ReplicationDefinition) and
ReplicationService.disableScheduling(ReplicationDefinition)isSchedulingEnabled in interface ReplicationDefinitionpublic boolean isTargetExists()
ReplicationDefinitionisTargetExists in interface ReplicationDefinitionpublic void setTargetExists(boolean targetExists)
Copyright © 2005–2020 Alfresco Software. All rights reserved.