class CanDo extends Request

Information vom Worker an den Server, das die übergebene Funktion ab jetzt zur Verarbeitung bereit steht.

This is sent to notify the server that the worker is able to perform the given function. The worker is then put on a list to be woken up whenever the job server receives a job for that function.

Constants

UNUSED

Nicht genutzer Typ

CAN_DO

Registrierung einer Funktion

CANT_DO

Abmelden einer Funktion

RESET_ABILITIES

Alle Registrierungen löschen

PRE_SLEEP

Sleep

SUBMIT_JOB

Job hinzufügen

GRAB_JOB

Job holen

WORK_STATUS

Status

WORK_COMPLETE

Complete

WORK_FAIL

Fail

GET_STATUS

Status

DOECHO

Echo

SUBMIT_JOB_BG

Submit

SUBMIT_JOB_HIGH

Submit

SET_CLIENT_ID

Submit

CAN_DO_TIMEOUT

Submit

ALL_YOURS

All

WORK_EXCEPTION

Exception

OPTION

Optionen

WORK_DATA

Data

WORK_WARNING

Warning

GRAB_JOB_UNIQ

Uniq

SUBMIT_JOB_HIGH_BG

Submit

SUBMIT_JOB_LOW

Submit

SUBMIT_JOB_LOW_BG

Submit

SUBMIT_JOB_SCHED

Submit

SUBMIT_JOB_EPOCH

Submit

Properties

protected integer $type from Binary
protected string $magic from Binary
protected SimpleMap $argument from Binary

Methods

string
getPacketData()

Packetdaten im binärformat

from Binary
string
__toString()

Paketdaten

from Packet
__construct(string $name)

Neue Instanz

addArgument(string $key, string $value)

Argument hinzufügen

from Binary

Details

in Binary at line 100
string getPacketData()

Packetdaten im binärformat

Return Value

string

in Packet at line 48
string __toString()

Paketdaten

Return Value

string

at line 48
__construct(string $name)

Neue Instanz

Parameters

string $name

in Binary at line 89
Binary addArgument(string $key, string $value)

Argument hinzufügen

Parameters

string $key Schlüssel
string $value Wert

Return Value

Binary