summaryrefslogtreecommitdiffstats
path: root/application/controllers/GearmanController.php
diff options
context:
space:
mode:
authorSebastian Wagner2011-08-22 16:06:53 +0200
committerSebastian Wagner2011-08-22 16:06:53 +0200
commit3993e289cc49ea88bf42402b7559258549b231a2 (patch)
treecea64a63ccff49d8156168c6b8471234c5480361 /application/controllers/GearmanController.php
parentsome calendar changes (diff)
parentupdatePeriod nun in Application.ini (diff)
downloadpoolctrl-3993e289cc49ea88bf42402b7559258549b231a2.tar.gz
poolctrl-3993e289cc49ea88bf42402b7559258549b231a2.tar.xz
poolctrl-3993e289cc49ea88bf42402b7559258549b231a2.zip
Merge branch 'master' of git.openslx.org:lsfks/projekte/poolctrl
Conflicts: application/controllers/EventController.php
Diffstat (limited to 'application/controllers/GearmanController.php')
-rw-r--r--application/controllers/GearmanController.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/application/controllers/GearmanController.php b/application/controllers/GearmanController.php
index 8c33dcc..8e0252f 100644
--- a/application/controllers/GearmanController.php
+++ b/application/controllers/GearmanController.php
@@ -42,7 +42,7 @@ class GearmanController extends Zend_Controller_Action
public function somepingAction()
{
- $ipArray = array(
+ $data = array(
0 => '132.230.4.1',
1 => '132.230.4.2',
2 => '132.230.4.3',
@@ -75,9 +75,9 @@ class GearmanController extends Zend_Controller_Action
29 => '132.230.4.30',
);
- $ipString = json_encode($ipArray);
+ $dataString = json_encode($data);
- $result = $this->gearmanClient->do("somePing", $ipString, 'somePing');
+ $result = $this->gearmanClient->do("somePing", $dataString, 'somePing');
if (! $this->gearmanClient->runTasks())
{
echo "ERROR " . $gmc->error() . "\n";
@@ -100,7 +100,7 @@ class GearmanController extends Zend_Controller_Action
public function bootAction() {
$eventName = 'bootTest';
$eventOS = 'testOS';
- $clients = array(
+ $data = array(
'eventName' => $eventName,
'eventOS' => $eventOS,
'updateRate' => $this->gearmanWorkerUpdateRate,
@@ -112,8 +112,8 @@ class GearmanController extends Zend_Controller_Action
),
);
- $ipString = json_encode($clients);
- $result = $this->gearmanClient->do("boot", $ipString, 'boot' . $eventName);
+ $dataString = json_encode($data);
+ $result = $this->gearmanClient->do("boot", $dataString, 'boot' . $eventName);
if (! $this->gearmanClient->runTasks())
{
echo "ERROR " . $gmc->error() . "\n";
@@ -124,7 +124,7 @@ class GearmanController extends Zend_Controller_Action
public function shutdownAction() {
$eventName = 'shutdownTest';
- $clients = array(
+ $data = array(
'eventName' => $eventName,
'updateRate' => $this->gearmanWorkerUpdateRate,
'waitTime' => $this->gearmanWorkerWaitTime,
@@ -135,8 +135,8 @@ class GearmanController extends Zend_Controller_Action
),
);
- $ipString = json_encode($clients);
- $result = $this->gearmanClient->do("shutdown", $ipString, 'shutdown' . $eventName);
+ $dataString = json_encode($data);
+ $result = $this->gearmanClient->do("shutdown", $dataString, 'shutdown' . $eventName);
if (! $this->gearmanClient->runTasks())
{
echo "ERROR " . $gmc->error() . "\n";
@@ -147,7 +147,7 @@ class GearmanController extends Zend_Controller_Action
public function maintenanceAction() {
$eventName = 'maintenance_pool-113'; //maintenance of pool-113
- $clients = array(
+ $data = array(
'eventName' => $eventName,
'updateRate' => $this->gearmanWorkerUpdateRate,
'waitTime' => $this->gearmanWorkerWaitTime,
@@ -172,8 +172,8 @@ class GearmanController extends Zend_Controller_Action
),
);
- $ipString = json_encode($clients);
- $result = $this->gearmanClient->do("shutdown", $ipString, 'shutdown' . $eventName);
+ $dataString = json_encode($data);
+ $result = $this->gearmanClient->do("shutdown", $dataString, 'shutdown' . $eventName);
if (! $this->gearmanClient->runTasks())
{
echo "ERROR " . $gmc->error() . "\n";