summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorBjörn Geiger2011-08-22 14:26:49 +0200
committerBjörn Geiger2011-08-22 14:26:49 +0200
commit8192b0e593fbad2cc7e0037955811a0cf2b56f8a (patch)
treef647ebebaaae1ae2b96a23a3f9be8f47ee92dc9c /application
parentEventReport (diff)
downloadpoolctrl-8192b0e593fbad2cc7e0037955811a0cf2b56f8a.tar.gz
poolctrl-8192b0e593fbad2cc7e0037955811a0cf2b56f8a.tar.xz
poolctrl-8192b0e593fbad2cc7e0037955811a0cf2b56f8a.zip
GearmanController minor
Diffstat (limited to 'application')
-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 a0de744..2ac1abd 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";