예제 #1
0
 function _populateDefaults()
 {
     parent::_populateDefaults();
     $this->_configDefaults['AWSAccessKeyID'] = array('value' => 'STRING', 'description' => "AWS Access Key ID", 'default' => '');
     $this->_configDefaults['AWSSecretAccessKey'] = array('value' => 'STRING', 'description' => "AWS Secrect Access Key", 'default' => '');
     $this->_configDefaults['DaemonPeekSeconds'] = array('value' => 'NUMBER', 'description' => "Seconds to wait between calls to SQS Queue.", 'default' => 10);
     $this->_configDefaults['SQSQueueURLReceive'] = array('value' => 'URL', 'description' => "SQS Queue to check.", 'default' => '');
     $this->_configDefaults['SQSVisibilitySeconds'] = array('value' => 'NUMBER', 'description' => "Seconds before SQS should reactivate Queue message.", 'default' => 600);
 }
예제 #2
0
 function _validateJob($job_xml)
 {
     $type = MovieMasher_Daemon::jobType($job_xml);
     $coder = $this->_coder($type);
     $coder->resetOptions();
     $kids = $job_xml->children();
     $z = sizeof($kids);
     for ($i = 0; $i < $z; $i++) {
         $coder->setOption($kids[$i]->getName(), (string) $kids[$i]);
     }
     $coder->validateOptions();
 }
예제 #3
0
 function _populateDefaults()
 {
     parent::_populateDefaults();
     $this->_configDefaults['DirJobsQueued'] = array('value' => 'DIR', 'description' => "Location to look for new jobs in.", 'default' => '');
 }
예제 #4
0
 function _populateDefaults()
 {
     parent::_populateDefaults();
     $this->_configDefaults['AuthKey'] = array('value' => 'PATH', 'description' => "Public key for authentication of requests.", 'default' => '', 'emptyok' => 1);
     $this->_configDefaults['AuthKeyFormat'] = array('value' => 'STRING', 'description' => "Format of public key (x509 or ssh-rsa).", 'default' => 'x509', 'emptyok' => 1);
 }