1
.TH "GEARMAN_JOB_SEND_DATA" "3" "September 14, 2012" "0.38" "Gearmand"
3
gearman_job_send_data \- Gearmand Documentation, http://gearman.info/
5
.nr rst2man-indent-level 0
9
level \\n[rst2man-indent-level]
10
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
17
.\" .rstReportMargin pre:
19
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20
. nr rst2man-indent-level +1
21
.\" .rstReportMargin post:
25
.\" indent \\n[an-margin]
26
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27
.nr rst2man-indent-level -1
28
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
31
.\" Man page generated from reStructeredText.
35
#include <libgearman/gearman.h>
42
.B void gearman_job_free(\fI\%gearman_job_st\fP\fI\ *job\fP)
46
.B gearman_return_t gearman_job_send_data(\fI\%gearman_job_st\fP\fI\ *job\fP, const void\fI\ *data\fP, size_t\fI\ data_size\fP)
50
.B gearman_return_t gearman_job_send_warning(\fI\%gearman_job_st\fP\fI\ *job\fP, const void\fI\ *warning\fP, size_t\fI\ warning_size\fP)
54
.B gearman_return_t gearman_job_send_status(\fI\%gearman_job_st\fP\fI\ *job\fP, uint32_t\fI\ numerator\fP, uint32_t\fI\ denominator\fP)
58
.B gearman_return_t gearman_job_send_complete(\fI\%gearman_job_st\fP\fI\ *job\fP, const void\fI\ *result\fP, size_t\fI\ result_size\fP)
62
.B gearman_return_t gearman_job_send_exception(\fI\%gearman_job_st\fP\fI\ *job\fP, const void\fI\ *exception\fP, size_t\fI\ exception_size\fP)
66
.B gearman_return_t gearman_job_send_fail(\fI\%gearman_job_st\fP\fI\ *job\fP)
70
.B const char *gearman_job_handle(const \fI\%gearman_job_st\fP\fI\ *job\fP)
74
.B const char *gearman_job_function_name(const \fI\%gearman_job_st\fP\fI\ *job\fP)
78
.B const char *gearman_job_unique(const \fI\%gearman_job_st\fP\fI\ *job\fP)
82
.B const void *gearman_job_workload(const \fI\%gearman_job_st\fP\fI\ *job\fP)
86
.B size_t gearman_job_workload_size(const \fI\%gearman_job_st\fP\fI\ *job\fP)
90
.B void *gearman_job_take_workload(\fI\%gearman_job_st\fP\fI\ *job\fP, size_t\fI\ *data_size\fP)
96
\fI\%gearman_job_st\fP are passed to worker functions to represent jobs that are being run by \fBgearman_worker_work()\fP.
98
\fI\%gearman_job_free()\fP is used to free a job. This only needs to be
99
done if a task was created with a preallocated structure.
101
\fI\%gearman_job_handle()\fP returns the job handle(see \fBgearman_job_handle_t\fP for more information).
103
\fI\%gearman_job_function_name()\fP return the name of the function that the
104
job was set to execute against.
106
\fI\%gearman_job_unique()\fP return the unique value that was used for \fI\%gearman_job_st\fP.
108
returns the \fI\%gearman_job_st\fP workload. The size of it can be determined with \fI\%gearman_job_workload_size()\fP.
109
\fI\%gearman_job_take_workload()\fP is the same as \fI\%gearman_job_workload()\fP with the exception that the result must be
110
\fIfree(3)\fP by the caller.
113
A value of \fBgearman_return_t\fP is returned. On success that value
114
will be :c:type::\fIGEARMAN_SUCCESS\fP. Use \fBgearman_strerror()\fP to
115
translate this value to a printable string.
118
To find out more information please check:
119
\fI\%http://gearman.info/\fP
122
\fIgearmand(8)\fP \fIlibgearman(3)\fP
124
Data Differential http://www.datadifferential.com/
126
2012, Data Differential, http://www.datadifferential.com/
127
.\" Generated by docutils manpage writer.