Class ReplicationActionExecutor

All Implemented Interfaces:
ActionExecuter, LoggingAwareExecuter, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

public class ReplicationActionExecutor extends ActionExecuterAbstractBase
Since:
3.4
Author:
Nick Burch
  • Constructor Details

    • ReplicationActionExecutor

      public ReplicationActionExecutor()
  • Method Details

    • setNodeService

      public void setNodeService(NodeService nodeService)
      Injects the NodeService bean.
      Parameters:
      nodeService - the NodeService.
    • setJobLockService

      public void setJobLockService(JobLockService jobLockService)
      Injects the JobLockService bean.
      Parameters:
      jobLockService - the JobLockService.
    • setTransferService

      public void setTransferService(TransferService2 transferService)
      Injects the TransferService bean.
      Parameters:
      transferService - the TransferService.
    • setNodeCrawlerFactory

      public void setNodeCrawlerFactory(NodeCrawlerFactory nodeCrawlerFactory)
      Injects the NodeCrawlerFactory bean.
      Parameters:
      nodeCrawlerFactory - the NodeCrawlerFactory.
    • setActionTrackingService

      public void setActionTrackingService(ActionTrackingService actionTrackingService)
      Injects the ActionTrackingService bean.
      Parameters:
      actionTrackingService - the ActionTrackingService.
    • setTransactionService

      public void setTransactionService(TransactionService transactionService)
      Injects the TransactionService bean.
      Parameters:
      transactionService - the TransactionService.
    • setReplicationDefinitionPersister

      public void setReplicationDefinitionPersister(ReplicationDefinitionPersisterImpl replicationDefinitionPersister)
      Injects the ReplicationDefinitionPersister bean.
      Parameters:
      replicationDefinitionPersister - ReplicationDefinitionPersisterImpl
    • setReplicationParams

      public void setReplicationParams(ReplicationParams replicationParams)
      Sets Replication Parameters
      Parameters:
      replicationParams - replication parameters
    • setExcludedAspects

      public void setExcludedAspects(String[] excludedAspects)
    • addParameterDefinitions

      protected void addParameterDefinitions(List<ParameterDefinition> paramList)
      Description copied from class: ParameterizedItemAbstractBase
      Adds the parameter definitions to the list
      Specified by:
      addParameterDefinitions in class ParameterizedItemAbstractBase
      Parameters:
      paramList - the parameter definitions list
    • expandPayload

      protected Set<NodeRef> expandPayload(ReplicationDefinition replicationDef)
      Takes a ReplicationDefinition, which contains one or more payloads NodeRefs, and expands them into a full list of nodes to be transfered.
    • buildTransferDefinition

      protected TransferDefinition buildTransferDefinition(ReplicationDefinition replicationDef, Set<NodeRef> toTransfer)
      Takes a ReplicationDefinition and a list of NodeRefs, and returns the TransferDefinition which will allow the replication to be run.
    • executeImpl

      protected void executeImpl(Action action, NodeRef actionedUponNodeRef)
      Description copied from class: ActionExecuterAbstractBase
      Execute the action implementation
      Specified by:
      executeImpl in class ActionExecuterAbstractBase
      Parameters:
      action - the action
      actionedUponNodeRef - the actioned upon node
    • onLogException

      public boolean onLogException(org.apache.commons.logging.Log logger, Throwable t, String message)
      Description copied from interface: LoggingAwareExecuter
      Optional logging of errors callback for the action executer for the cases when the error might be ignored or shown in a different manner for the action
      Specified by:
      onLogException in interface LoggingAwareExecuter
      Overrides:
      onLogException in class ActionExecuterAbstractBase
      Parameters:
      logger - the logger
      t - the exception thrown
      message - the proposed message that will be logged
      Returns:
      true if it was handled, false for default handling