Download the PHP package virtubrick/grid without Composer
On this page you can find all versions of the php package virtubrick/grid. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download virtubrick/grid
More information about virtubrick/grid
Files in virtubrick/grid
Download virtubrick/grid
More information about virtubrick/grid
Files in virtubrick/grid
Vendor virtubrick
Package grid
Short Description Helper library for communicating with the Roblox Grid Service.
License Apache-2.0
Package grid
Short Description Helper library for communicating with the Roblox Grid Service.
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package grid
Virtubrick\Grid
This library allows for communication between the Virtubrick website and the Roblox Grid Service.
Virtubrick\Grid\Rcc\Job
The Rcc\Job class is the first thing you should be constructing. All functions to interact with the Grid Service are called from here.
Constructor
string $id(An RFC 4122 compliant Version 4 UUID will be substituted as the job ID if this is a blank string)int $expirationInSeconds(20)int $cores(0)int $category(0)
Methods
toArray(): arrayGet the job as an array, does not soapcall.arbiter(Virtubrick\Grid\GridService): JobSets the arbiter that the Job will contact. Returns itself so these functions may be chained.script(Virtubrick\Grid\Rcc\LuaScript): JobSets the script that the Job opens with. Returns itself so these functions may be chained.batch(): arrayWill batch the Job. Returns results from the lua script.open(): arrayWill open the Job. Returns results from the lua script.getExpiration(): floatThe amount of seconds until the job expires.execute(\Virtubrick\Grid\Rcc\LuaScript $input): arrayExecutes a script on the job. Returns result from the executed script.renewLease(int $expiration): arrayRenews the lease on the Job for $expiration amount of seconds.closeJob(): arrayCloses the job.diag(int $type): arrayCollects diagnostic data about the job. (type: 0 = general diagnostic data; 1 = leak dump; 2 = allocation test; 3 = get duty cycles)Virtubrick\Grid\Rcc\LuaScript
Class that allows easy communication for scripts via the Job class.
Constructor
string $namestring $scriptarray $arguments(Empty array by default)
Methods
toArray(): arrayGet the job as an array, does not soapcall.Virtubrick\Grid\GridService
This class describes your arbiter.
Constructor
string $arbiter(ex. http://127.0.0.1:64989)
Methods
soapCall(string $name, ?array $args = null): arraySends a soap call to the Arbiter service. See RCCService.wsdl for details.helloWorld(): string"Hello World" Health check constant.getVersion(): stringThe current arbiter's version.getStatus(): arrayAn object containing the version and job count of the current arbiter.getAllJobs(): arrayAll open jobs.closeExpiredJobs(): intCloses all expired jobs and returns the count of jobs that have been closed.closeAllJobs(): intCloses all present jobs and returns the count of jobs that have been closed.
Example Usage:
Generating a Thumbnail
Copyright 2024 kylegg
All versions of grid with dependencies
PHP Build Version
Package Version
No informations.
The package virtubrick/grid contains the following files
Loading the files please wait ...