Gearman Developer Documentation

Private Client Functions
[Client Interface]

Functions

static gearman_client_st_client_allocate (gearman_client_st *client)
static gearman_return_t _client_add_server (const char *host, in_port_t port, void *context)
static gearman_task_st_client_add_task (gearman_client_st *client, gearman_task_st *task, const void *context, gearman_command_t command, const char *function_name, const char *unique, const void *workload, size_t workload_size, gearman_return_t *ret_ptr)
static gearman_return_t _client_run_task (gearman_client_st *client, gearman_task_st *task)
static void * _client_do (gearman_client_st *client, gearman_command_t command, const char *function_name, const char *unique, const void *workload, size_t workload_size, size_t *result_size, gearman_return_t *ret_ptr)
static gearman_return_t _client_do_background (gearman_client_st *client, gearman_command_t command, const char *function_name, const char *unique, const void *workload, size_t workload_size, char *job_handle)
static gearman_return_t _client_do_data (gearman_task_st *task)
static gearman_return_t _client_do_status (gearman_task_st *task)
static gearman_return_t _client_do_fail (gearman_task_st *task)
static gearman_task_st_task_create (gearman_client_st *client, gearman_task_st *task)

Function Documentation

static gearman_client_st * _client_allocate ( gearman_client_st client  )  [static]

Allocate a client structure.

Definition at line 830 of file client.c.

static gearman_return_t _client_add_server ( const char *  host,
in_port_t  port,
void *  context 
) [static]

Callback function used when parsing server lists.

Definition at line 868 of file client.c.

static gearman_task_st * _client_add_task ( gearman_client_st client,
gearman_task_st task,
const void *  context,
gearman_command_t  command,
const char *  function_name,
const char *  unique,
const void *  workload,
size_t  workload_size,
gearman_return_t ret_ptr 
) [static]

Add a task.

Definition at line 874 of file client.c.

static gearman_return_t _client_run_task ( gearman_client_st client,
gearman_task_st task 
) [static]

Task state machine.

Definition at line 919 of file client.c.

static void * _client_do ( gearman_client_st client,
gearman_command_t  command,
const char *  function_name,
const char *  unique,
const void *  workload,
size_t  workload_size,
size_t *  result_size,
gearman_return_t ret_ptr 
) [static]

Real do function.

Definition at line 1177 of file client.c.

static gearman_return_t _client_do_background ( gearman_client_st client,
gearman_command_t  command,
const char *  function_name,
const char *  unique,
const void *  workload,
size_t  workload_size,
char *  job_handle 
) [static]

Real background do function.

Definition at line 1224 of file client.c.

static gearman_return_t _client_do_data ( gearman_task_st task  )  [static]

Data and complete function for gearman_client_do* functions.

Definition at line 1260 of file client.c.

static gearman_return_t _client_do_status ( gearman_task_st task  )  [static]

Status function for gearman_client_do* functions.

Definition at line 1284 of file client.c.

static gearman_return_t _client_do_fail ( gearman_task_st task  )  [static]

Fail function for gearman_client_do* functions.

Definition at line 1298 of file client.c.

static gearman_task_st * _task_create ( gearman_client_st client,
gearman_task_st task 
) [static]

Initialize a task structure.

Parameters:
[in] client Structure previously initialized with gearman_client_create() or gearman_client_clone().
[in] task Caller allocated structure, or NULL to allocate one.
Returns:
On success, a pointer to the (possibly allocated) structure. On failure this will be NULL.

Definition at line 1306 of file client.c.


Generated on Tue Oct 13 20:19:22 2009 by  doxygen 1.6.1