| ユーザフォーラムで議論/質問 | マニュアル検索 | ハイライト | ハイライトオフ | ポータル | php spot |
GearmanWorker::setId(バージョン情報なし。おそらく SVN 版にしか存在しないでしょう) GearmanWorker::setId — Give the worker an identifier so it can be tracked when asking gearmand for the list of available workers. 説明
public bool GearmanWorker::setId
( string
$id
)Assigns the worker an identifier. パラメータ
返り値
成功した場合に 例例1 GearmanWorker::setId() example Set an identifier for a simple worker.
<?php 上の例の出力は、 たとえば以下のようになります。 Run the following command: gearadmin --workers Output: 30 ::3a3a:3361:3361:3a33%976303667 - : test |