necromant2005/gearman-stats
最新稳定版本:1.4.0
Composer 安装命令:
composer require necromant2005/gearman-stats
包简介
Geaman connector for getting status and statistic data
关键字:
README 文档
README
Version 1.0.0 Created by Rostislav Mykhajliw
Introduction
TweeGearmanStat is a simple adapter for monitrong your Gearman queue for php
Features / Goals
- Having a simple class for monitong Queue on webside
- Use a standard command "status" and provide result as array
- Work with multiple gearman servers
Installation
Main Setup
With composer
- Add this to your composer.json:
"require": { "necromant2005/gearman-stats": "@dev", }
- Now tell composer to download TweeGearmanStat by running the command:
$ php composer.phar update
Usage
$adapter = new \TweeGearmanStat\Queue\Gearman(array( 'h1' => array('host' => '10.0.0.1', 'port' => 4730, 'timeout' => 1), 'h2' => array('host' => '10.0.0.2', 'port' => 4730, 'timeout' => 1), )); $status = $adapter->status(); var_dump($status);
With default timeout 5 sec
$adapter = new \TweeGearmanStat\Queue\Gearman(array( 'h1' => array('host' => '10.0.0.1', 'port' => 4730), 'h2' => array('host' => '10.0.0.2', 'port' => 4730), )); $status = $adapter->status(); var_dump($status);
统计信息
- 总下载量: 243.74k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 13
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-11-29