1
.TH "GEARMAN_CLIENT_SET_WARNING_FN" "3" "September 14, 2012" "0.38" "Gearmand"
3
gearman_client_set_warning_fn \- 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 gearman_workload_fn
58
.B gearman_universal_status_fn
62
.B gearman_exception_fn
70
.B gearman_complete_fn
74
.B void gearman_client_set_workload_fn(gearman_client_st\fI\ *client\fP, \fI\%gearman_workload_fn\fP\fI\ *function\fP)
78
.B void gearman_client_set_created_fn(gearman_client_st\fI\ *client\fP, \fI\%gearman_created_fn\fP\fI\ *function\fP)
82
.B void gearman_client_set_data_fn(gearman_client_st\fI\ *client\fP, \fI\%gearman_data_fn\fP\fI\ *function\fP)
86
.B void gearman_client_set_warning_fn(gearman_client_st\fI\ *client\fP, \fI\%gearman_warning_fn\fP\fI\ *function\fP)
90
.B void gearman_client_set_status_fn(gearman_client_st\fI\ *client\fP, \fI\%gearman_universal_status_fn\fP\fI\ *function\fP)
94
.B void gearman_client_set_complete_fn(gearman_client_st\fI\ *client\fP, \fI\%gearman_complete_fn\fP\fI\ *function\fP)
98
.B void gearman_client_set_exception_fn(gearman_client_st\fI\ *client\fP, \fI\%gearman_exception_fn\fP\fI\ *function\fP)
102
.B void gearman_client_set_fail_fn(gearman_client_st\fI\ *client\fP, \fI\%gearman_fail_fn\fP\fI\ *function\fP)
106
.B void gearman_client_clear_fn(gearman_client_st\fI\ *client\fP)
110
.B const char *gearman_client_do_job_handle(gearman_client_st\fI\ *client\fP)
116
Callbacks for client execution task states.
118
\fI\%gearman_client_set_data_fn()\fP sets the callback function that will
119
be called if server is to make a request to the client to provide more data.
121
\fI\%gearman_client_do_job_handle()\fP gest the job handle for the running task. This should be used between repeated
122
\fBgearman_client_do()\fP (and related) calls to get information.
124
\fI\%gearman_client_clear_fn()\fP can be called to remove all existing
125
\fI\%gearman_actions_t\fP that have been set.
127
\fI\%gearman_client_set_created_fn()\fP,
128
\fI\%gearman_client_set_data_fn()\fP,
129
\fI\%gearman_client_set_warning_fn()\fP,
130
\fI\%gearman_client_set_status_fn()\fP,
131
\fI\%gearman_client_set_complete_fn()\fP,
132
\fI\%gearman_client_set_exception_fn()\fP, and
133
\fI\%gearman_client_set_fail_fn()\fP, set callback functions for the
134
different states of execution for a client request. Each request, ie
135
a creation of \fBgearman_task_st\fP, keeps a copy of callbacks when it
138
\fI\%gearman_client_set_exception_fn()\fP will only be called if exceptions are enabled on the server. You can do this by calling \fBgearman_client_set_server_option()\fP.
144
const char *EXCEPTIONS="exceptions";
145
gearman_client_set_server_option(client, EXCEPTIONS, strlen(EXCEPTIONS));
154
\fIgearmand(8)\fP \fIlibgearman(3)\fP \fIgearman_client_error(3)\fP or \fIgearman_worker_error(3)\fP
156
Data Differential http://www.datadifferential.com/
158
2012, Data Differential, http://www.datadifferential.com/
159
.\" Generated by docutils manpage writer.