clone() - Clone a client object
error() - Return an error string for the last error encountered.
options( $options ) - Get options for a client object
setOptions( $options ) - Set options for a client object
addOptions( $options ) - Add options for a client object
removeOptions( $options ) - Remove options for a client object
addServer( $host, $port ) - Add a job server to a client. This goes into a list of servers than can be used to run tasks. No socket I/O happens here, it is just added to a list.
do( $function_name, $workload, $unique ) - Run a single task and return an allocated result.
doHigh( $function_name, $workload, $unique ) - Run a high priority task and return an allocated result.
doLow( $function_name, $workload, $unique ) - Run a low priority task and return an allocated result.
doJobHandle() - Get the job handle for the running task. This should be used between repeated do() and doHigh() calls to get information.
doStatus() - Get the status for the running task. This should be used between repeated do() and doHigh() calls to get information.
doBackground( $function_name, $workload, $unique ) - Run a task in the background.
doHighBackground( $function_name, $workload, $unique ) - Run a high priority task in the background
doLowBackground( $function_name, $workload, $unique ) - Run a low priority task in the background.
jobStatus( $job_handle ) - Get the status for a backgound job.
echo( $workload ) - Send data to all job servers to see if they echo it back (good for low level debugging, you usually won't need this function).
addTask( $function_name, $workload, $data, $unique ) - Add a task to be run in parallel.
addTaskHigh( $function_name, $workload, $data, $unique ) - Add a high priority task to be run in parallel.
addTaskLow( $function_name, $workload, $data, $unique ) - Add a low priority task to be run in parallel.
addTaskBackground( $function_name, $workload, $data, $unique ) - Add a background task to be run in parallel.
addTaskHighBackground( $function_name, $workload, $data, $unique ) - Add a high priority background task to be run in parallel.
addTaskLowBackground( $function_name, $workload, $data, $unique ) - Add a low priority background task to be run in parallel.
addTaskStatus( $job_handle, $data ) - Add task to get the status for a backgound task in parallel.
setWorkloadCallback( $callback ) - Callback function when workload data needs to be sent for a task. Good for streaming large jobs into the job server without having to buffer the entire job in the client (for some clients, proxies, …)
setCreatedCallback( $callback ) -
setClientCallback( $callback )
setWarningCallback( $callback ) - Callback function when there is a warning packet for a task
setStatusCallback( $callback ) - Callback function when there is a status packet for a task
setCompleteCallback( $callback ) - Callback function when there is a status packet for a task
setExceptionCallback( $callback ) - Callback function when there is a exception packet for a task.
setFailCallback( $callback ) - Callback function when there is a fail packet for a task
clearCallbacks() - Clear all task callback functions
data() - Get the application data
setData( $data ) - Set the application data
runTasks() - Run tasks that have been added in parallel