public function execute() { if ($this->argumentValue('no-report')) { $this->_displayReport = false; } if ($this->argumentIsSet('build-ranges')) { RangeManager::buildRanges($this->argumentValue('build-ranges')); } else { if ($this->argumentIsSet('reset-ranges')) { RangeManager::resetAllRanges(); } else { if ($this->argumentIsSet('reset-range')) { RangeManager::resetRange($this->argumentValue('reset-range')); } else { if ($this->argumentIsSet('reset-failed')) { RangeManager::resetFailedRanges(); } else { if ($this->argumentIsSet('reset-processing')) { RangeManager::resetProcessingRanges(); } else { if ($this->argumentIsSet('list-failed')) { RangeManager::listFailedRanges($this->argumentValue('list-failed')); } else { if ($this->argumentIsSet('list-requeued')) { RangeManager::listRequeuedRanges($this->argumentValue('list-requeued')); } else { $this->_pidFile = new PidFile("", $this->_instanceName); $this->_initProcessingRun(); $this->_getRangeProcessor()->setBatchSize($this->argumentValue('batch-size')); $this->_getRangeProcessor()->processAllRanges(); } } } } } } } }