You are here

interface ReplicationTaskInterface in Replication 8.2

Same name and namespace in other branches
  1. 8 src/ReplicationTask/ReplicationTaskInterface.php \Drupal\replication\ReplicationTask\ReplicationTaskInterface

The replication settings between source and target.

This interface defines the optional settings to be used during a replication task between a source and a target workspace. These are based on CouchDB's replication specifications.

Hierarchy

Expanded class hierarchy of ReplicationTaskInterface

All classes that implement ReplicationTaskInterface

See also

http://docs.couchdb.org/en/latest/json-structure.html#replication-settings

File

src/ReplicationTask/ReplicationTaskInterface.php, line 14

Namespace

Drupal\replication\ReplicationTask
View source
interface ReplicationTaskInterface {

  /**
   * Set the ID of the filter plugin to use during replication.
   *
   * @param string $filter
   *   The plugin ID of a ReplicationFilterInterface.
   *
   * @return ReplicationTaskInterface
   *   Returns $this.
   */
  public function setFilter($filter = NULL);

  /**
   * Get the ID of the filter plugin to use during replication.
   *
   * @return string
   *   The plugin ID of a ReplicationFilterInterface.
   */
  public function getFilter();

  /**
   * Set the parameters for the filter plugin.
   *
   * @param array|NULL $parameters
   *   An associative array of name-value parameters.
   *
   * @return ReplicationTaskInterface
   *   Returns $this.
   */
  public function setParameters(array $parameters = NULL);

  /**
   * Set a parameter for the filter plugin.
   *
   * If no parameter bag yet exists, an empty parameter bag will be created.
   *
   * @param string $name
   *   The parameter name to set.
   * @param string $value
   *   The value for the parameter.
   *
   * @return ReplicationTaskInterface
   *   Returns $this.
   */
  public function setParameter($name, $value);

  /**
   * Set the limit of returned number of items.
   *
   * @param int $limit
   *   The limit of returned items.
   *
   * @return \Drupal\replication\Changes\ChangesInterface
   *   Returns $this.
   */
  public function setLimit($limit);

  /**
   * Set the limit of docs for BulkDocs per POST request.
   *
   * @param int $bulkDocsLimit
   *   The limit of the items to send per request.
   *
   * @return \Drupal\replication\Changes\ChangesInterface
   *   Returns $this.
   */
  public function setBulkDocsLimit($bulkDocsLimit);

  /**
   * Get the parameters for the filter plugin.
   *
   * @return array
   *   The parameters passed to the filter plugin.
   */
  public function getParameters();

  /**
   * Set the update sequence to start with.
   *
   * @param int $sinceSeq
   */
  public function setSinceSeq($sinceSeq);

  /**
   * @param mixed $style
   */
  public function setStyle($style);

  /**
   * Converts the parameter bag to an associative array and returns the array.
   *
   * @return string[string]
   *   An associative array of parameters passed to the filter fn.
   */
  public function getParametersAsArray();

  /**
   * Get a parameter's value.
   *
   * @param string $name
   *   The parameter name.
   *
   * @return mixed
   *   The parameter value.
   *
   * @throws \Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException
   *   If the parameter is not defined.
   */
  public function getParameter($name);

  /**
   * Returns the limit.
   *
   * @return int
   */
  public function getLimit();

  /**
   * Returns the BulkDocs limit.
   *
   * @return int
   */
  public function getBulkDocsLimit();

  /**
   * @return int
   */
  public function getSinceSeq();

  /**
   * @return mixed
   */
  public function getStyle();

  /**
   * @return array
   */
  public function getDocIds();

  /**
   * @param array $docIds
   */
  public function setDocIds($docIds);

  /**
   * @return int
   */
  public function getHeartbeat();

  /**
   * @param int $heartbeat
   */
  public function setHeartbeat($heartbeat);

  /**
   * @return boolean
   */
  public function getCreateTarget();

  /**
   * @param boolean $createTarget
   */
  public function setCreateTarget($createTarget);

  /**
   * @return bool
   */
  public function getContinuous();

  /**
   * @param bool $continuous
   */
  public function setContinuous($continuous);

}

Members

Namesort descending Modifiers Type Description Overrides
ReplicationTaskInterface::getBulkDocsLimit public function Returns the BulkDocs limit. 1
ReplicationTaskInterface::getContinuous public function 1
ReplicationTaskInterface::getCreateTarget public function 1
ReplicationTaskInterface::getDocIds public function 1
ReplicationTaskInterface::getFilter public function Get the ID of the filter plugin to use during replication. 1
ReplicationTaskInterface::getHeartbeat public function 1
ReplicationTaskInterface::getLimit public function Returns the limit. 1
ReplicationTaskInterface::getParameter public function Get a parameter's value. 1
ReplicationTaskInterface::getParameters public function Get the parameters for the filter plugin. 1
ReplicationTaskInterface::getParametersAsArray public function Converts the parameter bag to an associative array and returns the array. 1
ReplicationTaskInterface::getSinceSeq public function 1
ReplicationTaskInterface::getStyle public function 1
ReplicationTaskInterface::setBulkDocsLimit public function Set the limit of docs for BulkDocs per POST request. 1
ReplicationTaskInterface::setContinuous public function 1
ReplicationTaskInterface::setCreateTarget public function 1
ReplicationTaskInterface::setDocIds public function 1
ReplicationTaskInterface::setFilter public function Set the ID of the filter plugin to use during replication. 1
ReplicationTaskInterface::setHeartbeat public function 1
ReplicationTaskInterface::setLimit public function Set the limit of returned number of items. 1
ReplicationTaskInterface::setParameter public function Set a parameter for the filter plugin. 1
ReplicationTaskInterface::setParameters public function Set the parameters for the filter plugin. 1
ReplicationTaskInterface::setSinceSeq public function Set the update sequence to start with. 1
ReplicationTaskInterface::setStyle public function 1