GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  GEARMAN_JOB_SEND_STATUS (3)

NAME

gearman_job_send_status - Gearmand Documentation, http://gearman.info/ \$1 \n[an-margin] level \n[rst2man-indent-level] level margin: \n[rst2man-indent\n[rst2man-indent-level]] - \n[rst2man-indent0] \n[rst2man-indent1] \n[rst2man-indent2]

CONTENTS

Synopsis
Description
Return Value
Home
See Also
Author
Copyright

SYNOPSIS

#include <libgearman/gearman.h>
gearman_job_st
 

void gearman_job_free( gearman_job_st *job)
 
gearman_return_t gearman_job_send_data( gearman_job_st *job, const void *data, size_t data_size)
 
gearman_return_t gearman_job_send_warning( gearman_job_st *job, const void *warning, size_t warning_size)
 
gearman_return_t gearman_job_send_status( gearman_job_st *job, uint32_t numerator, uint32_t denominator)
 
gearman_return_t gearman_job_send_complete( gearman_job_st *job, const void *result, size_t result_size)
 
gearman_return_t gearman_job_send_exception( gearman_job_st *job, const void *exception, size_t exception_size)
 
gearman_return_t gearman_job_send_fail( gearman_job_st *job)
 
const char *gearman_job_handle(const  gearman_job_st *job)
 
const char *gearman_job_function_name(const  gearman_job_st *job)
 
const char *gearman_job_unique(const  gearman_job_st *job)
 
const void *gearman_job_workload(const  gearman_job_st *job)
 
size_t gearman_job_workload_size(const  gearman_job_st *job)
 
void *gearman_job_take_workload( gearman_job_st *job, size_t *data_size)
 
 gearman_job_st *gearman_worker_grab_job(gearman_worker_st *worker,  gearman_job_st *job, gearman_return_t *ret_ptr)
 

Link with -lgearman

DESCRIPTION

 gearman_job_st are passed to worker functions to represent jobs that are being run by gearman_worker_work().

 gearman_job_free() is used to free a job. This only needs to be done if a task was created with a preallocated structure.

 gearman_job_handle() returns the job handle(see gearman_job_handle_t for more information).

 gearman_job_function_name() return the name of the function that the job was set to execute against.

 gearman_job_unique() return the unique value that was used for  gearman_job_st.

returns the  gearman_job_st workload. The size of it can be determined with  gearman_job_workload_size().  gearman_job_take_workload() is the same as  gearman_job_workload() with the exception that the result must be free(3) by the caller.

 gearman_worker_grab_job() Takes a job from one of the job servers. It is the responsibility of the caller to free the job once they are done. This interface is used in testing, and is very rarely the correct interface to program against.

RETURN VALUE

A value of gearman_return_t is returned. On success that value will be :c:type::GEARMAN_SUCCESS. Use gearman_strerror() to translate this value to a printable string.

HOME

To find out more information please check:  http://gearman.info/

SEE ALSO

gearmand(8) libgearman(3)

AUTHOR

Data Differential http://www.datadifferential.com/

COPYRIGHT

2011-2013, Data Differential, http://www.datadifferential.com/
Search for    or go to Top of page |  Section 3 |  Main Index


1.1.8 GEARMAN_JOB_SEND_STATUS (3) June 06, 2013

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.