WorkerMessage
extends Message
in package
from Worker to Server
Generated from protobuf message livekit.WorkerMessage
Table of Contents
Properties
- $message : mixed
Methods
- __construct() : mixed
- Constructor.
- getAvailability() : AvailabilityResponse|null
- worker confirms to server that it's available for a job, or declines it
- getMessage() : string
- getMigrateJob() : MigrateJobRequest|null
- Generated from protobuf field <code>.livekit.MigrateJobRequest migrate_job = 7;</code>
- getPing() : WorkerPing|null
- Generated from protobuf field <code>.livekit.WorkerPing ping = 5;</code>
- getRegister() : RegisterWorkerRequest|null
- agent workers need to register themselves with the server first
- getSimulateJob() : SimulateJobRequest|null
- Generated from protobuf field <code>.livekit.SimulateJobRequest simulate_job = 6;</code>
- getUpdateJob() : UpdateJobStatus|null
- job can send status updates to the server, useful for tracking progress
- getUpdateWorker() : UpdateWorkerStatus|null
- worker can update its status to the server, including taking itself out of the pool
- hasAvailability() : mixed
- hasMigrateJob() : mixed
- hasPing() : mixed
- hasRegister() : mixed
- hasSimulateJob() : mixed
- hasUpdateJob() : mixed
- hasUpdateWorker() : mixed
- setAvailability() : $this
- worker confirms to server that it's available for a job, or declines it
- setMigrateJob() : $this
- Generated from protobuf field <code>.livekit.MigrateJobRequest migrate_job = 7;</code>
- setPing() : $this
- Generated from protobuf field <code>.livekit.WorkerPing ping = 5;</code>
- setRegister() : $this
- agent workers need to register themselves with the server first
- setSimulateJob() : $this
- Generated from protobuf field <code>.livekit.SimulateJobRequest simulate_job = 6;</code>
- setUpdateJob() : $this
- job can send status updates to the server, useful for tracking progress
- setUpdateWorker() : $this
- worker can update its status to the server, including taking itself out of the pool
Properties
$message
protected
mixed
$message
Methods
__construct()
Constructor.
public
__construct([array<string|int, mixed> $data = null ]) : mixed
Parameters
- $data : array<string|int, mixed> = null
-
{ Optional. Data for populating the Message object.
@type \Livekit\RegisterWorkerRequest $register agent workers need to register themselves with the server first @type \Livekit\AvailabilityResponse $availability worker confirms to server that it's available for a job, or declines it @type \Livekit\UpdateWorkerStatus $update_worker worker can update its status to the server, including taking itself out of the pool @type \Livekit\UpdateJobStatus $update_job job can send status updates to the server, useful for tracking progress @type \Livekit\WorkerPing $ping @type \Livekit\SimulateJobRequest $simulate_job @type \Livekit\MigrateJobRequest $migrate_job}
getAvailability()
worker confirms to server that it's available for a job, or declines it
public
getAvailability() : AvailabilityResponse|null
Generated from protobuf field .livekit.AvailabilityResponse availability = 2;
Return values
AvailabilityResponse|nullgetMessage()
public
getMessage() : string
Return values
stringgetMigrateJob()
Generated from protobuf field <code>.livekit.MigrateJobRequest migrate_job = 7;</code>
public
getMigrateJob() : MigrateJobRequest|null
Return values
MigrateJobRequest|nullgetPing()
Generated from protobuf field <code>.livekit.WorkerPing ping = 5;</code>
public
getPing() : WorkerPing|null
Return values
WorkerPing|nullgetRegister()
agent workers need to register themselves with the server first
public
getRegister() : RegisterWorkerRequest|null
Generated from protobuf field .livekit.RegisterWorkerRequest register = 1;
Return values
RegisterWorkerRequest|nullgetSimulateJob()
Generated from protobuf field <code>.livekit.SimulateJobRequest simulate_job = 6;</code>
public
getSimulateJob() : SimulateJobRequest|null
Return values
SimulateJobRequest|nullgetUpdateJob()
job can send status updates to the server, useful for tracking progress
public
getUpdateJob() : UpdateJobStatus|null
Generated from protobuf field .livekit.UpdateJobStatus update_job = 4;
Return values
UpdateJobStatus|nullgetUpdateWorker()
worker can update its status to the server, including taking itself out of the pool
public
getUpdateWorker() : UpdateWorkerStatus|null
Generated from protobuf field .livekit.UpdateWorkerStatus update_worker = 3;
Return values
UpdateWorkerStatus|nullhasAvailability()
public
hasAvailability() : mixed
hasMigrateJob()
public
hasMigrateJob() : mixed
hasPing()
public
hasPing() : mixed
hasRegister()
public
hasRegister() : mixed
hasSimulateJob()
public
hasSimulateJob() : mixed
hasUpdateJob()
public
hasUpdateJob() : mixed
hasUpdateWorker()
public
hasUpdateWorker() : mixed
setAvailability()
worker confirms to server that it's available for a job, or declines it
public
setAvailability(AvailabilityResponse $var) : $this
Generated from protobuf field .livekit.AvailabilityResponse availability = 2;
Parameters
- $var : AvailabilityResponse
Return values
$thissetMigrateJob()
Generated from protobuf field <code>.livekit.MigrateJobRequest migrate_job = 7;</code>
public
setMigrateJob(MigrateJobRequest $var) : $this
Parameters
- $var : MigrateJobRequest
Return values
$thissetPing()
Generated from protobuf field <code>.livekit.WorkerPing ping = 5;</code>
public
setPing(WorkerPing $var) : $this
Parameters
- $var : WorkerPing
Return values
$thissetRegister()
agent workers need to register themselves with the server first
public
setRegister(RegisterWorkerRequest $var) : $this
Generated from protobuf field .livekit.RegisterWorkerRequest register = 1;
Parameters
- $var : RegisterWorkerRequest
Return values
$thissetSimulateJob()
Generated from protobuf field <code>.livekit.SimulateJobRequest simulate_job = 6;</code>
public
setSimulateJob(SimulateJobRequest $var) : $this
Parameters
- $var : SimulateJobRequest
Return values
$thissetUpdateJob()
job can send status updates to the server, useful for tracking progress
public
setUpdateJob(UpdateJobStatus $var) : $this
Generated from protobuf field .livekit.UpdateJobStatus update_job = 4;
Parameters
- $var : UpdateJobStatus
Return values
$thissetUpdateWorker()
worker can update its status to the server, including taking itself out of the pool
public
setUpdateWorker(UpdateWorkerStatus $var) : $this
Generated from protobuf field .livekit.UpdateWorkerStatus update_worker = 3;
Parameters
- $var : UpdateWorkerStatus