summaryrefslogtreecommitdiffstats
path: root/application/controllers/GearmanController.php
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-12 14:05:59 +0200
committerBjörn Geiger2011-09-12 14:05:59 +0200
commit6550267106ac24a57df2b32e2d1bb50edfa68ec8 (patch)
tree4b24da66fa96df17ca79286c07159bac0f9ebd7c /application/controllers/GearmanController.php
parentminor (diff)
downloadpoolctrl-6550267106ac24a57df2b32e2d1bb50edfa68ec8.tar.gz
poolctrl-6550267106ac24a57df2b32e2d1bb50edfa68ec8.tar.xz
poolctrl-6550267106ac24a57df2b32e2d1bb50edfa68ec8.zip
verschiedene Korrekturen
Diffstat (limited to 'application/controllers/GearmanController.php')
-rwxr-xr-xapplication/controllers/GearmanController.php24
1 files changed, 0 insertions, 24 deletions
diff --git a/application/controllers/GearmanController.php b/application/controllers/GearmanController.php
index b4b8f6c..5882add 100755
--- a/application/controllers/GearmanController.php
+++ b/application/controllers/GearmanController.php
@@ -8,9 +8,6 @@ class GearmanController extends Zend_Controller_Action
protected $acl;
protected $gearmanClient;
protected $gearmanServerHost;
- protected $gearmanServerPort;
- protected $gearmanWorkerUpdateRate;
- protected $gearmanWorkerWaitTime;
public function init()
{
@@ -26,10 +23,7 @@ class GearmanController extends Zend_Controller_Action
header('HTTP/1.0 403 No Right to run events');
die();
}
- $this->gearmanServerPort = $this->config['gearman']['server']['port'];
$this->gearmanServerHost = $this->config['gearman']['server']['host'];
- $this->gearmanWorkerWaitTime = $this->config['gearman']['worker']['waitTime'];
- $this->gearmanWorkerUpdateRate = $this->config['gearman']['worker']['updateRate'];
$this->gearmanClient = new GearmanClient();
$this->gearmanClient->addServer($this->gearmanServerHost);
} else {
@@ -106,12 +100,6 @@ class GearmanController extends Zend_Controller_Action
$data = array(
'eventName' => $eventName,
'eventOS' => $eventOS,
- 'updateRate' => $this->gearmanWorkerUpdateRate,
- 'waitTime' => $this->gearmanWorkerWaitTime,
- 'gearmanServerHost' => $this->gearmanServerHost,
- 'gearmanServerPort' => $this->gearmanServerPort,
- 'blacklist' => $this->config['gearman']['worker']['ps']['blacklist'],
- 'whitelist' => $this->config['gearman']['worker']['ps']['whitelist'],
'clients' => array(
0 => array('id' => '1', 'ip' =>'132.230.4.24', 'mac' =>'00:13:72:C7:FD:A1'),
),
@@ -131,12 +119,6 @@ class GearmanController extends Zend_Controller_Action
$eventName = 'shutdownTest';
$data = array(
'eventName' => $eventName,
- 'updateRate' => $this->gearmanWorkerUpdateRate,
- 'waitTime' => $this->gearmanWorkerWaitTime,
- 'gearmanServerHost' => $this->gearmanServerHost,
- 'gearmanServerPort' => $this->gearmanServerPort,
- 'blacklist' => $this->config['gearman']['worker']['ps']['blacklist'],
- 'whitelist' => $this->config['gearman']['worker']['ps']['whitelist'],
'clients' => array(
0 => array('id' => '1', 'ip' =>'132.230.4.24', 'mac' =>'00:13:72:C7:FD:A1'),
),
@@ -156,12 +138,6 @@ class GearmanController extends Zend_Controller_Action
$eventName = 'maintenance_pool-113'; //maintenance of pool-113
$data = array(
'eventName' => $eventName,
- 'updateRate' => $this->gearmanWorkerUpdateRate,
- 'waitTime' => $this->gearmanWorkerWaitTime,
- 'gearmanServerHost' => $this->gearmanServerHost,
- 'gearmanServerPort' => $this->gearmanServerPort,
- 'blacklist' => $this->config['gearman']['worker']['ps']['blacklist'],
- 'whitelist' => $this->config['gearman']['worker']['ps']['whitelist'],
'clients' => array(
0 => array('id' => '1', 'ip' =>'132.230.4.121', 'mac' =>'00:1e:0b:a6:f8:19'),
0 => array('id' => '2', 'ip' =>'132.230.4.122', 'mac' =>'00:1e:0b:a6:d5:de'),