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 = 'installer' |
const | DEFAULT_CHADO_VERSION = '1.3' |
![]() | |
const | TASK_NAME = 'chado' |
![]() | |
const | TASK_NAME = 'task' |
const | STATE_KEY_DATA_PREFIX = 'tripal_biodb_' |
Protected Attributes | |
$installNumChunks | |
![]() | |
$id | |
$connection | |
$logger | |
$locker | |
$state | |
$parameters = ['input_schemas' => [], 'output_schemas' => [], ] | |
$inputSchemas = [] | |
$outputSchemas = [] | |
Additional Inherited Members | |
![]() | |
prepareSchemas (array $schema_list) | |
getSchemaLockName (\Drupal\tripal\TripalDBX\TripalDbxConnection $db) | |
initId () | |
acquireTaskLocks () | |
releaseTaskLocks () | |
Chado installer.
Usage:
Drupal\tripal_chado\Task\ChadoInstaller::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\ChadoInstaller::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\ChadoInstaller::performTask | ( | ) |
Installs a given chado schema version into the specified schema.
The install procedure uses a set of SQL files.
Task parameter array provided to the class constructor includes:
Example:
Drupal |
Reimplemented from Drupal\tripal_biodb\Task\BioTaskBase.
Drupal\tripal_chado\Task\ChadoInstaller::validateParameters | ( | ) |
Validate task parameters.
Parameter array provided to the class constructor must include one output schema and it may include a version number:
Implements Drupal\tripal_biodb\Task\BioTaskInterface.
|
protected |
The number of chunk files per version we can install.
const Drupal\tripal_chado\Task\ChadoInstaller::DEFAULT_CHADO_VERSION = '1.3' |
Default version.
const Drupal\tripal_chado\Task\ChadoInstaller::TASK_NAME = 'installer' |
Name of the task.