1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
.TH "GEARMAN_JOB_WORKLOAD" "3" "May 03, 2012" "0.33" "Gearmand"
.SH NAME
gearman_job_workload \- Gearmand Documentation, http://gearman.info/
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$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]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.\" Man page generated from reStructeredText.
.
.SH SYNOPSIS
.sp
#include <libgearman/gearman.h>
.INDENT 0.0
.TP
.B gearman_job_st
.UNINDENT
.INDENT 0.0
.TP
.B void gearman_job_free(\fI\%gearman_job_st\fP\fI\ *job\fP)
.UNINDENT
.INDENT 0.0
.TP
.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)
.UNINDENT
.INDENT 0.0
.TP
.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)
.UNINDENT
.INDENT 0.0
.TP
.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)
.UNINDENT
.INDENT 0.0
.TP
.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)
.UNINDENT
.INDENT 0.0
.TP
.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)
.UNINDENT
.INDENT 0.0
.TP
.B gearman_return_t gearman_job_send_fail(\fI\%gearman_job_st\fP\fI\ *job\fP)
.UNINDENT
.INDENT 0.0
.TP
.B const char *gearman_job_handle(const \fI\%gearman_job_st\fP\fI\ *job\fP)
.UNINDENT
.INDENT 0.0
.TP
.B const char *gearman_job_function_name(const \fI\%gearman_job_st\fP\fI\ *job\fP)
.UNINDENT
.INDENT 0.0
.TP
.B const char *gearman_job_unique(const \fI\%gearman_job_st\fP\fI\ *job\fP)
.UNINDENT
.INDENT 0.0
.TP
.B const void *gearman_job_workload(const \fI\%gearman_job_st\fP\fI\ *job\fP)
.UNINDENT
.INDENT 0.0
.TP
.B size_t gearman_job_workload_size(const \fI\%gearman_job_st\fP\fI\ *job\fP)
.UNINDENT
.INDENT 0.0
.TP
.B void *gearman_job_take_workload(\fI\%gearman_job_st\fP\fI\ *job\fP, size_t\fI\ *data_size\fP)
.UNINDENT
.sp
Link with \-lgearman
.SH DESCRIPTION
.sp
\fI\%gearman_job_st\fP are passed to worker functions to represent jobs that are being run by \fBgearman_worker_work()\fP.
.sp
\fI\%gearman_job_free()\fP is used to free a job. This only needs to be
done if a task was created with a preallocated structure.
.sp
\fI\%gearman_job_handle()\fP returns the job handle(see \fBgearman_job_handle_t\fP for more information).
.sp
\fI\%gearman_job_function_name()\fP return the name of the function that the
job was set to execute against.
.sp
\fI\%gearman_job_unique()\fP return the unique value that was used for \fI\%gearman_job_st\fP.
.sp
returns the \fI\%gearman_job_st\fP workload. The size of it can be determined with \fI\%gearman_job_workload_size()\fP.
\fI\%gearman_job_take_workload()\fP is the same as \fI\%gearman_job_workload()\fP with the exception that the result must be
\fIfree(3)\fP by the caller.
.SH RETURN VALUE
.sp
A value of \fBgearman_return_t\fP is returned. On success that value
will be :c:type::\fIGEARMAN_SUCCESS\fP. Use \fBgearman_strerror()\fP to
translate this value to a printable string.
.SH HOME
.sp
To find out more information please check:
\fI\%http://gearman.info/\fP
.SH SEE ALSO
.sp
\fIgearmand(8)\fP \fIlibgearman(3)\fP
.SH AUTHOR
Data Differential http://www.datadifferential.com/
.SH COPYRIGHT
2012, Data Differential, http://www.datadifferential.com/
.\" Generated by docutils manpage writer.
.\"
.
|