class TotalFailedStatistic in Purge 8.3
Total number of failed queue items.
Hierarchy
- class \Drupal\purge\Counter\Counter implements CounterInterface
- class \Drupal\purge\Plugin\Purge\Queue\TotalFailedStatistic implements ExplainedCounterInterface uses StringTranslationTrait
Expanded class hierarchy of TotalFailedStatistic
File
- src/
Plugin/ Purge/ Queue/ TotalFailedStatistic.php, line 12
Namespace
Drupal\purge\Plugin\Purge\QueueView source
class TotalFailedStatistic extends Counter implements ExplainedCounterInterface {
use StringTranslationTrait;
/**
* {@inheritdoc}
*/
public function __construct($value = 0.0) {
parent::__construct($value);
$this
->disableDecrement();
}
/**
* {@inheritdoc}
*/
public function getId() {
return 'total_failed';
}
/**
* {@inheritdoc}
*/
public function getTitle() {
return $this
->t('Total number of failed queue items.');
}
/**
* {@inheritdoc}
*/
public function getDescription() {
return $this
->t('Whenever a purger returns a queue item as failed, we track these failures in this statistic. However, failing items fail for various reasons and are usually expected to still succeed in the future. The total number of failures happening over time, should be seen as indicator whether a few incidents took place versus sky-rocketing failure rates because of some structural problem.');
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Counter:: |
protected | property | The callback that is called on writes when not NULL. | |
Counter:: |
protected | property | Whether it is possible to call ::decrement() or not. | |
Counter:: |
protected | property | Whether it is possible to call ::increment() or not. | |
Counter:: |
protected | property | Whether it is possible to call ::set() or not. | |
Counter:: |
protected | property | The value of the counter. | |
Counter:: |
public | function |
Decrease the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Disable the possibility to decrement the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Disable the possibility to increment the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Disable the possibility of setting counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Get the current value. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Get the current value as integer. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Increase the counter. Overrides CounterInterface:: |
|
Counter:: |
public | function |
Overwrite the counter value. Overrides CounterInterface:: |
|
Counter:: |
protected | function | Overwrite the counter value (permission bypass). | |
Counter:: |
public | function |
Set the callback that gets called when writes occur. Overrides CounterInterface:: |
|
StringTranslationTrait:: |
protected | property | The string translation service. | 1 |
StringTranslationTrait:: |
protected | function | Formats a string containing a count of items. | |
StringTranslationTrait:: |
protected | function | Returns the number of plurals supported by a given language. | |
StringTranslationTrait:: |
protected | function | Gets the string translation service. | |
StringTranslationTrait:: |
public | function | Sets the string translation service to use. | 2 |
StringTranslationTrait:: |
protected | function | Translates a string to the current language or to a given language. | |
TotalFailedStatistic:: |
public | function |
Gets the description of the counter. Overrides ExplainedCounterInterface:: |
|
TotalFailedStatistic:: |
public | function |
Gets a short machine readable ID. Overrides ExplainedCounterInterface:: |
|
TotalFailedStatistic:: |
public | function |
Gets the title of the counter. Overrides ExplainedCounterInterface:: |
|
TotalFailedStatistic:: |
public | function |
Construct a counter object. Overrides Counter:: |