1
.TH "GEARMAN_JOB_ST" "3" "December 15, 2011" "0.26" "Gearmand"
3
gearman_job_st \- 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(gearman_job_st *job);
46
.B gearman_return_t gearman_job_send_data(gearman_job_st *job, const void *data, size_t data_size);
50
.B gearman_return_t gearman_job_send_warning(gearman_job_st *job, const void *warning, size_t warning_size);
54
.B gearman_return_t gearman_job_send_status(gearman_job_st *job, uint32_t numerator, uint32_t denominator);
58
.B gearman_return_t gearman_job_send_complete(gearman_job_st *job, const void *result, size_t result_size);
62
.B gearman_return_t gearman_job_send_exception(gearman_job_st *job, const void *exception, size_t exception_size);
66
.B gearman_return_t gearman_job_send_fail(gearman_job_st *job);
70
.B const char *gearman_job_handle(const gearman_job_st *job);
74
.B const char *gearman_job_function_name(const gearman_job_st *job);
78
.B const char *gearman_job_unique(const gearman_job_st *job);
82
.B const void *gearman_job_workload(const gearman_job_st *job);
86
.B size_t gearman_job_workload_size(const gearman_job_st *job);
90
.B void *gearman_job_take_workload(gearman_job_st *job, size_t *data_size);
96
\fBgeaman_job_st\fP are passed to worker functions to represent jobs that are being run by \fBgearman_worker_work()\fP.
98
\fBgearman_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
\fBgearman_job_handle()\fP returns the job handle(see
102
\fBgearman_job_t\fP for more information).
104
\fBgearman_job_function_name()\fP return the name of the function that
105
the job was set to execute against.
107
\fBgearman_job_unique()\fP return the unique value that was used for
108
\fI\%gearman_job_st\fP.
110
returns the \fI\%gearman_job_st\fP workload. The size of it can be
111
determined with \fBgearman_job_workload_size()\fP.
112
\fBgearman_job_take_workload()\fP is the same as
113
\fBgearman_job_workload()\fP with the exception that the result must be
114
\fIfree(3)\fP by the caller.
117
A value of \fBgearman_return_t\fP is returned. On success that value
118
will be :c:type::\fIGEARMAN_SUCCESS\fP. Use \fBgearman_strerror()\fP to
119
translate this value to a printable string.
122
To find out more information please check:
123
\fI\%http://gearman.info/\fP
126
\fIgearmand(8)\fP \fIlibgearman(3)\fP
128
Data Differential http://datadifferential.com/
130
2011, Data Differential, http://datadifferential.com/
131
.\" Generated by docutils manpage writer.