Gearman Developer Documentation

Static Client Declarations
[Client Declarations]

Functions

static gearman_client_st_client_allocate (gearman_client_st *client, bool is_clone)
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, void *context, gearman_command_t command, const char *function_name, size_t function_name_length, const char *unique, size_t unique_name_length, 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, size_t functiona_name_length, const char *unique, size_t unique_length, 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, size_t functiona_name_length, const char *unique, size_t unique_length, 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)

Function Documentation

static gearman_client_st * _client_allocate ( gearman_client_st client,
bool  is_clone 
) [static]

Allocate a client structure.

Definition at line 911 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 968 of file client.c.

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

Add a task.

Todo:
fix it so that NULL is done by default by the API not by happenstance.

Definition at line 974 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 1033 of file client.c.

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

Real do function.

Definition at line 1294 of file client.c.

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

Real background do function.

Definition at line 1346 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 1390 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 1414 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 1428 of file client.c.

Generated on Mon Jun 14 15:58:45 2010 by  doxygen 1.6.3