Tripal
|
Public Member Functions | |
validateParameters () | |
performTask () | |
getProgress () | |
getStatus () | |
![]() | |
getTripalDbxClass ($class) | |
![]() | |
__construct (?\Drupal\Core\Database\Connection $database=NULL, ?\Psr\Log\LoggerInterface $logger=NULL, ?\Drupal\tripal_biodb\Lock\SharedLockBackendInterface $locker=NULL, ?\Drupal\Core\State\StateInterface $state=NULL) | |
setParameters (array $parameters=[]) | |
getId () | |
getLogger () | |
Public Attributes | |
const | TASK_NAME = 'cloner' |
![]() | |
const | TASK_NAME = 'chado' |
![]() | |
const | TASK_NAME = 'task' |
const | STATE_KEY_DATA_PREFIX = 'tripal_biodb_' |
Additional Inherited Members | |
![]() | |
prepareSchemas (array $schema_list) | |
getSchemaLockName (\Drupal\tripal\TripalDBX\TripalDbxConnection $db) | |
initId () | |
acquireTaskLocks () | |
releaseTaskLocks () | |
![]() | |
$id | |
$connection | |
$logger | |
$locker | |
$state | |
$parameters = ['input_schemas' => [], 'output_schemas' => [], ] | |
$inputSchemas = [] | |
$outputSchemas = [] | |
Chado cloner.
Usage:
Drupal\tripal_chado\Task\ChadoCloner::getProgress | ( | ) |
{Returns the percent of progress of current task.This method can also be used to check if a task is currently running if it has a > 0 value. A negative value means an error occured while running.
Implements Drupal\tripal_biodb\Task\BioTaskInterface.
Drupal\tripal_chado\Task\ChadoCloner::getStatus | ( | ) |
{{Returns a string describing current status of the performed task.This function returns the last known status, even if the task ended. In case of failure, this function may return the reason of the failure.
Reimplemented from Drupal\tripal_biodb\Task\BioTaskBase.
Drupal\tripal_chado\Task\ChadoCloner::performTask | ( | ) |
Clone a given chado schema into the specified schema.
The cloning procedure uses a custom PostgreSQL function (tripal_clone_schema() installed with Tripal Chado) to clone schema rather than using a schema dump, modifying it to change schema name (with possible side effects) and reloading that dump. It is faster and avoids using temporary files (risks of content disclosure).
Task parameter array provided to the class constructor includes:
Example:
Drupal |
Reimplemented from Drupal\tripal_biodb\Task\BioTaskBase.
Drupal\tripal_chado\Task\ChadoCloner::validateParameters | ( | ) |
Validate task parameters.
Parameter array provided to the class constructor must include one input schema and one output schema as shown:
Implements Drupal\tripal_biodb\Task\BioTaskInterface.
const Drupal\tripal_chado\Task\ChadoCloner::TASK_NAME = 'cloner' |
Name of the task.