ruby-libgearman 0.10.2 → 0.10.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data.tar.gz.sig +0 -0
- data/CHANGELOG +44 -0
- data/Manifest +1 -0
- data/ext/gearman.c +1009 -174
- data/release.rb +1 -1
- data/ruby-libgearman.gemspec +3 -3
- data/test_worker.rb +60 -0
- metadata +3 -2
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
|
Binary file
|
data/CHANGELOG
CHANGED
|
@@ -1,3 +1,47 @@
|
|
|
1
|
+
45 Monty Taylor 2009-10-27 {0.10.3}
|
|
2
|
+
Oops. Forgot to bump version number.
|
|
3
|
+
|
|
4
|
+
44 Monty Taylor 2009-10-27
|
|
5
|
+
pandora-build v0.63
|
|
6
|
+
|
|
7
|
+
43 Monty Taylor 2009-10-27
|
|
8
|
+
Added support for Ruby workers.
|
|
9
|
+
|
|
10
|
+
42 Monty Taylor 2009-10-27
|
|
11
|
+
Changed camelCase to under_score.
|
|
12
|
+
|
|
13
|
+
41 Monty Taylor 2009-10-23
|
|
14
|
+
Added autodoc feature to get some doc strings.
|
|
15
|
+
|
|
16
|
+
40 Monty Taylor 2009-10-23 {0.10.2}
|
|
17
|
+
Bumped version to fix python3 upload problem.
|
|
18
|
+
|
|
19
|
+
39 Monty Taylor 2009-10-23 {0.10.1}
|
|
20
|
+
Put lua into the build structure. not actually building any lua yet.
|
|
21
|
+
|
|
22
|
+
38 Monty Taylor 2009-10-23
|
|
23
|
+
Updated xml swig support.
|
|
24
|
+
|
|
25
|
+
37 Monty Taylor 2009-10-23
|
|
26
|
+
Updated README.
|
|
27
|
+
|
|
28
|
+
36 Monty Taylor 2009-10-23
|
|
29
|
+
Fixed licensing files. Removed some unused directories.
|
|
30
|
+
|
|
31
|
+
35 Monty Taylor 2009-10-23
|
|
32
|
+
Added ruby test client file.
|
|
33
|
+
|
|
34
|
+
34 Monty Taylor 2009-10-23
|
|
35
|
+
Incompatible: Changed worker::addFunction signature... moved timeout to the end of the arg list and made it optional. It isn't implemented in the C server and
|
|
36
|
+
is just there for perl server compatibility. Also, worker::setTimeout is likely what you actually want.
|
|
37
|
+
|
|
38
|
+
Fixed a memory leak.
|
|
39
|
+
|
|
40
|
+
33 Monty Taylor 2009-10-23
|
|
41
|
+
Reuse python typemaps in python3 files.
|
|
42
|
+
Use SWIG provided string conversion for python.
|
|
43
|
+
Port in some callback code for Ruby.
|
|
44
|
+
|
|
1
45
|
32 Monty Taylor 2009-10-22
|
|
2
46
|
Ported in files from drizzle-interface and memcached-interface regarding ruby build.
|
|
3
47
|
|
data/Manifest
CHANGED
data/ext/gearman.c
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
|
3
|
-
* Version 1.3.
|
|
3
|
+
* Version 1.3.40
|
|
4
4
|
*
|
|
5
5
|
* This file is not intended to be easily readable and contains a number of
|
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
|
@@ -1789,51 +1789,49 @@ int SWIG_Ruby_arity( VALUE proc, int minimal )
|
|
|
1789
1789
|
|
|
1790
1790
|
/* -------- TYPES TABLE (BEGIN) -------- */
|
|
1791
1791
|
|
|
1792
|
-
#define
|
|
1793
|
-
#define
|
|
1794
|
-
#define
|
|
1795
|
-
#define
|
|
1796
|
-
#define
|
|
1797
|
-
#define
|
|
1798
|
-
#define
|
|
1799
|
-
#define
|
|
1800
|
-
#define
|
|
1801
|
-
#define
|
|
1802
|
-
#define
|
|
1803
|
-
#define
|
|
1804
|
-
#define
|
|
1805
|
-
#define
|
|
1806
|
-
#define
|
|
1807
|
-
#define
|
|
1808
|
-
#define
|
|
1809
|
-
#define
|
|
1810
|
-
#define
|
|
1811
|
-
#define
|
|
1812
|
-
#define
|
|
1813
|
-
#define
|
|
1814
|
-
#define
|
|
1815
|
-
#define
|
|
1816
|
-
#define
|
|
1817
|
-
#define
|
|
1818
|
-
#define
|
|
1819
|
-
#define
|
|
1820
|
-
#define
|
|
1821
|
-
#define
|
|
1822
|
-
#define
|
|
1823
|
-
#define
|
|
1824
|
-
#define
|
|
1825
|
-
#define
|
|
1826
|
-
#define
|
|
1827
|
-
#define
|
|
1828
|
-
#define
|
|
1829
|
-
#define
|
|
1830
|
-
#define
|
|
1831
|
-
#define
|
|
1832
|
-
#define
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
static swig_type_info *swig_types[44];
|
|
1836
|
-
static swig_module_info swig_module = {swig_types, 43, 0, 0, 0, 0};
|
|
1792
|
+
#define SWIGTYPE_p_char swig_types[0]
|
|
1793
|
+
#define SWIGTYPE_p_gearman_callback swig_types[1]
|
|
1794
|
+
#define SWIGTYPE_p_gearman_client_options_t swig_types[2]
|
|
1795
|
+
#define SWIGTYPE_p_gearman_client_st swig_types[3]
|
|
1796
|
+
#define SWIGTYPE_p_gearman_client_state_t swig_types[4]
|
|
1797
|
+
#define SWIGTYPE_p_gearman_command_info_st swig_types[5]
|
|
1798
|
+
#define SWIGTYPE_p_gearman_command_t swig_types[6]
|
|
1799
|
+
#define SWIGTYPE_p_gearman_con_options_t swig_types[7]
|
|
1800
|
+
#define SWIGTYPE_p_gearman_con_recv_state_t swig_types[8]
|
|
1801
|
+
#define SWIGTYPE_p_gearman_con_send_state_t swig_types[9]
|
|
1802
|
+
#define SWIGTYPE_p_gearman_con_st swig_types[10]
|
|
1803
|
+
#define SWIGTYPE_p_gearman_con_state_t swig_types[11]
|
|
1804
|
+
#define SWIGTYPE_p_gearman_job_options_t swig_types[12]
|
|
1805
|
+
#define SWIGTYPE_p_gearman_job_priority_t swig_types[13]
|
|
1806
|
+
#define SWIGTYPE_p_gearman_job_st swig_types[14]
|
|
1807
|
+
#define SWIGTYPE_p_gearman_magic_t swig_types[15]
|
|
1808
|
+
#define SWIGTYPE_p_gearman_options_t swig_types[16]
|
|
1809
|
+
#define SWIGTYPE_p_gearman_packet_options_t swig_types[17]
|
|
1810
|
+
#define SWIGTYPE_p_gearman_packet_st swig_types[18]
|
|
1811
|
+
#define SWIGTYPE_p_gearman_return_t swig_types[19]
|
|
1812
|
+
#define SWIGTYPE_p_gearman_st swig_types[20]
|
|
1813
|
+
#define SWIGTYPE_p_gearman_task_options_t swig_types[21]
|
|
1814
|
+
#define SWIGTYPE_p_gearman_task_st swig_types[22]
|
|
1815
|
+
#define SWIGTYPE_p_gearman_task_state_t swig_types[23]
|
|
1816
|
+
#define SWIGTYPE_p_gearman_verbose_t swig_types[24]
|
|
1817
|
+
#define SWIGTYPE_p_gearman_worker_function_options_t swig_types[25]
|
|
1818
|
+
#define SWIGTYPE_p_gearman_worker_function_st swig_types[26]
|
|
1819
|
+
#define SWIGTYPE_p_gearman_worker_options_t swig_types[27]
|
|
1820
|
+
#define SWIGTYPE_p_gearman_worker_st swig_types[28]
|
|
1821
|
+
#define SWIGTYPE_p_gearman_worker_state_t swig_types[29]
|
|
1822
|
+
#define SWIGTYPE_p_gearman_worker_work_state_t swig_types[30]
|
|
1823
|
+
#define SWIGTYPE_p_int swig_types[31]
|
|
1824
|
+
#define SWIGTYPE_p_long_long swig_types[32]
|
|
1825
|
+
#define SWIGTYPE_p_p_char swig_types[33]
|
|
1826
|
+
#define SWIGTYPE_p_short swig_types[34]
|
|
1827
|
+
#define SWIGTYPE_p_signed_char swig_types[35]
|
|
1828
|
+
#define SWIGTYPE_p_size_t swig_types[36]
|
|
1829
|
+
#define SWIGTYPE_p_unsigned_char swig_types[37]
|
|
1830
|
+
#define SWIGTYPE_p_unsigned_int swig_types[38]
|
|
1831
|
+
#define SWIGTYPE_p_unsigned_long_long swig_types[39]
|
|
1832
|
+
#define SWIGTYPE_p_unsigned_short swig_types[40]
|
|
1833
|
+
static swig_type_info *swig_types[42];
|
|
1834
|
+
static swig_module_info swig_module = {swig_types, 41, 0, 0, 0, 0};
|
|
1837
1835
|
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
|
|
1838
1836
|
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
|
|
1839
1837
|
|
|
@@ -1848,7 +1846,7 @@ static VALUE mGearman;
|
|
|
1848
1846
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
|
1849
1847
|
|
|
1850
1848
|
|
|
1851
|
-
#define SWIGVERSION
|
|
1849
|
+
#define SWIGVERSION 0x010340
|
|
1852
1850
|
#define SWIG_VERSION SWIGVERSION
|
|
1853
1851
|
|
|
1854
1852
|
|
|
@@ -1893,7 +1891,6 @@ typedef struct gearman_st Gearman;
|
|
|
1893
1891
|
typedef struct gearman_client_st Client;
|
|
1894
1892
|
typedef struct gearman_worker_st Worker;
|
|
1895
1893
|
typedef struct gearman_job_st Job;
|
|
1896
|
-
typedef void do_return;
|
|
1897
1894
|
|
|
1898
1895
|
typedef enum enum_gearman_exception {
|
|
1899
1896
|
GearmanException
|
|
@@ -2010,7 +2007,7 @@ SWIG_ruby_failed(void)
|
|
|
2010
2007
|
}
|
|
2011
2008
|
|
|
2012
2009
|
|
|
2013
|
-
/*@SWIG:/usr/
|
|
2010
|
+
/*@SWIG:/usr/share/swig1.3/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
|
|
2014
2011
|
SWIGINTERN VALUE SWIG_AUX_NUM2LONG(VALUE *args)
|
|
2015
2012
|
{
|
|
2016
2013
|
VALUE obj = args[0];
|
|
@@ -2054,19 +2051,19 @@ SWIG_AsVal_int (VALUE obj, int *val)
|
|
|
2054
2051
|
return res;
|
|
2055
2052
|
}
|
|
2056
2053
|
|
|
2057
|
-
SWIGINTERN void
|
|
2054
|
+
SWIGINTERN void Gearman_set_options(Gearman *self,gearman_options_t options){
|
|
2058
2055
|
gearman_set_options(self, options);
|
|
2059
2056
|
}
|
|
2060
|
-
SWIGINTERN void
|
|
2057
|
+
SWIGINTERN void Gearman_add_options(Gearman *self,gearman_options_t options){
|
|
2061
2058
|
gearman_add_options(self, options);
|
|
2062
2059
|
}
|
|
2063
|
-
SWIGINTERN void
|
|
2060
|
+
SWIGINTERN void Gearman_remove_options(Gearman *self,gearman_options_t options){
|
|
2064
2061
|
gearman_remove_options(self, options);
|
|
2065
2062
|
}
|
|
2066
2063
|
SWIGINTERN int Gearman_timeout(Gearman *self){
|
|
2067
2064
|
return gearman_timeout(self);
|
|
2068
2065
|
}
|
|
2069
|
-
SWIGINTERN void
|
|
2066
|
+
SWIGINTERN void Gearman_set_timeout(Gearman *self,int timeout){
|
|
2070
2067
|
gearman_set_timeout(self, timeout);
|
|
2071
2068
|
}
|
|
2072
2069
|
SWIGINTERN Client *new_Client(){
|
|
@@ -2084,13 +2081,13 @@ SWIGINTERN int Client_errno(Client *self){
|
|
|
2084
2081
|
SWIGINTERN gearman_client_options_t Client_options(Client *self){
|
|
2085
2082
|
return gearman_client_options(self);
|
|
2086
2083
|
}
|
|
2087
|
-
SWIGINTERN void
|
|
2084
|
+
SWIGINTERN void Client_set_options(Client *self,gearman_client_options_t options){
|
|
2088
2085
|
gearman_client_set_options(self, options);
|
|
2089
2086
|
}
|
|
2090
|
-
SWIGINTERN void
|
|
2087
|
+
SWIGINTERN void Client_add_options(Client *self,gearman_client_options_t options){
|
|
2091
2088
|
gearman_client_add_options(self, options);
|
|
2092
2089
|
}
|
|
2093
|
-
SWIGINTERN void
|
|
2090
|
+
SWIGINTERN void Client_remove_options(Client *self,gearman_client_options_t options){
|
|
2094
2091
|
gearman_client_remove_options(self, options);
|
|
2095
2092
|
}
|
|
2096
2093
|
|
|
@@ -2135,7 +2132,7 @@ SWIG_AsCharPtrAndSize(VALUE obj, char** cptr, size_t* psize, int *alloc)
|
|
|
2135
2132
|
|
|
2136
2133
|
|
|
2137
2134
|
|
|
2138
|
-
/*@SWIG:/usr/
|
|
2135
|
+
/*@SWIG:/usr/share/swig1.3/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
|
|
2139
2136
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
|
2140
2137
|
{
|
|
2141
2138
|
VALUE obj = args[0];
|
|
@@ -2179,23 +2176,23 @@ SWIG_AsVal_unsigned_SS_int (VALUE obj, unsigned int *val)
|
|
|
2179
2176
|
return res;
|
|
2180
2177
|
}
|
|
2181
2178
|
|
|
2182
|
-
SWIGINTERN gearman_return_t
|
|
2179
|
+
SWIGINTERN gearman_return_t Client_add_server__SWIG_0(Client *self,char const *host,in_port_t port){
|
|
2183
2180
|
return gearman_client_add_server(self, host, port);
|
|
2184
2181
|
}
|
|
2185
|
-
SWIGINTERN gearman_return_t
|
|
2182
|
+
SWIGINTERN gearman_return_t Client_add_server__SWIG_1(Client *self,char const *host){
|
|
2186
2183
|
return gearman_client_add_server(self,
|
|
2187
2184
|
"127.0.0.1",
|
|
2188
2185
|
4730);
|
|
2189
2186
|
}
|
|
2190
|
-
SWIGINTERN gearman_return_t
|
|
2187
|
+
SWIGINTERN gearman_return_t Client_add_server__SWIG_2(Client *self){
|
|
2191
2188
|
return gearman_client_add_server(self,
|
|
2192
2189
|
"127.0.0.1",
|
|
2193
2190
|
4730);
|
|
2194
2191
|
}
|
|
2195
|
-
SWIGINTERN gearman_return_t
|
|
2192
|
+
SWIGINTERN gearman_return_t Client_add_servers(Client *self,char const *servers){
|
|
2196
2193
|
return gearman_client_add_servers(self, servers);
|
|
2197
2194
|
}
|
|
2198
|
-
SWIGINTERN void
|
|
2195
|
+
SWIGINTERN void Client_remove_servers(Client *self){
|
|
2199
2196
|
gearman_client_remove_servers(self);
|
|
2200
2197
|
}
|
|
2201
2198
|
|
|
@@ -2218,7 +2215,7 @@ SWIGINTERN gearman_return_t Client_do(Client *self,char const *function_name,voi
|
|
|
2218
2215
|
|
|
2219
2216
|
return ret;
|
|
2220
2217
|
}
|
|
2221
|
-
SWIGINTERN gearman_return_t
|
|
2218
|
+
SWIGINTERN gearman_return_t Client_do_high(Client *self,char const *function_name,void const *workload,size_t workload_size,char **ret_val,size_t *ret_size,char const *unique){
|
|
2222
2219
|
gearman_return_t ret;
|
|
2223
2220
|
*ret_val= (void *)gearman_client_do_high(self, function_name, unique,
|
|
2224
2221
|
workload, workload_size,
|
|
@@ -2226,7 +2223,7 @@ SWIGINTERN gearman_return_t Client_doHigh(Client *self,char const *function_name
|
|
|
2226
2223
|
|
|
2227
2224
|
return ret;
|
|
2228
2225
|
}
|
|
2229
|
-
SWIGINTERN gearman_return_t
|
|
2226
|
+
SWIGINTERN gearman_return_t Client_do_low(Client *self,char const *function_name,void const *workload,size_t workload_size,char **ret_val,size_t *ret_size,char const *unique){
|
|
2230
2227
|
gearman_return_t ret;
|
|
2231
2228
|
*ret_val= (void *)gearman_client_do_low(self, function_name, unique,
|
|
2232
2229
|
workload, workload_size,
|
|
@@ -2234,7 +2231,7 @@ SWIGINTERN gearman_return_t Client_doLow(Client *self,char const *function_name,
|
|
|
2234
2231
|
|
|
2235
2232
|
return ret;
|
|
2236
2233
|
}
|
|
2237
|
-
SWIGINTERN char const *
|
|
2234
|
+
SWIGINTERN char const *Client_job_handle(Client *self){
|
|
2238
2235
|
return gearman_client_do_job_handle(self);
|
|
2239
2236
|
}
|
|
2240
2237
|
SWIGINTERN void Client_status(Client *self,uint32_t *numerator,uint32_t *denominator){
|
|
@@ -2255,57 +2252,81 @@ SWIGINTERN int Worker_errno(Worker *self){
|
|
|
2255
2252
|
SWIGINTERN gearman_worker_options_t Worker_options(Worker *self){
|
|
2256
2253
|
return gearman_worker_options(self);
|
|
2257
2254
|
}
|
|
2258
|
-
SWIGINTERN void
|
|
2255
|
+
SWIGINTERN void Worker_set_options(Worker *self,gearman_worker_options_t options){
|
|
2259
2256
|
gearman_worker_set_options(self, options);
|
|
2260
2257
|
}
|
|
2261
|
-
SWIGINTERN void
|
|
2258
|
+
SWIGINTERN void Worker_add_options(Worker *self,gearman_worker_options_t options){
|
|
2262
2259
|
gearman_worker_add_options(self, options);
|
|
2263
2260
|
}
|
|
2264
|
-
SWIGINTERN void
|
|
2261
|
+
SWIGINTERN void Worker_remove_options(Worker *self,gearman_worker_options_t options){
|
|
2265
2262
|
gearman_worker_remove_options(self, options);
|
|
2266
2263
|
}
|
|
2267
2264
|
SWIGINTERN int Worker_timeout(Worker *self){
|
|
2268
2265
|
return gearman_worker_timeout(self);
|
|
2269
2266
|
}
|
|
2270
|
-
SWIGINTERN void
|
|
2267
|
+
SWIGINTERN void Worker_set_timeout(Worker *self,int timeout){
|
|
2271
2268
|
gearman_worker_set_timeout(self, timeout);
|
|
2272
2269
|
}
|
|
2273
|
-
SWIGINTERN gearman_return_t
|
|
2270
|
+
SWIGINTERN gearman_return_t Worker_add_server__SWIG_0(Worker *self,char const *host,in_port_t port){
|
|
2274
2271
|
return gearman_worker_add_server(self, host, port);
|
|
2275
2272
|
}
|
|
2276
|
-
SWIGINTERN gearman_return_t
|
|
2273
|
+
SWIGINTERN gearman_return_t Worker_add_server__SWIG_1(Worker *self,char const *host){
|
|
2277
2274
|
return gearman_worker_add_server(self,
|
|
2278
2275
|
"127.0.0.1",
|
|
2279
2276
|
4730);
|
|
2280
2277
|
}
|
|
2281
|
-
SWIGINTERN gearman_return_t
|
|
2278
|
+
SWIGINTERN gearman_return_t Worker_add_server__SWIG_2(Worker *self){
|
|
2282
2279
|
return gearman_worker_add_server(self,
|
|
2283
2280
|
"127.0.0.1",
|
|
2284
2281
|
4730);
|
|
2285
2282
|
}
|
|
2286
|
-
SWIGINTERN gearman_return_t
|
|
2283
|
+
SWIGINTERN gearman_return_t Worker_add_servers(Worker *self,char const *servers){
|
|
2287
2284
|
return gearman_worker_add_servers(self, servers);
|
|
2288
2285
|
}
|
|
2289
|
-
SWIGINTERN gearman_return_t
|
|
2286
|
+
SWIGINTERN gearman_return_t Worker_register_function(Worker *self,char const *function_name,uint32_t timeout){
|
|
2290
2287
|
return gearman_worker_register(self, function_name, timeout);
|
|
2291
2288
|
}
|
|
2292
|
-
SWIGINTERN gearman_return_t
|
|
2289
|
+
SWIGINTERN gearman_return_t Worker_unregister_function(Worker *self,char const *function_name){
|
|
2293
2290
|
return gearman_worker_unregister(self, function_name);
|
|
2294
2291
|
}
|
|
2295
|
-
SWIGINTERN gearman_return_t
|
|
2292
|
+
SWIGINTERN gearman_return_t Worker_unregister_all(Worker *self){
|
|
2296
2293
|
return gearman_worker_unregister_all(self);
|
|
2297
2294
|
}
|
|
2298
2295
|
SWIGINTERN Job *Worker_grabJob(Worker *self){
|
|
2299
2296
|
gearman_return_t ret;
|
|
2300
2297
|
return gearman_worker_grab_job(self, NULL, &ret);
|
|
2301
2298
|
}
|
|
2302
|
-
SWIGINTERN gearman_return_t
|
|
2299
|
+
SWIGINTERN gearman_return_t Worker_add_function(Worker *self,char const *function_name,gearman_callback *worker_fn,uint32_t timeout){
|
|
2303
2300
|
return gearman_worker_add_function(self, function_name, timeout,
|
|
2304
2301
|
workerCallback, (void *)worker_fn);
|
|
2305
2302
|
}
|
|
2306
2303
|
SWIGINTERN gearman_return_t Worker_work(Worker *self){
|
|
2307
2304
|
return gearman_worker_work(self);
|
|
2308
2305
|
}
|
|
2306
|
+
SWIGINTERN gearman_return_t Worker_echo(Worker *self,void const *workload,size_t workload_size){
|
|
2307
|
+
return gearman_worker_echo(self, workload, workload_size);
|
|
2308
|
+
}
|
|
2309
|
+
SWIGINTERN gearman_return_t Job_send_status(Job *self,uint32_t numerator,uint32_t denominator){
|
|
2310
|
+
return gearman_job_send_status(self, numerator, denominator);
|
|
2311
|
+
}
|
|
2312
|
+
SWIGINTERN gearman_return_t Job_send_fail(Job *self){
|
|
2313
|
+
return gearman_job_send_fail(self);
|
|
2314
|
+
}
|
|
2315
|
+
SWIGINTERN char *Job_job_handle(Job *self){
|
|
2316
|
+
return gearman_job_handle(self);
|
|
2317
|
+
}
|
|
2318
|
+
SWIGINTERN char *Job_function_name(Job *self){
|
|
2319
|
+
return gearman_job_function_name(self);
|
|
2320
|
+
}
|
|
2321
|
+
SWIGINTERN char const *Job_unique(Job *self){
|
|
2322
|
+
return gearman_job_unique(self);
|
|
2323
|
+
}
|
|
2324
|
+
SWIGINTERN gearman_workload Job_get_workload(Job *self){
|
|
2325
|
+
gearman_workload workload;
|
|
2326
|
+
workload.workload= gearman_job_workload(self);
|
|
2327
|
+
workload.workload_size= gearman_job_workload_size(self);
|
|
2328
|
+
return workload;
|
|
2329
|
+
}
|
|
2309
2330
|
|
|
2310
2331
|
|
|
2311
2332
|
#define D_exception(code,msg) do { gearman_raise_exception(code, msg); SWIG_fail; } while(0);
|
|
@@ -2358,6 +2379,16 @@ VALUE gearman_get_exception(gearman_exception excpcode) {
|
|
|
2358
2379
|
}
|
|
2359
2380
|
|
|
2360
2381
|
|
|
2382
|
+
|
|
2383
|
+
/*
|
|
2384
|
+
Document-method: Gearman.version
|
|
2385
|
+
|
|
2386
|
+
call-seq:
|
|
2387
|
+
version -> char
|
|
2388
|
+
|
|
2389
|
+
A module function.
|
|
2390
|
+
|
|
2391
|
+
*/
|
|
2361
2392
|
SWIGINTERN VALUE
|
|
2362
2393
|
_wrap_version(int argc, VALUE *argv, VALUE self) {
|
|
2363
2394
|
char *result = 0 ;
|
|
@@ -2374,6 +2405,16 @@ fail:
|
|
|
2374
2405
|
}
|
|
2375
2406
|
|
|
2376
2407
|
|
|
2408
|
+
|
|
2409
|
+
/*
|
|
2410
|
+
Document-method: Gearman.bugreport
|
|
2411
|
+
|
|
2412
|
+
call-seq:
|
|
2413
|
+
bugreport -> char
|
|
2414
|
+
|
|
2415
|
+
A module function.
|
|
2416
|
+
|
|
2417
|
+
*/
|
|
2377
2418
|
SWIGINTERN VALUE
|
|
2378
2419
|
_wrap_bugreport(int argc, VALUE *argv, VALUE self) {
|
|
2379
2420
|
char *result = 0 ;
|
|
@@ -2390,6 +2431,14 @@ fail:
|
|
|
2390
2431
|
}
|
|
2391
2432
|
|
|
2392
2433
|
|
|
2434
|
+
|
|
2435
|
+
/*
|
|
2436
|
+
Document-class: Gearman::Gearman
|
|
2437
|
+
|
|
2438
|
+
Proxy of C Gearman::Gearman struct
|
|
2439
|
+
|
|
2440
|
+
|
|
2441
|
+
*/
|
|
2393
2442
|
swig_class SwigClassGearman;
|
|
2394
2443
|
|
|
2395
2444
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
@@ -2409,6 +2458,16 @@ _wrap_Gearman_allocate(VALUE self) {
|
|
|
2409
2458
|
}
|
|
2410
2459
|
|
|
2411
2460
|
|
|
2461
|
+
|
|
2462
|
+
/*
|
|
2463
|
+
Document-method: Gearman::Gearman.new
|
|
2464
|
+
|
|
2465
|
+
call-seq:
|
|
2466
|
+
Gearman.new
|
|
2467
|
+
|
|
2468
|
+
Class constructor.
|
|
2469
|
+
|
|
2470
|
+
*/
|
|
2412
2471
|
SWIGINTERN VALUE
|
|
2413
2472
|
_wrap_new_Gearman(int argc, VALUE *argv, VALUE self) {
|
|
2414
2473
|
Gearman *result = 0 ;
|
|
@@ -2432,6 +2491,16 @@ free_Gearman(Gearman *arg1) {
|
|
|
2432
2491
|
delete_Gearman(arg1);
|
|
2433
2492
|
}
|
|
2434
2493
|
|
|
2494
|
+
|
|
2495
|
+
/*
|
|
2496
|
+
Document-method: Gearman::Gearman.copy
|
|
2497
|
+
|
|
2498
|
+
call-seq:
|
|
2499
|
+
copy
|
|
2500
|
+
|
|
2501
|
+
An instance method.
|
|
2502
|
+
|
|
2503
|
+
*/
|
|
2435
2504
|
SWIGINTERN VALUE
|
|
2436
2505
|
_wrap_Gearman_copy(int argc, VALUE *argv, VALUE self) {
|
|
2437
2506
|
Gearman *arg1 = (Gearman *) 0 ;
|
|
@@ -2456,6 +2525,16 @@ fail:
|
|
|
2456
2525
|
}
|
|
2457
2526
|
|
|
2458
2527
|
|
|
2528
|
+
|
|
2529
|
+
/*
|
|
2530
|
+
Document-method: Gearman::Gearman.error
|
|
2531
|
+
|
|
2532
|
+
call-seq:
|
|
2533
|
+
error -> char
|
|
2534
|
+
|
|
2535
|
+
An instance method.
|
|
2536
|
+
|
|
2537
|
+
*/
|
|
2459
2538
|
SWIGINTERN VALUE
|
|
2460
2539
|
_wrap_Gearman_error(int argc, VALUE *argv, VALUE self) {
|
|
2461
2540
|
Gearman *arg1 = (Gearman *) 0 ;
|
|
@@ -2480,6 +2559,16 @@ fail:
|
|
|
2480
2559
|
}
|
|
2481
2560
|
|
|
2482
2561
|
|
|
2562
|
+
|
|
2563
|
+
/*
|
|
2564
|
+
Document-method: Gearman::Gearman.errno
|
|
2565
|
+
|
|
2566
|
+
call-seq:
|
|
2567
|
+
errno -> int
|
|
2568
|
+
|
|
2569
|
+
An instance method.
|
|
2570
|
+
|
|
2571
|
+
*/
|
|
2483
2572
|
SWIGINTERN VALUE
|
|
2484
2573
|
_wrap_Gearman_errno(int argc, VALUE *argv, VALUE self) {
|
|
2485
2574
|
Gearman *arg1 = (Gearman *) 0 ;
|
|
@@ -2504,6 +2593,16 @@ fail:
|
|
|
2504
2593
|
}
|
|
2505
2594
|
|
|
2506
2595
|
|
|
2596
|
+
|
|
2597
|
+
/*
|
|
2598
|
+
Document-method: Gearman::Gearman.options
|
|
2599
|
+
|
|
2600
|
+
call-seq:
|
|
2601
|
+
options -> int
|
|
2602
|
+
|
|
2603
|
+
An instance method.
|
|
2604
|
+
|
|
2605
|
+
*/
|
|
2507
2606
|
SWIGINTERN VALUE
|
|
2508
2607
|
_wrap_Gearman_options(int argc, VALUE *argv, VALUE self) {
|
|
2509
2608
|
Gearman *arg1 = (Gearman *) 0 ;
|
|
@@ -2528,6 +2627,16 @@ fail:
|
|
|
2528
2627
|
}
|
|
2529
2628
|
|
|
2530
2629
|
|
|
2630
|
+
|
|
2631
|
+
/*
|
|
2632
|
+
Document-method: Gearman::Gearman.set_options
|
|
2633
|
+
|
|
2634
|
+
call-seq:
|
|
2635
|
+
set_options(gearman_options_t options)
|
|
2636
|
+
|
|
2637
|
+
An instance method.
|
|
2638
|
+
|
|
2639
|
+
*/
|
|
2531
2640
|
SWIGINTERN VALUE
|
|
2532
2641
|
_wrap_Gearman_set_options(int argc, VALUE *argv, VALUE self) {
|
|
2533
2642
|
Gearman *arg1 = (Gearman *) 0 ;
|
|
@@ -2542,21 +2651,31 @@ _wrap_Gearman_set_options(int argc, VALUE *argv, VALUE self) {
|
|
|
2542
2651
|
}
|
|
2543
2652
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_st, 0 | 0 );
|
|
2544
2653
|
if (!SWIG_IsOK(res1)) {
|
|
2545
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gearman *","
|
|
2654
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gearman *","set_options", 1, self ));
|
|
2546
2655
|
}
|
|
2547
2656
|
arg1 = (Gearman *)(argp1);
|
|
2548
2657
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
2549
2658
|
if (!SWIG_IsOK(ecode2)) {
|
|
2550
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_options_t","
|
|
2659
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_options_t","set_options", 2, argv[0] ));
|
|
2551
2660
|
}
|
|
2552
2661
|
arg2 = (gearman_options_t)(val2);
|
|
2553
|
-
|
|
2662
|
+
Gearman_set_options(arg1,arg2);
|
|
2554
2663
|
return Qnil;
|
|
2555
2664
|
fail:
|
|
2556
2665
|
return Qnil;
|
|
2557
2666
|
}
|
|
2558
2667
|
|
|
2559
2668
|
|
|
2669
|
+
|
|
2670
|
+
/*
|
|
2671
|
+
Document-method: Gearman::Gearman.add_options
|
|
2672
|
+
|
|
2673
|
+
call-seq:
|
|
2674
|
+
add_options(gearman_options_t options)
|
|
2675
|
+
|
|
2676
|
+
An instance method.
|
|
2677
|
+
|
|
2678
|
+
*/
|
|
2560
2679
|
SWIGINTERN VALUE
|
|
2561
2680
|
_wrap_Gearman_add_options(int argc, VALUE *argv, VALUE self) {
|
|
2562
2681
|
Gearman *arg1 = (Gearman *) 0 ;
|
|
@@ -2571,21 +2690,31 @@ _wrap_Gearman_add_options(int argc, VALUE *argv, VALUE self) {
|
|
|
2571
2690
|
}
|
|
2572
2691
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_st, 0 | 0 );
|
|
2573
2692
|
if (!SWIG_IsOK(res1)) {
|
|
2574
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gearman *","
|
|
2693
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gearman *","add_options", 1, self ));
|
|
2575
2694
|
}
|
|
2576
2695
|
arg1 = (Gearman *)(argp1);
|
|
2577
2696
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
2578
2697
|
if (!SWIG_IsOK(ecode2)) {
|
|
2579
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_options_t","
|
|
2698
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_options_t","add_options", 2, argv[0] ));
|
|
2580
2699
|
}
|
|
2581
2700
|
arg2 = (gearman_options_t)(val2);
|
|
2582
|
-
|
|
2701
|
+
Gearman_add_options(arg1,arg2);
|
|
2583
2702
|
return Qnil;
|
|
2584
2703
|
fail:
|
|
2585
2704
|
return Qnil;
|
|
2586
2705
|
}
|
|
2587
2706
|
|
|
2588
2707
|
|
|
2708
|
+
|
|
2709
|
+
/*
|
|
2710
|
+
Document-method: Gearman::Gearman.remove_options
|
|
2711
|
+
|
|
2712
|
+
call-seq:
|
|
2713
|
+
remove_options(gearman_options_t options)
|
|
2714
|
+
|
|
2715
|
+
An instance method.
|
|
2716
|
+
|
|
2717
|
+
*/
|
|
2589
2718
|
SWIGINTERN VALUE
|
|
2590
2719
|
_wrap_Gearman_remove_options(int argc, VALUE *argv, VALUE self) {
|
|
2591
2720
|
Gearman *arg1 = (Gearman *) 0 ;
|
|
@@ -2600,21 +2729,31 @@ _wrap_Gearman_remove_options(int argc, VALUE *argv, VALUE self) {
|
|
|
2600
2729
|
}
|
|
2601
2730
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_st, 0 | 0 );
|
|
2602
2731
|
if (!SWIG_IsOK(res1)) {
|
|
2603
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gearman *","
|
|
2732
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gearman *","remove_options", 1, self ));
|
|
2604
2733
|
}
|
|
2605
2734
|
arg1 = (Gearman *)(argp1);
|
|
2606
2735
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
2607
2736
|
if (!SWIG_IsOK(ecode2)) {
|
|
2608
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_options_t","
|
|
2737
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_options_t","remove_options", 2, argv[0] ));
|
|
2609
2738
|
}
|
|
2610
2739
|
arg2 = (gearman_options_t)(val2);
|
|
2611
|
-
|
|
2740
|
+
Gearman_remove_options(arg1,arg2);
|
|
2612
2741
|
return Qnil;
|
|
2613
2742
|
fail:
|
|
2614
2743
|
return Qnil;
|
|
2615
2744
|
}
|
|
2616
2745
|
|
|
2617
2746
|
|
|
2747
|
+
|
|
2748
|
+
/*
|
|
2749
|
+
Document-method: Gearman::Gearman.timeout
|
|
2750
|
+
|
|
2751
|
+
call-seq:
|
|
2752
|
+
timeout -> int
|
|
2753
|
+
|
|
2754
|
+
An instance method.
|
|
2755
|
+
|
|
2756
|
+
*/
|
|
2618
2757
|
SWIGINTERN VALUE
|
|
2619
2758
|
_wrap_Gearman_timeout(int argc, VALUE *argv, VALUE self) {
|
|
2620
2759
|
Gearman *arg1 = (Gearman *) 0 ;
|
|
@@ -2639,6 +2778,16 @@ fail:
|
|
|
2639
2778
|
}
|
|
2640
2779
|
|
|
2641
2780
|
|
|
2781
|
+
|
|
2782
|
+
/*
|
|
2783
|
+
Document-method: Gearman::Gearman.set_timeout
|
|
2784
|
+
|
|
2785
|
+
call-seq:
|
|
2786
|
+
set_timeout(int timeout)
|
|
2787
|
+
|
|
2788
|
+
An instance method.
|
|
2789
|
+
|
|
2790
|
+
*/
|
|
2642
2791
|
SWIGINTERN VALUE
|
|
2643
2792
|
_wrap_Gearman_set_timeout(int argc, VALUE *argv, VALUE self) {
|
|
2644
2793
|
Gearman *arg1 = (Gearman *) 0 ;
|
|
@@ -2653,21 +2802,29 @@ _wrap_Gearman_set_timeout(int argc, VALUE *argv, VALUE self) {
|
|
|
2653
2802
|
}
|
|
2654
2803
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_st, 0 | 0 );
|
|
2655
2804
|
if (!SWIG_IsOK(res1)) {
|
|
2656
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gearman *","
|
|
2805
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Gearman *","set_timeout", 1, self ));
|
|
2657
2806
|
}
|
|
2658
2807
|
arg1 = (Gearman *)(argp1);
|
|
2659
2808
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
2660
2809
|
if (!SWIG_IsOK(ecode2)) {
|
|
2661
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","
|
|
2810
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","set_timeout", 2, argv[0] ));
|
|
2662
2811
|
}
|
|
2663
2812
|
arg2 = (int)(val2);
|
|
2664
|
-
|
|
2813
|
+
Gearman_set_timeout(arg1,arg2);
|
|
2665
2814
|
return Qnil;
|
|
2666
2815
|
fail:
|
|
2667
2816
|
return Qnil;
|
|
2668
2817
|
}
|
|
2669
2818
|
|
|
2670
2819
|
|
|
2820
|
+
|
|
2821
|
+
/*
|
|
2822
|
+
Document-class: Gearman::Client
|
|
2823
|
+
|
|
2824
|
+
Proxy of C Gearman::Client struct
|
|
2825
|
+
|
|
2826
|
+
|
|
2827
|
+
*/
|
|
2671
2828
|
swig_class SwigClassClient;
|
|
2672
2829
|
|
|
2673
2830
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
@@ -2687,6 +2844,16 @@ _wrap_Client_allocate(VALUE self) {
|
|
|
2687
2844
|
}
|
|
2688
2845
|
|
|
2689
2846
|
|
|
2847
|
+
|
|
2848
|
+
/*
|
|
2849
|
+
Document-method: Gearman::Client.new
|
|
2850
|
+
|
|
2851
|
+
call-seq:
|
|
2852
|
+
Client.new
|
|
2853
|
+
|
|
2854
|
+
Class constructor.
|
|
2855
|
+
|
|
2856
|
+
*/
|
|
2690
2857
|
SWIGINTERN VALUE
|
|
2691
2858
|
_wrap_new_Client(int argc, VALUE *argv, VALUE self) {
|
|
2692
2859
|
Client *result = 0 ;
|
|
@@ -2710,6 +2877,16 @@ free_Client(Client *arg1) {
|
|
|
2710
2877
|
delete_Client(arg1);
|
|
2711
2878
|
}
|
|
2712
2879
|
|
|
2880
|
+
|
|
2881
|
+
/*
|
|
2882
|
+
Document-method: Gearman::Client.copy
|
|
2883
|
+
|
|
2884
|
+
call-seq:
|
|
2885
|
+
copy -> Client
|
|
2886
|
+
|
|
2887
|
+
An instance method.
|
|
2888
|
+
|
|
2889
|
+
*/
|
|
2713
2890
|
SWIGINTERN VALUE
|
|
2714
2891
|
_wrap_Client_copy(int argc, VALUE *argv, VALUE self) {
|
|
2715
2892
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -2734,6 +2911,16 @@ fail:
|
|
|
2734
2911
|
}
|
|
2735
2912
|
|
|
2736
2913
|
|
|
2914
|
+
|
|
2915
|
+
/*
|
|
2916
|
+
Document-method: Gearman::Client.error
|
|
2917
|
+
|
|
2918
|
+
call-seq:
|
|
2919
|
+
error -> char
|
|
2920
|
+
|
|
2921
|
+
An instance method.
|
|
2922
|
+
|
|
2923
|
+
*/
|
|
2737
2924
|
SWIGINTERN VALUE
|
|
2738
2925
|
_wrap_Client_error(int argc, VALUE *argv, VALUE self) {
|
|
2739
2926
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -2758,6 +2945,16 @@ fail:
|
|
|
2758
2945
|
}
|
|
2759
2946
|
|
|
2760
2947
|
|
|
2948
|
+
|
|
2949
|
+
/*
|
|
2950
|
+
Document-method: Gearman::Client.errno
|
|
2951
|
+
|
|
2952
|
+
call-seq:
|
|
2953
|
+
errno -> int
|
|
2954
|
+
|
|
2955
|
+
An instance method.
|
|
2956
|
+
|
|
2957
|
+
*/
|
|
2761
2958
|
SWIGINTERN VALUE
|
|
2762
2959
|
_wrap_Client_errno(int argc, VALUE *argv, VALUE self) {
|
|
2763
2960
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -2782,6 +2979,16 @@ fail:
|
|
|
2782
2979
|
}
|
|
2783
2980
|
|
|
2784
2981
|
|
|
2982
|
+
|
|
2983
|
+
/*
|
|
2984
|
+
Document-method: Gearman::Client.options
|
|
2985
|
+
|
|
2986
|
+
call-seq:
|
|
2987
|
+
options -> int
|
|
2988
|
+
|
|
2989
|
+
An instance method.
|
|
2990
|
+
|
|
2991
|
+
*/
|
|
2785
2992
|
SWIGINTERN VALUE
|
|
2786
2993
|
_wrap_Client_options(int argc, VALUE *argv, VALUE self) {
|
|
2787
2994
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -2806,6 +3013,16 @@ fail:
|
|
|
2806
3013
|
}
|
|
2807
3014
|
|
|
2808
3015
|
|
|
3016
|
+
|
|
3017
|
+
/*
|
|
3018
|
+
Document-method: Gearman::Client.set_options
|
|
3019
|
+
|
|
3020
|
+
call-seq:
|
|
3021
|
+
set_options(gearman_client_options_t options)
|
|
3022
|
+
|
|
3023
|
+
An instance method.
|
|
3024
|
+
|
|
3025
|
+
*/
|
|
2809
3026
|
SWIGINTERN VALUE
|
|
2810
3027
|
_wrap_Client_set_options(int argc, VALUE *argv, VALUE self) {
|
|
2811
3028
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -2820,21 +3037,31 @@ _wrap_Client_set_options(int argc, VALUE *argv, VALUE self) {
|
|
|
2820
3037
|
}
|
|
2821
3038
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_client_st, 0 | 0 );
|
|
2822
3039
|
if (!SWIG_IsOK(res1)) {
|
|
2823
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","
|
|
3040
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","set_options", 1, self ));
|
|
2824
3041
|
}
|
|
2825
3042
|
arg1 = (Client *)(argp1);
|
|
2826
3043
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
2827
3044
|
if (!SWIG_IsOK(ecode2)) {
|
|
2828
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_client_options_t","
|
|
3045
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_client_options_t","set_options", 2, argv[0] ));
|
|
2829
3046
|
}
|
|
2830
3047
|
arg2 = (gearman_client_options_t)(val2);
|
|
2831
|
-
|
|
3048
|
+
Client_set_options(arg1,arg2);
|
|
2832
3049
|
return Qnil;
|
|
2833
3050
|
fail:
|
|
2834
3051
|
return Qnil;
|
|
2835
3052
|
}
|
|
2836
3053
|
|
|
2837
3054
|
|
|
3055
|
+
|
|
3056
|
+
/*
|
|
3057
|
+
Document-method: Gearman::Client.add_options
|
|
3058
|
+
|
|
3059
|
+
call-seq:
|
|
3060
|
+
add_options(gearman_client_options_t options)
|
|
3061
|
+
|
|
3062
|
+
An instance method.
|
|
3063
|
+
|
|
3064
|
+
*/
|
|
2838
3065
|
SWIGINTERN VALUE
|
|
2839
3066
|
_wrap_Client_add_options(int argc, VALUE *argv, VALUE self) {
|
|
2840
3067
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -2849,21 +3076,31 @@ _wrap_Client_add_options(int argc, VALUE *argv, VALUE self) {
|
|
|
2849
3076
|
}
|
|
2850
3077
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_client_st, 0 | 0 );
|
|
2851
3078
|
if (!SWIG_IsOK(res1)) {
|
|
2852
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","
|
|
3079
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","add_options", 1, self ));
|
|
2853
3080
|
}
|
|
2854
3081
|
arg1 = (Client *)(argp1);
|
|
2855
3082
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
2856
3083
|
if (!SWIG_IsOK(ecode2)) {
|
|
2857
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_client_options_t","
|
|
3084
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_client_options_t","add_options", 2, argv[0] ));
|
|
2858
3085
|
}
|
|
2859
3086
|
arg2 = (gearman_client_options_t)(val2);
|
|
2860
|
-
|
|
3087
|
+
Client_add_options(arg1,arg2);
|
|
2861
3088
|
return Qnil;
|
|
2862
3089
|
fail:
|
|
2863
3090
|
return Qnil;
|
|
2864
3091
|
}
|
|
2865
3092
|
|
|
2866
3093
|
|
|
3094
|
+
|
|
3095
|
+
/*
|
|
3096
|
+
Document-method: Gearman::Client.remove_options
|
|
3097
|
+
|
|
3098
|
+
call-seq:
|
|
3099
|
+
remove_options(gearman_client_options_t options)
|
|
3100
|
+
|
|
3101
|
+
An instance method.
|
|
3102
|
+
|
|
3103
|
+
*/
|
|
2867
3104
|
SWIGINTERN VALUE
|
|
2868
3105
|
_wrap_Client_remove_options(int argc, VALUE *argv, VALUE self) {
|
|
2869
3106
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -2878,21 +3115,33 @@ _wrap_Client_remove_options(int argc, VALUE *argv, VALUE self) {
|
|
|
2878
3115
|
}
|
|
2879
3116
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_client_st, 0 | 0 );
|
|
2880
3117
|
if (!SWIG_IsOK(res1)) {
|
|
2881
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","
|
|
3118
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","remove_options", 1, self ));
|
|
2882
3119
|
}
|
|
2883
3120
|
arg1 = (Client *)(argp1);
|
|
2884
3121
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
2885
3122
|
if (!SWIG_IsOK(ecode2)) {
|
|
2886
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_client_options_t","
|
|
3123
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_client_options_t","remove_options", 2, argv[0] ));
|
|
2887
3124
|
}
|
|
2888
3125
|
arg2 = (gearman_client_options_t)(val2);
|
|
2889
|
-
|
|
3126
|
+
Client_remove_options(arg1,arg2);
|
|
2890
3127
|
return Qnil;
|
|
2891
3128
|
fail:
|
|
2892
3129
|
return Qnil;
|
|
2893
3130
|
}
|
|
2894
3131
|
|
|
2895
3132
|
|
|
3133
|
+
|
|
3134
|
+
/*
|
|
3135
|
+
Document-method: Gearman::Client.add_server
|
|
3136
|
+
|
|
3137
|
+
call-seq:
|
|
3138
|
+
add_server(char host, in_port_t port) -> int
|
|
3139
|
+
add_server(char host) -> int
|
|
3140
|
+
add_server -> int
|
|
3141
|
+
|
|
3142
|
+
An instance method.
|
|
3143
|
+
|
|
3144
|
+
*/
|
|
2896
3145
|
SWIGINTERN VALUE
|
|
2897
3146
|
_wrap_Client_add_server__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
2898
3147
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -2913,20 +3162,20 @@ _wrap_Client_add_server__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
|
2913
3162
|
}
|
|
2914
3163
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_client_st, 0 | 0 );
|
|
2915
3164
|
if (!SWIG_IsOK(res1)) {
|
|
2916
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","
|
|
3165
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","add_server", 1, self ));
|
|
2917
3166
|
}
|
|
2918
3167
|
arg1 = (Client *)(argp1);
|
|
2919
3168
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
2920
3169
|
if (!SWIG_IsOK(res2)) {
|
|
2921
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","
|
|
3170
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","add_server", 2, argv[0] ));
|
|
2922
3171
|
}
|
|
2923
3172
|
arg2 = (char *)(buf2);
|
|
2924
3173
|
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
|
|
2925
3174
|
if (!SWIG_IsOK(ecode3)) {
|
|
2926
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "in_port_t","
|
|
3175
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "in_port_t","add_server", 3, argv[1] ));
|
|
2927
3176
|
}
|
|
2928
3177
|
arg3 = (in_port_t)(val3);
|
|
2929
|
-
result = (gearman_return_t)
|
|
3178
|
+
result = (gearman_return_t)Client_add_server__SWIG_0(arg1,(char const *)arg2,arg3);
|
|
2930
3179
|
vresult = SWIG_From_int((int)(result));
|
|
2931
3180
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
2932
3181
|
return vresult;
|
|
@@ -2953,15 +3202,15 @@ _wrap_Client_add_server__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
|
2953
3202
|
}
|
|
2954
3203
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_client_st, 0 | 0 );
|
|
2955
3204
|
if (!SWIG_IsOK(res1)) {
|
|
2956
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","
|
|
3205
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","add_server", 1, self ));
|
|
2957
3206
|
}
|
|
2958
3207
|
arg1 = (Client *)(argp1);
|
|
2959
3208
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
2960
3209
|
if (!SWIG_IsOK(res2)) {
|
|
2961
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","
|
|
3210
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","add_server", 2, argv[0] ));
|
|
2962
3211
|
}
|
|
2963
3212
|
arg2 = (char *)(buf2);
|
|
2964
|
-
result = (gearman_return_t)
|
|
3213
|
+
result = (gearman_return_t)Client_add_server__SWIG_1(arg1,(char const *)arg2);
|
|
2965
3214
|
vresult = SWIG_From_int((int)(result));
|
|
2966
3215
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
2967
3216
|
return vresult;
|
|
@@ -2984,10 +3233,10 @@ _wrap_Client_add_server__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
|
2984
3233
|
}
|
|
2985
3234
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_client_st, 0 | 0 );
|
|
2986
3235
|
if (!SWIG_IsOK(res1)) {
|
|
2987
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","
|
|
3236
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","add_server", 1, self ));
|
|
2988
3237
|
}
|
|
2989
3238
|
arg1 = (Client *)(argp1);
|
|
2990
|
-
result = (gearman_return_t)
|
|
3239
|
+
result = (gearman_return_t)Client_add_server__SWIG_2(arg1);
|
|
2991
3240
|
vresult = SWIG_From_int((int)(result));
|
|
2992
3241
|
return vresult;
|
|
2993
3242
|
fail:
|
|
@@ -3058,6 +3307,16 @@ fail:
|
|
|
3058
3307
|
}
|
|
3059
3308
|
|
|
3060
3309
|
|
|
3310
|
+
|
|
3311
|
+
/*
|
|
3312
|
+
Document-method: Gearman::Client.add_servers
|
|
3313
|
+
|
|
3314
|
+
call-seq:
|
|
3315
|
+
add_servers(char servers) -> int
|
|
3316
|
+
|
|
3317
|
+
An instance method.
|
|
3318
|
+
|
|
3319
|
+
*/
|
|
3061
3320
|
SWIGINTERN VALUE
|
|
3062
3321
|
_wrap_Client_add_servers(int argc, VALUE *argv, VALUE self) {
|
|
3063
3322
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -3075,15 +3334,15 @@ _wrap_Client_add_servers(int argc, VALUE *argv, VALUE self) {
|
|
|
3075
3334
|
}
|
|
3076
3335
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_client_st, 0 | 0 );
|
|
3077
3336
|
if (!SWIG_IsOK(res1)) {
|
|
3078
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","
|
|
3337
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","add_servers", 1, self ));
|
|
3079
3338
|
}
|
|
3080
3339
|
arg1 = (Client *)(argp1);
|
|
3081
3340
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
3082
3341
|
if (!SWIG_IsOK(res2)) {
|
|
3083
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","
|
|
3342
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","add_servers", 2, argv[0] ));
|
|
3084
3343
|
}
|
|
3085
3344
|
arg2 = (char *)(buf2);
|
|
3086
|
-
result = (gearman_return_t)
|
|
3345
|
+
result = (gearman_return_t)Client_add_servers(arg1,(char const *)arg2);
|
|
3087
3346
|
vresult = SWIG_From_int((int)(result));
|
|
3088
3347
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
3089
3348
|
return vresult;
|
|
@@ -3093,6 +3352,16 @@ fail:
|
|
|
3093
3352
|
}
|
|
3094
3353
|
|
|
3095
3354
|
|
|
3355
|
+
|
|
3356
|
+
/*
|
|
3357
|
+
Document-method: Gearman::Client.remove_servers
|
|
3358
|
+
|
|
3359
|
+
call-seq:
|
|
3360
|
+
remove_servers
|
|
3361
|
+
|
|
3362
|
+
An instance method.
|
|
3363
|
+
|
|
3364
|
+
*/
|
|
3096
3365
|
SWIGINTERN VALUE
|
|
3097
3366
|
_wrap_Client_remove_servers(int argc, VALUE *argv, VALUE self) {
|
|
3098
3367
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -3104,16 +3373,26 @@ _wrap_Client_remove_servers(int argc, VALUE *argv, VALUE self) {
|
|
|
3104
3373
|
}
|
|
3105
3374
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_client_st, 0 | 0 );
|
|
3106
3375
|
if (!SWIG_IsOK(res1)) {
|
|
3107
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","
|
|
3376
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","remove_servers", 1, self ));
|
|
3108
3377
|
}
|
|
3109
3378
|
arg1 = (Client *)(argp1);
|
|
3110
|
-
|
|
3379
|
+
Client_remove_servers(arg1);
|
|
3111
3380
|
return Qnil;
|
|
3112
3381
|
fail:
|
|
3113
3382
|
return Qnil;
|
|
3114
3383
|
}
|
|
3115
3384
|
|
|
3116
3385
|
|
|
3386
|
+
|
|
3387
|
+
/*
|
|
3388
|
+
Document-method: Gearman::Client.do
|
|
3389
|
+
|
|
3390
|
+
call-seq:
|
|
3391
|
+
do(char function_name, void workload, char unique=nil) -> int
|
|
3392
|
+
|
|
3393
|
+
An instance method.
|
|
3394
|
+
|
|
3395
|
+
*/
|
|
3117
3396
|
SWIGINTERN VALUE
|
|
3118
3397
|
_wrap_Client_do(int argc, VALUE *argv, VALUE self) {
|
|
3119
3398
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -3181,6 +3460,16 @@ fail:
|
|
|
3181
3460
|
}
|
|
3182
3461
|
|
|
3183
3462
|
|
|
3463
|
+
|
|
3464
|
+
/*
|
|
3465
|
+
Document-method: Gearman::Client.do_high
|
|
3466
|
+
|
|
3467
|
+
call-seq:
|
|
3468
|
+
do_high(char function_name, void workload, char unique=nil) -> int
|
|
3469
|
+
|
|
3470
|
+
An instance method.
|
|
3471
|
+
|
|
3472
|
+
*/
|
|
3184
3473
|
SWIGINTERN VALUE
|
|
3185
3474
|
_wrap_Client_do_high(int argc, VALUE *argv, VALUE self) {
|
|
3186
3475
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -3214,12 +3503,12 @@ _wrap_Client_do_high(int argc, VALUE *argv, VALUE self) {
|
|
|
3214
3503
|
}
|
|
3215
3504
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_client_st, 0 | 0 );
|
|
3216
3505
|
if (!SWIG_IsOK(res1)) {
|
|
3217
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","
|
|
3506
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","do_high", 1, self ));
|
|
3218
3507
|
}
|
|
3219
3508
|
arg1 = (Client *)(argp1);
|
|
3220
3509
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
3221
3510
|
if (!SWIG_IsOK(res2)) {
|
|
3222
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","
|
|
3511
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","do_high", 2, argv[0] ));
|
|
3223
3512
|
}
|
|
3224
3513
|
arg2 = (char *)(buf2);
|
|
3225
3514
|
{
|
|
@@ -3229,11 +3518,11 @@ _wrap_Client_do_high(int argc, VALUE *argv, VALUE self) {
|
|
|
3229
3518
|
if (argc > 2) {
|
|
3230
3519
|
res7 = SWIG_AsCharPtrAndSize(argv[2], &buf7, NULL, &alloc7);
|
|
3231
3520
|
if (!SWIG_IsOK(res7)) {
|
|
3232
|
-
SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "char const *","
|
|
3521
|
+
SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "char const *","do_high", 7, argv[2] ));
|
|
3233
3522
|
}
|
|
3234
3523
|
arg7 = (char *)(buf7);
|
|
3235
3524
|
}
|
|
3236
|
-
result = (gearman_return_t)
|
|
3525
|
+
result = (gearman_return_t)Client_do_high(arg1,(char const *)arg2,(void const *)arg3,arg4,arg5,arg6,(char const *)arg7);
|
|
3237
3526
|
vresult = SWIG_From_int((int)(result));
|
|
3238
3527
|
{
|
|
3239
3528
|
vresult = output_helper(vresult, SWIG_FromCharPtrAndSize(*arg5, *arg6));
|
|
@@ -3248,6 +3537,16 @@ fail:
|
|
|
3248
3537
|
}
|
|
3249
3538
|
|
|
3250
3539
|
|
|
3540
|
+
|
|
3541
|
+
/*
|
|
3542
|
+
Document-method: Gearman::Client.do_low
|
|
3543
|
+
|
|
3544
|
+
call-seq:
|
|
3545
|
+
do_low(char function_name, void workload, char unique=nil) -> int
|
|
3546
|
+
|
|
3547
|
+
An instance method.
|
|
3548
|
+
|
|
3549
|
+
*/
|
|
3251
3550
|
SWIGINTERN VALUE
|
|
3252
3551
|
_wrap_Client_do_low(int argc, VALUE *argv, VALUE self) {
|
|
3253
3552
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -3281,12 +3580,12 @@ _wrap_Client_do_low(int argc, VALUE *argv, VALUE self) {
|
|
|
3281
3580
|
}
|
|
3282
3581
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_client_st, 0 | 0 );
|
|
3283
3582
|
if (!SWIG_IsOK(res1)) {
|
|
3284
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","
|
|
3583
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","do_low", 1, self ));
|
|
3285
3584
|
}
|
|
3286
3585
|
arg1 = (Client *)(argp1);
|
|
3287
3586
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
3288
3587
|
if (!SWIG_IsOK(res2)) {
|
|
3289
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","
|
|
3588
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","do_low", 2, argv[0] ));
|
|
3290
3589
|
}
|
|
3291
3590
|
arg2 = (char *)(buf2);
|
|
3292
3591
|
{
|
|
@@ -3296,11 +3595,11 @@ _wrap_Client_do_low(int argc, VALUE *argv, VALUE self) {
|
|
|
3296
3595
|
if (argc > 2) {
|
|
3297
3596
|
res7 = SWIG_AsCharPtrAndSize(argv[2], &buf7, NULL, &alloc7);
|
|
3298
3597
|
if (!SWIG_IsOK(res7)) {
|
|
3299
|
-
SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "char const *","
|
|
3598
|
+
SWIG_exception_fail(SWIG_ArgError(res7), Ruby_Format_TypeError( "", "char const *","do_low", 7, argv[2] ));
|
|
3300
3599
|
}
|
|
3301
3600
|
arg7 = (char *)(buf7);
|
|
3302
3601
|
}
|
|
3303
|
-
result = (gearman_return_t)
|
|
3602
|
+
result = (gearman_return_t)Client_do_low(arg1,(char const *)arg2,(void const *)arg3,arg4,arg5,arg6,(char const *)arg7);
|
|
3304
3603
|
vresult = SWIG_From_int((int)(result));
|
|
3305
3604
|
{
|
|
3306
3605
|
vresult = output_helper(vresult, SWIG_FromCharPtrAndSize(*arg5, *arg6));
|
|
@@ -3315,6 +3614,16 @@ fail:
|
|
|
3315
3614
|
}
|
|
3316
3615
|
|
|
3317
3616
|
|
|
3617
|
+
|
|
3618
|
+
/*
|
|
3619
|
+
Document-method: Gearman::Client.job_handle
|
|
3620
|
+
|
|
3621
|
+
call-seq:
|
|
3622
|
+
job_handle -> char
|
|
3623
|
+
|
|
3624
|
+
An instance method.
|
|
3625
|
+
|
|
3626
|
+
*/
|
|
3318
3627
|
SWIGINTERN VALUE
|
|
3319
3628
|
_wrap_Client_job_handle(int argc, VALUE *argv, VALUE self) {
|
|
3320
3629
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -3328,10 +3637,10 @@ _wrap_Client_job_handle(int argc, VALUE *argv, VALUE self) {
|
|
|
3328
3637
|
}
|
|
3329
3638
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_client_st, 0 | 0 );
|
|
3330
3639
|
if (!SWIG_IsOK(res1)) {
|
|
3331
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","
|
|
3640
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Client *","job_handle", 1, self ));
|
|
3332
3641
|
}
|
|
3333
3642
|
arg1 = (Client *)(argp1);
|
|
3334
|
-
result = (char *)
|
|
3643
|
+
result = (char *)Client_job_handle(arg1);
|
|
3335
3644
|
vresult = SWIG_FromCharPtr((const char *)result);
|
|
3336
3645
|
return vresult;
|
|
3337
3646
|
fail:
|
|
@@ -3339,6 +3648,16 @@ fail:
|
|
|
3339
3648
|
}
|
|
3340
3649
|
|
|
3341
3650
|
|
|
3651
|
+
|
|
3652
|
+
/*
|
|
3653
|
+
Document-method: Gearman::Client.status
|
|
3654
|
+
|
|
3655
|
+
call-seq:
|
|
3656
|
+
status(uint32_t numerator, uint32_t denominator)
|
|
3657
|
+
|
|
3658
|
+
An instance method.
|
|
3659
|
+
|
|
3660
|
+
*/
|
|
3342
3661
|
SWIGINTERN VALUE
|
|
3343
3662
|
_wrap_Client_status(int argc, VALUE *argv, VALUE self) {
|
|
3344
3663
|
Client *arg1 = (Client *) 0 ;
|
|
@@ -3376,6 +3695,14 @@ fail:
|
|
|
3376
3695
|
}
|
|
3377
3696
|
|
|
3378
3697
|
|
|
3698
|
+
|
|
3699
|
+
/*
|
|
3700
|
+
Document-class: Gearman::Worker
|
|
3701
|
+
|
|
3702
|
+
Proxy of C Gearman::Worker struct
|
|
3703
|
+
|
|
3704
|
+
|
|
3705
|
+
*/
|
|
3379
3706
|
swig_class SwigClassWorker;
|
|
3380
3707
|
|
|
3381
3708
|
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
@@ -3395,6 +3722,16 @@ _wrap_Worker_allocate(VALUE self) {
|
|
|
3395
3722
|
}
|
|
3396
3723
|
|
|
3397
3724
|
|
|
3725
|
+
|
|
3726
|
+
/*
|
|
3727
|
+
Document-method: Gearman::Worker.new
|
|
3728
|
+
|
|
3729
|
+
call-seq:
|
|
3730
|
+
Worker.new
|
|
3731
|
+
|
|
3732
|
+
Class constructor.
|
|
3733
|
+
|
|
3734
|
+
*/
|
|
3398
3735
|
SWIGINTERN VALUE
|
|
3399
3736
|
_wrap_new_Worker(int argc, VALUE *argv, VALUE self) {
|
|
3400
3737
|
Worker *result = 0 ;
|
|
@@ -3418,6 +3755,16 @@ free_Worker(Worker *arg1) {
|
|
|
3418
3755
|
delete_Worker(arg1);
|
|
3419
3756
|
}
|
|
3420
3757
|
|
|
3758
|
+
|
|
3759
|
+
/*
|
|
3760
|
+
Document-method: Gearman::Worker.copy
|
|
3761
|
+
|
|
3762
|
+
call-seq:
|
|
3763
|
+
copy -> Worker
|
|
3764
|
+
|
|
3765
|
+
An instance method.
|
|
3766
|
+
|
|
3767
|
+
*/
|
|
3421
3768
|
SWIGINTERN VALUE
|
|
3422
3769
|
_wrap_Worker_copy(int argc, VALUE *argv, VALUE self) {
|
|
3423
3770
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3442,6 +3789,16 @@ fail:
|
|
|
3442
3789
|
}
|
|
3443
3790
|
|
|
3444
3791
|
|
|
3792
|
+
|
|
3793
|
+
/*
|
|
3794
|
+
Document-method: Gearman::Worker.error
|
|
3795
|
+
|
|
3796
|
+
call-seq:
|
|
3797
|
+
error -> char
|
|
3798
|
+
|
|
3799
|
+
An instance method.
|
|
3800
|
+
|
|
3801
|
+
*/
|
|
3445
3802
|
SWIGINTERN VALUE
|
|
3446
3803
|
_wrap_Worker_error(int argc, VALUE *argv, VALUE self) {
|
|
3447
3804
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3466,6 +3823,16 @@ fail:
|
|
|
3466
3823
|
}
|
|
3467
3824
|
|
|
3468
3825
|
|
|
3826
|
+
|
|
3827
|
+
/*
|
|
3828
|
+
Document-method: Gearman::Worker.errno
|
|
3829
|
+
|
|
3830
|
+
call-seq:
|
|
3831
|
+
errno -> int
|
|
3832
|
+
|
|
3833
|
+
An instance method.
|
|
3834
|
+
|
|
3835
|
+
*/
|
|
3469
3836
|
SWIGINTERN VALUE
|
|
3470
3837
|
_wrap_Worker_errno(int argc, VALUE *argv, VALUE self) {
|
|
3471
3838
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3490,6 +3857,16 @@ fail:
|
|
|
3490
3857
|
}
|
|
3491
3858
|
|
|
3492
3859
|
|
|
3860
|
+
|
|
3861
|
+
/*
|
|
3862
|
+
Document-method: Gearman::Worker.options
|
|
3863
|
+
|
|
3864
|
+
call-seq:
|
|
3865
|
+
options -> int
|
|
3866
|
+
|
|
3867
|
+
An instance method.
|
|
3868
|
+
|
|
3869
|
+
*/
|
|
3493
3870
|
SWIGINTERN VALUE
|
|
3494
3871
|
_wrap_Worker_options(int argc, VALUE *argv, VALUE self) {
|
|
3495
3872
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3514,6 +3891,16 @@ fail:
|
|
|
3514
3891
|
}
|
|
3515
3892
|
|
|
3516
3893
|
|
|
3894
|
+
|
|
3895
|
+
/*
|
|
3896
|
+
Document-method: Gearman::Worker.set_options
|
|
3897
|
+
|
|
3898
|
+
call-seq:
|
|
3899
|
+
set_options(gearman_worker_options_t options)
|
|
3900
|
+
|
|
3901
|
+
An instance method.
|
|
3902
|
+
|
|
3903
|
+
*/
|
|
3517
3904
|
SWIGINTERN VALUE
|
|
3518
3905
|
_wrap_Worker_set_options(int argc, VALUE *argv, VALUE self) {
|
|
3519
3906
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3528,21 +3915,31 @@ _wrap_Worker_set_options(int argc, VALUE *argv, VALUE self) {
|
|
|
3528
3915
|
}
|
|
3529
3916
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
3530
3917
|
if (!SWIG_IsOK(res1)) {
|
|
3531
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
3918
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","set_options", 1, self ));
|
|
3532
3919
|
}
|
|
3533
3920
|
arg1 = (Worker *)(argp1);
|
|
3534
3921
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
3535
3922
|
if (!SWIG_IsOK(ecode2)) {
|
|
3536
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_worker_options_t","
|
|
3923
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_worker_options_t","set_options", 2, argv[0] ));
|
|
3537
3924
|
}
|
|
3538
3925
|
arg2 = (gearman_worker_options_t)(val2);
|
|
3539
|
-
|
|
3926
|
+
Worker_set_options(arg1,arg2);
|
|
3540
3927
|
return Qnil;
|
|
3541
3928
|
fail:
|
|
3542
3929
|
return Qnil;
|
|
3543
3930
|
}
|
|
3544
3931
|
|
|
3545
3932
|
|
|
3933
|
+
|
|
3934
|
+
/*
|
|
3935
|
+
Document-method: Gearman::Worker.add_options
|
|
3936
|
+
|
|
3937
|
+
call-seq:
|
|
3938
|
+
add_options(gearman_worker_options_t options)
|
|
3939
|
+
|
|
3940
|
+
An instance method.
|
|
3941
|
+
|
|
3942
|
+
*/
|
|
3546
3943
|
SWIGINTERN VALUE
|
|
3547
3944
|
_wrap_Worker_add_options(int argc, VALUE *argv, VALUE self) {
|
|
3548
3945
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3557,21 +3954,31 @@ _wrap_Worker_add_options(int argc, VALUE *argv, VALUE self) {
|
|
|
3557
3954
|
}
|
|
3558
3955
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
3559
3956
|
if (!SWIG_IsOK(res1)) {
|
|
3560
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
3957
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","add_options", 1, self ));
|
|
3561
3958
|
}
|
|
3562
3959
|
arg1 = (Worker *)(argp1);
|
|
3563
3960
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
3564
3961
|
if (!SWIG_IsOK(ecode2)) {
|
|
3565
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_worker_options_t","
|
|
3962
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_worker_options_t","add_options", 2, argv[0] ));
|
|
3566
3963
|
}
|
|
3567
3964
|
arg2 = (gearman_worker_options_t)(val2);
|
|
3568
|
-
|
|
3965
|
+
Worker_add_options(arg1,arg2);
|
|
3569
3966
|
return Qnil;
|
|
3570
3967
|
fail:
|
|
3571
3968
|
return Qnil;
|
|
3572
3969
|
}
|
|
3573
3970
|
|
|
3574
3971
|
|
|
3972
|
+
|
|
3973
|
+
/*
|
|
3974
|
+
Document-method: Gearman::Worker.remove_options
|
|
3975
|
+
|
|
3976
|
+
call-seq:
|
|
3977
|
+
remove_options(gearman_worker_options_t options)
|
|
3978
|
+
|
|
3979
|
+
An instance method.
|
|
3980
|
+
|
|
3981
|
+
*/
|
|
3575
3982
|
SWIGINTERN VALUE
|
|
3576
3983
|
_wrap_Worker_remove_options(int argc, VALUE *argv, VALUE self) {
|
|
3577
3984
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3586,21 +3993,31 @@ _wrap_Worker_remove_options(int argc, VALUE *argv, VALUE self) {
|
|
|
3586
3993
|
}
|
|
3587
3994
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
3588
3995
|
if (!SWIG_IsOK(res1)) {
|
|
3589
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
3996
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","remove_options", 1, self ));
|
|
3590
3997
|
}
|
|
3591
3998
|
arg1 = (Worker *)(argp1);
|
|
3592
3999
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
3593
4000
|
if (!SWIG_IsOK(ecode2)) {
|
|
3594
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_worker_options_t","
|
|
4001
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "gearman_worker_options_t","remove_options", 2, argv[0] ));
|
|
3595
4002
|
}
|
|
3596
4003
|
arg2 = (gearman_worker_options_t)(val2);
|
|
3597
|
-
|
|
4004
|
+
Worker_remove_options(arg1,arg2);
|
|
3598
4005
|
return Qnil;
|
|
3599
4006
|
fail:
|
|
3600
4007
|
return Qnil;
|
|
3601
4008
|
}
|
|
3602
4009
|
|
|
3603
4010
|
|
|
4011
|
+
|
|
4012
|
+
/*
|
|
4013
|
+
Document-method: Gearman::Worker.timeout
|
|
4014
|
+
|
|
4015
|
+
call-seq:
|
|
4016
|
+
timeout -> int
|
|
4017
|
+
|
|
4018
|
+
An instance method.
|
|
4019
|
+
|
|
4020
|
+
*/
|
|
3604
4021
|
SWIGINTERN VALUE
|
|
3605
4022
|
_wrap_Worker_timeout(int argc, VALUE *argv, VALUE self) {
|
|
3606
4023
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3625,6 +4042,16 @@ fail:
|
|
|
3625
4042
|
}
|
|
3626
4043
|
|
|
3627
4044
|
|
|
4045
|
+
|
|
4046
|
+
/*
|
|
4047
|
+
Document-method: Gearman::Worker.set_timeout
|
|
4048
|
+
|
|
4049
|
+
call-seq:
|
|
4050
|
+
set_timeout(int timeout)
|
|
4051
|
+
|
|
4052
|
+
An instance method.
|
|
4053
|
+
|
|
4054
|
+
*/
|
|
3628
4055
|
SWIGINTERN VALUE
|
|
3629
4056
|
_wrap_Worker_set_timeout(int argc, VALUE *argv, VALUE self) {
|
|
3630
4057
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3639,24 +4066,36 @@ _wrap_Worker_set_timeout(int argc, VALUE *argv, VALUE self) {
|
|
|
3639
4066
|
}
|
|
3640
4067
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
3641
4068
|
if (!SWIG_IsOK(res1)) {
|
|
3642
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
4069
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","set_timeout", 1, self ));
|
|
3643
4070
|
}
|
|
3644
4071
|
arg1 = (Worker *)(argp1);
|
|
3645
4072
|
ecode2 = SWIG_AsVal_int(argv[0], &val2);
|
|
3646
4073
|
if (!SWIG_IsOK(ecode2)) {
|
|
3647
|
-
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","
|
|
4074
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "int","set_timeout", 2, argv[0] ));
|
|
3648
4075
|
}
|
|
3649
4076
|
arg2 = (int)(val2);
|
|
3650
|
-
|
|
4077
|
+
Worker_set_timeout(arg1,arg2);
|
|
3651
4078
|
return Qnil;
|
|
3652
4079
|
fail:
|
|
3653
4080
|
return Qnil;
|
|
3654
4081
|
}
|
|
3655
4082
|
|
|
3656
4083
|
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
4084
|
+
|
|
4085
|
+
/*
|
|
4086
|
+
Document-method: Gearman::Worker.add_server
|
|
4087
|
+
|
|
4088
|
+
call-seq:
|
|
4089
|
+
add_server(char host, in_port_t port) -> int
|
|
4090
|
+
add_server(char host) -> int
|
|
4091
|
+
add_server -> int
|
|
4092
|
+
|
|
4093
|
+
An instance method.
|
|
4094
|
+
|
|
4095
|
+
*/
|
|
4096
|
+
SWIGINTERN VALUE
|
|
4097
|
+
_wrap_Worker_add_server__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
4098
|
+
Worker *arg1 = (Worker *) 0 ;
|
|
3660
4099
|
char *arg2 = (char *) 0 ;
|
|
3661
4100
|
in_port_t arg3 ;
|
|
3662
4101
|
void *argp1 = 0 ;
|
|
@@ -3674,20 +4113,20 @@ _wrap_Worker_add_server__SWIG_0(int argc, VALUE *argv, VALUE self) {
|
|
|
3674
4113
|
}
|
|
3675
4114
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
3676
4115
|
if (!SWIG_IsOK(res1)) {
|
|
3677
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
4116
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","add_server", 1, self ));
|
|
3678
4117
|
}
|
|
3679
4118
|
arg1 = (Worker *)(argp1);
|
|
3680
4119
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
3681
4120
|
if (!SWIG_IsOK(res2)) {
|
|
3682
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","
|
|
4121
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","add_server", 2, argv[0] ));
|
|
3683
4122
|
}
|
|
3684
4123
|
arg2 = (char *)(buf2);
|
|
3685
4124
|
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
|
|
3686
4125
|
if (!SWIG_IsOK(ecode3)) {
|
|
3687
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "in_port_t","
|
|
4126
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "in_port_t","add_server", 3, argv[1] ));
|
|
3688
4127
|
}
|
|
3689
4128
|
arg3 = (in_port_t)(val3);
|
|
3690
|
-
result = (gearman_return_t)
|
|
4129
|
+
result = (gearman_return_t)Worker_add_server__SWIG_0(arg1,(char const *)arg2,arg3);
|
|
3691
4130
|
vresult = SWIG_From_int((int)(result));
|
|
3692
4131
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
3693
4132
|
return vresult;
|
|
@@ -3714,15 +4153,15 @@ _wrap_Worker_add_server__SWIG_1(int argc, VALUE *argv, VALUE self) {
|
|
|
3714
4153
|
}
|
|
3715
4154
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
3716
4155
|
if (!SWIG_IsOK(res1)) {
|
|
3717
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
4156
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","add_server", 1, self ));
|
|
3718
4157
|
}
|
|
3719
4158
|
arg1 = (Worker *)(argp1);
|
|
3720
4159
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
3721
4160
|
if (!SWIG_IsOK(res2)) {
|
|
3722
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","
|
|
4161
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","add_server", 2, argv[0] ));
|
|
3723
4162
|
}
|
|
3724
4163
|
arg2 = (char *)(buf2);
|
|
3725
|
-
result = (gearman_return_t)
|
|
4164
|
+
result = (gearman_return_t)Worker_add_server__SWIG_1(arg1,(char const *)arg2);
|
|
3726
4165
|
vresult = SWIG_From_int((int)(result));
|
|
3727
4166
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
3728
4167
|
return vresult;
|
|
@@ -3745,10 +4184,10 @@ _wrap_Worker_add_server__SWIG_2(int argc, VALUE *argv, VALUE self) {
|
|
|
3745
4184
|
}
|
|
3746
4185
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
3747
4186
|
if (!SWIG_IsOK(res1)) {
|
|
3748
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
4187
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","add_server", 1, self ));
|
|
3749
4188
|
}
|
|
3750
4189
|
arg1 = (Worker *)(argp1);
|
|
3751
|
-
result = (gearman_return_t)
|
|
4190
|
+
result = (gearman_return_t)Worker_add_server__SWIG_2(arg1);
|
|
3752
4191
|
vresult = SWIG_From_int((int)(result));
|
|
3753
4192
|
return vresult;
|
|
3754
4193
|
fail:
|
|
@@ -3819,6 +4258,16 @@ fail:
|
|
|
3819
4258
|
}
|
|
3820
4259
|
|
|
3821
4260
|
|
|
4261
|
+
|
|
4262
|
+
/*
|
|
4263
|
+
Document-method: Gearman::Worker.add_servers
|
|
4264
|
+
|
|
4265
|
+
call-seq:
|
|
4266
|
+
add_servers(char servers) -> int
|
|
4267
|
+
|
|
4268
|
+
An instance method.
|
|
4269
|
+
|
|
4270
|
+
*/
|
|
3822
4271
|
SWIGINTERN VALUE
|
|
3823
4272
|
_wrap_Worker_add_servers(int argc, VALUE *argv, VALUE self) {
|
|
3824
4273
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3836,15 +4285,15 @@ _wrap_Worker_add_servers(int argc, VALUE *argv, VALUE self) {
|
|
|
3836
4285
|
}
|
|
3837
4286
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
3838
4287
|
if (!SWIG_IsOK(res1)) {
|
|
3839
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
4288
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","add_servers", 1, self ));
|
|
3840
4289
|
}
|
|
3841
4290
|
arg1 = (Worker *)(argp1);
|
|
3842
4291
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
3843
4292
|
if (!SWIG_IsOK(res2)) {
|
|
3844
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","
|
|
4293
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","add_servers", 2, argv[0] ));
|
|
3845
4294
|
}
|
|
3846
4295
|
arg2 = (char *)(buf2);
|
|
3847
|
-
result = (gearman_return_t)
|
|
4296
|
+
result = (gearman_return_t)Worker_add_servers(arg1,(char const *)arg2);
|
|
3848
4297
|
vresult = SWIG_From_int((int)(result));
|
|
3849
4298
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
3850
4299
|
return vresult;
|
|
@@ -3854,6 +4303,16 @@ fail:
|
|
|
3854
4303
|
}
|
|
3855
4304
|
|
|
3856
4305
|
|
|
4306
|
+
|
|
4307
|
+
/*
|
|
4308
|
+
Document-method: Gearman::Worker.register_function
|
|
4309
|
+
|
|
4310
|
+
call-seq:
|
|
4311
|
+
register_function(char function_name, uint32_t timeout=0) -> int
|
|
4312
|
+
|
|
4313
|
+
An instance method.
|
|
4314
|
+
|
|
4315
|
+
*/
|
|
3857
4316
|
SWIGINTERN VALUE
|
|
3858
4317
|
_wrap_Worker_register_function(int argc, VALUE *argv, VALUE self) {
|
|
3859
4318
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3874,22 +4333,22 @@ _wrap_Worker_register_function(int argc, VALUE *argv, VALUE self) {
|
|
|
3874
4333
|
}
|
|
3875
4334
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
3876
4335
|
if (!SWIG_IsOK(res1)) {
|
|
3877
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
4336
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","register_function", 1, self ));
|
|
3878
4337
|
}
|
|
3879
4338
|
arg1 = (Worker *)(argp1);
|
|
3880
4339
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
3881
4340
|
if (!SWIG_IsOK(res2)) {
|
|
3882
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","
|
|
4341
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","register_function", 2, argv[0] ));
|
|
3883
4342
|
}
|
|
3884
4343
|
arg2 = (char *)(buf2);
|
|
3885
4344
|
if (argc > 1) {
|
|
3886
4345
|
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
|
|
3887
4346
|
if (!SWIG_IsOK(ecode3)) {
|
|
3888
|
-
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint32_t","
|
|
4347
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint32_t","register_function", 3, argv[1] ));
|
|
3889
4348
|
}
|
|
3890
4349
|
arg3 = (uint32_t)(val3);
|
|
3891
4350
|
}
|
|
3892
|
-
result = (gearman_return_t)
|
|
4351
|
+
result = (gearman_return_t)Worker_register_function(arg1,(char const *)arg2,arg3);
|
|
3893
4352
|
vresult = SWIG_From_int((int)(result));
|
|
3894
4353
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
3895
4354
|
return vresult;
|
|
@@ -3899,8 +4358,18 @@ fail:
|
|
|
3899
4358
|
}
|
|
3900
4359
|
|
|
3901
4360
|
|
|
4361
|
+
|
|
4362
|
+
/*
|
|
4363
|
+
Document-method: Gearman::Worker.unregister_function
|
|
4364
|
+
|
|
4365
|
+
call-seq:
|
|
4366
|
+
unregister_function(char function_name) -> int
|
|
4367
|
+
|
|
4368
|
+
An instance method.
|
|
4369
|
+
|
|
4370
|
+
*/
|
|
3902
4371
|
SWIGINTERN VALUE
|
|
3903
|
-
|
|
4372
|
+
_wrap_Worker_unregister_function(int argc, VALUE *argv, VALUE self) {
|
|
3904
4373
|
Worker *arg1 = (Worker *) 0 ;
|
|
3905
4374
|
char *arg2 = (char *) 0 ;
|
|
3906
4375
|
void *argp1 = 0 ;
|
|
@@ -3916,15 +4385,15 @@ _wrap_Worker_unregister(int argc, VALUE *argv, VALUE self) {
|
|
|
3916
4385
|
}
|
|
3917
4386
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
3918
4387
|
if (!SWIG_IsOK(res1)) {
|
|
3919
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
4388
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","unregister_function", 1, self ));
|
|
3920
4389
|
}
|
|
3921
4390
|
arg1 = (Worker *)(argp1);
|
|
3922
4391
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
3923
4392
|
if (!SWIG_IsOK(res2)) {
|
|
3924
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","
|
|
4393
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","unregister_function", 2, argv[0] ));
|
|
3925
4394
|
}
|
|
3926
4395
|
arg2 = (char *)(buf2);
|
|
3927
|
-
result = (gearman_return_t)
|
|
4396
|
+
result = (gearman_return_t)Worker_unregister_function(arg1,(char const *)arg2);
|
|
3928
4397
|
vresult = SWIG_From_int((int)(result));
|
|
3929
4398
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
3930
4399
|
return vresult;
|
|
@@ -3934,6 +4403,16 @@ fail:
|
|
|
3934
4403
|
}
|
|
3935
4404
|
|
|
3936
4405
|
|
|
4406
|
+
|
|
4407
|
+
/*
|
|
4408
|
+
Document-method: Gearman::Worker.unregister_all
|
|
4409
|
+
|
|
4410
|
+
call-seq:
|
|
4411
|
+
unregister_all -> int
|
|
4412
|
+
|
|
4413
|
+
An instance method.
|
|
4414
|
+
|
|
4415
|
+
*/
|
|
3937
4416
|
SWIGINTERN VALUE
|
|
3938
4417
|
_wrap_Worker_unregister_all(int argc, VALUE *argv, VALUE self) {
|
|
3939
4418
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3947,10 +4426,10 @@ _wrap_Worker_unregister_all(int argc, VALUE *argv, VALUE self) {
|
|
|
3947
4426
|
}
|
|
3948
4427
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
3949
4428
|
if (!SWIG_IsOK(res1)) {
|
|
3950
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
4429
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","unregister_all", 1, self ));
|
|
3951
4430
|
}
|
|
3952
4431
|
arg1 = (Worker *)(argp1);
|
|
3953
|
-
result = (gearman_return_t)
|
|
4432
|
+
result = (gearman_return_t)Worker_unregister_all(arg1);
|
|
3954
4433
|
vresult = SWIG_From_int((int)(result));
|
|
3955
4434
|
return vresult;
|
|
3956
4435
|
fail:
|
|
@@ -3958,6 +4437,16 @@ fail:
|
|
|
3958
4437
|
}
|
|
3959
4438
|
|
|
3960
4439
|
|
|
4440
|
+
|
|
4441
|
+
/*
|
|
4442
|
+
Document-method: Gearman::Worker.grab_job
|
|
4443
|
+
|
|
4444
|
+
call-seq:
|
|
4445
|
+
grab_job -> Job
|
|
4446
|
+
|
|
4447
|
+
An instance method.
|
|
4448
|
+
|
|
4449
|
+
*/
|
|
3961
4450
|
SWIGINTERN VALUE
|
|
3962
4451
|
_wrap_Worker_grab_job(int argc, VALUE *argv, VALUE self) {
|
|
3963
4452
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -3975,13 +4464,23 @@ _wrap_Worker_grab_job(int argc, VALUE *argv, VALUE self) {
|
|
|
3975
4464
|
}
|
|
3976
4465
|
arg1 = (Worker *)(argp1);
|
|
3977
4466
|
result = (Job *)Worker_grabJob(arg1);
|
|
3978
|
-
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result),
|
|
4467
|
+
vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_gearman_job_st, 0 | 0 );
|
|
3979
4468
|
return vresult;
|
|
3980
4469
|
fail:
|
|
3981
4470
|
return Qnil;
|
|
3982
4471
|
}
|
|
3983
4472
|
|
|
3984
4473
|
|
|
4474
|
+
|
|
4475
|
+
/*
|
|
4476
|
+
Document-method: Gearman::Worker.add_function
|
|
4477
|
+
|
|
4478
|
+
call-seq:
|
|
4479
|
+
add_function(char function_name, gearman_callback worker_fn, uint32_t timeout=0) -> int
|
|
4480
|
+
|
|
4481
|
+
An instance method.
|
|
4482
|
+
|
|
4483
|
+
*/
|
|
3985
4484
|
SWIGINTERN VALUE
|
|
3986
4485
|
_wrap_Worker_add_function(int argc, VALUE *argv, VALUE self) {
|
|
3987
4486
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -4003,12 +4502,12 @@ _wrap_Worker_add_function(int argc, VALUE *argv, VALUE self) {
|
|
|
4003
4502
|
}
|
|
4004
4503
|
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
4005
4504
|
if (!SWIG_IsOK(res1)) {
|
|
4006
|
-
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","
|
|
4505
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","add_function", 1, self ));
|
|
4007
4506
|
}
|
|
4008
4507
|
arg1 = (Worker *)(argp1);
|
|
4009
4508
|
res2 = SWIG_AsCharPtrAndSize(argv[0], &buf2, NULL, &alloc2);
|
|
4010
4509
|
if (!SWIG_IsOK(res2)) {
|
|
4011
|
-
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","
|
|
4510
|
+
SWIG_exception_fail(SWIG_ArgError(res2), Ruby_Format_TypeError( "", "char const *","add_function", 2, argv[0] ));
|
|
4012
4511
|
}
|
|
4013
4512
|
arg2 = (char *)(buf2);
|
|
4014
4513
|
{
|
|
@@ -4018,11 +4517,11 @@ _wrap_Worker_add_function(int argc, VALUE *argv, VALUE self) {
|
|
|
4018
4517
|
if (argc > 2) {
|
|
4019
4518
|
ecode4 = SWIG_AsVal_unsigned_SS_int(argv[2], &val4);
|
|
4020
4519
|
if (!SWIG_IsOK(ecode4)) {
|
|
4021
|
-
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","
|
|
4520
|
+
SWIG_exception_fail(SWIG_ArgError(ecode4), Ruby_Format_TypeError( "", "uint32_t","add_function", 4, argv[2] ));
|
|
4022
4521
|
}
|
|
4023
4522
|
arg4 = (uint32_t)(val4);
|
|
4024
4523
|
}
|
|
4025
|
-
result = (gearman_return_t)
|
|
4524
|
+
result = (gearman_return_t)Worker_add_function(arg1,(char const *)arg2,arg3,arg4);
|
|
4026
4525
|
vresult = SWIG_From_int((int)(result));
|
|
4027
4526
|
if (alloc2 == SWIG_NEWOBJ) free((char*)buf2);
|
|
4028
4527
|
return vresult;
|
|
@@ -4032,6 +4531,16 @@ fail:
|
|
|
4032
4531
|
}
|
|
4033
4532
|
|
|
4034
4533
|
|
|
4534
|
+
|
|
4535
|
+
/*
|
|
4536
|
+
Document-method: Gearman::Worker.work
|
|
4537
|
+
|
|
4538
|
+
call-seq:
|
|
4539
|
+
work -> int
|
|
4540
|
+
|
|
4541
|
+
An instance method.
|
|
4542
|
+
|
|
4543
|
+
*/
|
|
4035
4544
|
SWIGINTERN VALUE
|
|
4036
4545
|
_wrap_Worker_work(int argc, VALUE *argv, VALUE self) {
|
|
4037
4546
|
Worker *arg1 = (Worker *) 0 ;
|
|
@@ -4057,9 +4566,327 @@ fail:
|
|
|
4057
4566
|
|
|
4058
4567
|
|
|
4059
4568
|
|
|
4569
|
+
/*
|
|
4570
|
+
Document-method: Gearman::Worker.echo
|
|
4571
|
+
|
|
4572
|
+
call-seq:
|
|
4573
|
+
echo(void workload) -> int
|
|
4574
|
+
|
|
4575
|
+
An instance method.
|
|
4576
|
+
|
|
4577
|
+
*/
|
|
4578
|
+
SWIGINTERN VALUE
|
|
4579
|
+
_wrap_Worker_echo(int argc, VALUE *argv, VALUE self) {
|
|
4580
|
+
Worker *arg1 = (Worker *) 0 ;
|
|
4581
|
+
void *arg2 = (void *) 0 ;
|
|
4582
|
+
size_t arg3 ;
|
|
4583
|
+
void *argp1 = 0 ;
|
|
4584
|
+
int res1 = 0 ;
|
|
4585
|
+
gearman_return_t result;
|
|
4586
|
+
VALUE vresult = Qnil;
|
|
4587
|
+
|
|
4588
|
+
if ((argc < 1) || (argc > 1)) {
|
|
4589
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
|
|
4590
|
+
}
|
|
4591
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_worker_st, 0 | 0 );
|
|
4592
|
+
if (!SWIG_IsOK(res1)) {
|
|
4593
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Worker *","echo", 1, self ));
|
|
4594
|
+
}
|
|
4595
|
+
arg1 = (Worker *)(argp1);
|
|
4596
|
+
{
|
|
4597
|
+
arg2 = STR2CSTR(argv[0]);
|
|
4598
|
+
arg3 = (size_t)RSTRING(argv[0])->len;
|
|
4599
|
+
}
|
|
4600
|
+
result = (gearman_return_t)Worker_echo(arg1,(void const *)arg2,arg3);
|
|
4601
|
+
vresult = SWIG_From_int((int)(result));
|
|
4602
|
+
return vresult;
|
|
4603
|
+
fail:
|
|
4604
|
+
return Qnil;
|
|
4605
|
+
}
|
|
4606
|
+
|
|
4607
|
+
|
|
4608
|
+
|
|
4609
|
+
/*
|
|
4610
|
+
Document-class: Gearman::GearmanJobSt
|
|
4611
|
+
|
|
4612
|
+
Proxy of C Gearman::GearmanJobSt struct
|
|
4613
|
+
|
|
4614
|
+
|
|
4615
|
+
*/
|
|
4616
|
+
swig_class SwigClassGearmanJobSt;
|
|
4617
|
+
|
|
4618
|
+
|
|
4619
|
+
/*
|
|
4620
|
+
Document-method: Gearman::GearmanJobSt.send_status
|
|
4621
|
+
|
|
4622
|
+
call-seq:
|
|
4623
|
+
send_status(uint32_t numerator, uint32_t denominator) -> int
|
|
4624
|
+
|
|
4625
|
+
An instance method.
|
|
4626
|
+
|
|
4627
|
+
*/
|
|
4628
|
+
SWIGINTERN VALUE
|
|
4629
|
+
_wrap_GearmanJobSt_send_status(int argc, VALUE *argv, VALUE self) {
|
|
4630
|
+
Job *arg1 = (Job *) 0 ;
|
|
4631
|
+
uint32_t arg2 ;
|
|
4632
|
+
uint32_t arg3 ;
|
|
4633
|
+
void *argp1 = 0 ;
|
|
4634
|
+
int res1 = 0 ;
|
|
4635
|
+
unsigned int val2 ;
|
|
4636
|
+
int ecode2 = 0 ;
|
|
4637
|
+
unsigned int val3 ;
|
|
4638
|
+
int ecode3 = 0 ;
|
|
4639
|
+
gearman_return_t result;
|
|
4640
|
+
VALUE vresult = Qnil;
|
|
4641
|
+
|
|
4642
|
+
if ((argc < 2) || (argc > 2)) {
|
|
4643
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 2)",argc); SWIG_fail;
|
|
4644
|
+
}
|
|
4645
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_job_st, 0 | 0 );
|
|
4646
|
+
if (!SWIG_IsOK(res1)) {
|
|
4647
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Job *","send_status", 1, self ));
|
|
4648
|
+
}
|
|
4649
|
+
arg1 = (Job *)(argp1);
|
|
4650
|
+
ecode2 = SWIG_AsVal_unsigned_SS_int(argv[0], &val2);
|
|
4651
|
+
if (!SWIG_IsOK(ecode2)) {
|
|
4652
|
+
SWIG_exception_fail(SWIG_ArgError(ecode2), Ruby_Format_TypeError( "", "uint32_t","send_status", 2, argv[0] ));
|
|
4653
|
+
}
|
|
4654
|
+
arg2 = (uint32_t)(val2);
|
|
4655
|
+
ecode3 = SWIG_AsVal_unsigned_SS_int(argv[1], &val3);
|
|
4656
|
+
if (!SWIG_IsOK(ecode3)) {
|
|
4657
|
+
SWIG_exception_fail(SWIG_ArgError(ecode3), Ruby_Format_TypeError( "", "uint32_t","send_status", 3, argv[1] ));
|
|
4658
|
+
}
|
|
4659
|
+
arg3 = (uint32_t)(val3);
|
|
4660
|
+
result = (gearman_return_t)Job_send_status(arg1,arg2,arg3);
|
|
4661
|
+
vresult = SWIG_From_int((int)(result));
|
|
4662
|
+
return vresult;
|
|
4663
|
+
fail:
|
|
4664
|
+
return Qnil;
|
|
4665
|
+
}
|
|
4666
|
+
|
|
4667
|
+
|
|
4668
|
+
|
|
4669
|
+
/*
|
|
4670
|
+
Document-method: Gearman::GearmanJobSt.send_fail
|
|
4671
|
+
|
|
4672
|
+
call-seq:
|
|
4673
|
+
send_fail -> int
|
|
4674
|
+
|
|
4675
|
+
An instance method.
|
|
4676
|
+
|
|
4677
|
+
*/
|
|
4678
|
+
SWIGINTERN VALUE
|
|
4679
|
+
_wrap_GearmanJobSt_send_fail(int argc, VALUE *argv, VALUE self) {
|
|
4680
|
+
Job *arg1 = (Job *) 0 ;
|
|
4681
|
+
void *argp1 = 0 ;
|
|
4682
|
+
int res1 = 0 ;
|
|
4683
|
+
gearman_return_t result;
|
|
4684
|
+
VALUE vresult = Qnil;
|
|
4685
|
+
|
|
4686
|
+
if ((argc < 0) || (argc > 0)) {
|
|
4687
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
4688
|
+
}
|
|
4689
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_job_st, 0 | 0 );
|
|
4690
|
+
if (!SWIG_IsOK(res1)) {
|
|
4691
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Job *","send_fail", 1, self ));
|
|
4692
|
+
}
|
|
4693
|
+
arg1 = (Job *)(argp1);
|
|
4694
|
+
result = (gearman_return_t)Job_send_fail(arg1);
|
|
4695
|
+
vresult = SWIG_From_int((int)(result));
|
|
4696
|
+
return vresult;
|
|
4697
|
+
fail:
|
|
4698
|
+
return Qnil;
|
|
4699
|
+
}
|
|
4700
|
+
|
|
4701
|
+
|
|
4702
|
+
|
|
4703
|
+
/*
|
|
4704
|
+
Document-method: Gearman::GearmanJobSt.job_handle
|
|
4705
|
+
|
|
4706
|
+
call-seq:
|
|
4707
|
+
job_handle -> char
|
|
4708
|
+
|
|
4709
|
+
An instance method.
|
|
4710
|
+
|
|
4711
|
+
*/
|
|
4712
|
+
SWIGINTERN VALUE
|
|
4713
|
+
_wrap_GearmanJobSt_job_handle(int argc, VALUE *argv, VALUE self) {
|
|
4714
|
+
Job *arg1 = (Job *) 0 ;
|
|
4715
|
+
void *argp1 = 0 ;
|
|
4716
|
+
int res1 = 0 ;
|
|
4717
|
+
char *result = 0 ;
|
|
4718
|
+
VALUE vresult = Qnil;
|
|
4719
|
+
|
|
4720
|
+
if ((argc < 0) || (argc > 0)) {
|
|
4721
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
4722
|
+
}
|
|
4723
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_job_st, 0 | 0 );
|
|
4724
|
+
if (!SWIG_IsOK(res1)) {
|
|
4725
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Job *","job_handle", 1, self ));
|
|
4726
|
+
}
|
|
4727
|
+
arg1 = (Job *)(argp1);
|
|
4728
|
+
result = (char *)Job_job_handle(arg1);
|
|
4729
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
|
4730
|
+
return vresult;
|
|
4731
|
+
fail:
|
|
4732
|
+
return Qnil;
|
|
4733
|
+
}
|
|
4734
|
+
|
|
4735
|
+
|
|
4736
|
+
|
|
4737
|
+
/*
|
|
4738
|
+
Document-method: Gearman::GearmanJobSt.function_name
|
|
4739
|
+
|
|
4740
|
+
call-seq:
|
|
4741
|
+
function_name -> char
|
|
4742
|
+
|
|
4743
|
+
An instance method.
|
|
4744
|
+
|
|
4745
|
+
*/
|
|
4746
|
+
SWIGINTERN VALUE
|
|
4747
|
+
_wrap_GearmanJobSt_function_name(int argc, VALUE *argv, VALUE self) {
|
|
4748
|
+
Job *arg1 = (Job *) 0 ;
|
|
4749
|
+
void *argp1 = 0 ;
|
|
4750
|
+
int res1 = 0 ;
|
|
4751
|
+
char *result = 0 ;
|
|
4752
|
+
VALUE vresult = Qnil;
|
|
4753
|
+
|
|
4754
|
+
if ((argc < 0) || (argc > 0)) {
|
|
4755
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
4756
|
+
}
|
|
4757
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_job_st, 0 | 0 );
|
|
4758
|
+
if (!SWIG_IsOK(res1)) {
|
|
4759
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Job *","function_name", 1, self ));
|
|
4760
|
+
}
|
|
4761
|
+
arg1 = (Job *)(argp1);
|
|
4762
|
+
result = (char *)Job_function_name(arg1);
|
|
4763
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
|
4764
|
+
return vresult;
|
|
4765
|
+
fail:
|
|
4766
|
+
return Qnil;
|
|
4767
|
+
}
|
|
4768
|
+
|
|
4769
|
+
|
|
4770
|
+
|
|
4771
|
+
/*
|
|
4772
|
+
Document-method: Gearman::GearmanJobSt.unique
|
|
4773
|
+
|
|
4774
|
+
call-seq:
|
|
4775
|
+
unique -> char
|
|
4776
|
+
|
|
4777
|
+
An instance method.
|
|
4778
|
+
|
|
4779
|
+
*/
|
|
4780
|
+
SWIGINTERN VALUE
|
|
4781
|
+
_wrap_GearmanJobSt_unique(int argc, VALUE *argv, VALUE self) {
|
|
4782
|
+
Job *arg1 = (Job *) 0 ;
|
|
4783
|
+
void *argp1 = 0 ;
|
|
4784
|
+
int res1 = 0 ;
|
|
4785
|
+
char *result = 0 ;
|
|
4786
|
+
VALUE vresult = Qnil;
|
|
4787
|
+
|
|
4788
|
+
if ((argc < 0) || (argc > 0)) {
|
|
4789
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
4790
|
+
}
|
|
4791
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_job_st, 0 | 0 );
|
|
4792
|
+
if (!SWIG_IsOK(res1)) {
|
|
4793
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Job *","unique", 1, self ));
|
|
4794
|
+
}
|
|
4795
|
+
arg1 = (Job *)(argp1);
|
|
4796
|
+
result = (char *)Job_unique(arg1);
|
|
4797
|
+
vresult = SWIG_FromCharPtr((const char *)result);
|
|
4798
|
+
return vresult;
|
|
4799
|
+
fail:
|
|
4800
|
+
return Qnil;
|
|
4801
|
+
}
|
|
4802
|
+
|
|
4803
|
+
|
|
4804
|
+
|
|
4805
|
+
/*
|
|
4806
|
+
Document-method: Gearman::GearmanJobSt.get_workload
|
|
4807
|
+
|
|
4808
|
+
call-seq:
|
|
4809
|
+
get_workload -> gearman_workload
|
|
4810
|
+
|
|
4811
|
+
An instance method.
|
|
4812
|
+
|
|
4813
|
+
*/
|
|
4814
|
+
SWIGINTERN VALUE
|
|
4815
|
+
_wrap_GearmanJobSt_get_workload(int argc, VALUE *argv, VALUE self) {
|
|
4816
|
+
Job *arg1 = (Job *) 0 ;
|
|
4817
|
+
void *argp1 = 0 ;
|
|
4818
|
+
int res1 = 0 ;
|
|
4819
|
+
gearman_workload result;
|
|
4820
|
+
VALUE vresult = Qnil;
|
|
4821
|
+
|
|
4822
|
+
if ((argc < 0) || (argc > 0)) {
|
|
4823
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
4824
|
+
}
|
|
4825
|
+
res1 = SWIG_ConvertPtr(self, &argp1,SWIGTYPE_p_gearman_job_st, 0 | 0 );
|
|
4826
|
+
if (!SWIG_IsOK(res1)) {
|
|
4827
|
+
SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "Job *","get_workload", 1, self ));
|
|
4828
|
+
}
|
|
4829
|
+
arg1 = (Job *)(argp1);
|
|
4830
|
+
result = Job_get_workload(arg1);
|
|
4831
|
+
{
|
|
4832
|
+
vresult = SWIG_FromCharPtrAndSize((&result)->workload, (&result)->workload_size);
|
|
4833
|
+
}
|
|
4834
|
+
return vresult;
|
|
4835
|
+
fail:
|
|
4836
|
+
return Qnil;
|
|
4837
|
+
}
|
|
4838
|
+
|
|
4839
|
+
|
|
4840
|
+
#ifdef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
4841
|
+
SWIGINTERN VALUE
|
|
4842
|
+
_wrap_GearmanJobSt_allocate(VALUE self) {
|
|
4843
|
+
#else
|
|
4844
|
+
SWIGINTERN VALUE
|
|
4845
|
+
_wrap_GearmanJobSt_allocate(int argc, VALUE *argv, VALUE self) {
|
|
4846
|
+
#endif
|
|
4847
|
+
|
|
4848
|
+
|
|
4849
|
+
VALUE vresult = SWIG_NewClassInstance(self, SWIGTYPE_p_gearman_job_st);
|
|
4850
|
+
#ifndef HAVE_RB_DEFINE_ALLOC_FUNC
|
|
4851
|
+
rb_obj_call_init(vresult, argc, argv);
|
|
4852
|
+
#endif
|
|
4853
|
+
return vresult;
|
|
4854
|
+
}
|
|
4855
|
+
|
|
4856
|
+
|
|
4857
|
+
|
|
4858
|
+
/*
|
|
4859
|
+
Document-method: Gearman::GearmanJobSt.new
|
|
4860
|
+
|
|
4861
|
+
call-seq:
|
|
4862
|
+
GearmanJobSt.new
|
|
4863
|
+
|
|
4864
|
+
Class constructor.
|
|
4865
|
+
|
|
4866
|
+
*/
|
|
4867
|
+
SWIGINTERN VALUE
|
|
4868
|
+
_wrap_new_GearmanJobSt(int argc, VALUE *argv, VALUE self) {
|
|
4869
|
+
Job *result = 0 ;
|
|
4870
|
+
|
|
4871
|
+
if ((argc < 0) || (argc > 0)) {
|
|
4872
|
+
rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
|
|
4873
|
+
}
|
|
4874
|
+
result = (Job *)calloc(1, sizeof(Job));
|
|
4875
|
+
DATA_PTR(self) = result;
|
|
4876
|
+
return self;
|
|
4877
|
+
fail:
|
|
4878
|
+
return Qnil;
|
|
4879
|
+
}
|
|
4880
|
+
|
|
4881
|
+
|
|
4882
|
+
SWIGINTERN void
|
|
4883
|
+
free_Job(Job *arg1) {
|
|
4884
|
+
free((char *) arg1);
|
|
4885
|
+
}
|
|
4886
|
+
|
|
4887
|
+
|
|
4060
4888
|
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
|
|
4061
4889
|
|
|
4062
|
-
static swig_type_info _swigt__p_Job = {"_p_Job", "Job *", 0, 0, (void*)0, 0};
|
|
4063
4890
|
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
|
|
4064
4891
|
static swig_type_info _swigt__p_gearman_callback = {"_p_gearman_callback", "gearman_callback *", 0, 0, (void*)0, 0};
|
|
4065
4892
|
static swig_type_info _swigt__p_gearman_client_options_t = {"_p_gearman_client_options_t", "enum gearman_client_options_t *|gearman_client_options_t *", 0, 0, (void*)0, 0};
|
|
@@ -4074,7 +4901,7 @@ static swig_type_info _swigt__p_gearman_con_st = {"_p_gearman_con_st", "struct g
|
|
|
4074
4901
|
static swig_type_info _swigt__p_gearman_con_state_t = {"_p_gearman_con_state_t", "enum gearman_con_state_t *|gearman_con_state_t *", 0, 0, (void*)0, 0};
|
|
4075
4902
|
static swig_type_info _swigt__p_gearman_job_options_t = {"_p_gearman_job_options_t", "enum gearman_job_options_t *|gearman_job_options_t *", 0, 0, (void*)0, 0};
|
|
4076
4903
|
static swig_type_info _swigt__p_gearman_job_priority_t = {"_p_gearman_job_priority_t", "enum gearman_job_priority_t *|gearman_job_priority_t *", 0, 0, (void*)0, 0};
|
|
4077
|
-
static swig_type_info _swigt__p_gearman_job_st = {"_p_gearman_job_st", "struct gearman_job_st *|gearman_job_st *", 0, 0, (void*)0, 0};
|
|
4904
|
+
static swig_type_info _swigt__p_gearman_job_st = {"_p_gearman_job_st", "Job *|struct gearman_job_st *|gearman_job_st *", 0, 0, (void*)0, 0};
|
|
4078
4905
|
static swig_type_info _swigt__p_gearman_magic_t = {"_p_gearman_magic_t", "enum gearman_magic_t *|gearman_magic_t *", 0, 0, (void*)0, 0};
|
|
4079
4906
|
static swig_type_info _swigt__p_gearman_options_t = {"_p_gearman_options_t", "enum gearman_options_t *|gearman_options_t *", 0, 0, (void*)0, 0};
|
|
4080
4907
|
static swig_type_info _swigt__p_gearman_packet_options_t = {"_p_gearman_packet_options_t", "enum gearman_packet_options_t *|gearman_packet_options_t *", 0, 0, (void*)0, 0};
|
|
@@ -4101,10 +4928,8 @@ static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned c
|
|
|
4101
4928
|
static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "uintptr_t *|uint_least32_t *|uint_fast32_t *|uint32_t *|unsigned int *|in_port_t *|uint_fast16_t *", 0, 0, (void*)0, 0};
|
|
4102
4929
|
static swig_type_info _swigt__p_unsigned_long_long = {"_p_unsigned_long_long", "uint_least64_t *|uint_fast64_t *|uint64_t *|unsigned long long *|uintmax_t *", 0, 0, (void*)0, 0};
|
|
4103
4930
|
static swig_type_info _swigt__p_unsigned_short = {"_p_unsigned_short", "unsigned short *|uint_least16_t *|uint16_t *", 0, 0, (void*)0, 0};
|
|
4104
|
-
static swig_type_info _swigt__p_void = {"_p_void", "do_return *|void *", 0, 0, (void*)0, 0};
|
|
4105
4931
|
|
|
4106
4932
|
static swig_type_info *swig_type_initial[] = {
|
|
4107
|
-
&_swigt__p_Job,
|
|
4108
4933
|
&_swigt__p_char,
|
|
4109
4934
|
&_swigt__p_gearman_callback,
|
|
4110
4935
|
&_swigt__p_gearman_client_options_t,
|
|
@@ -4146,10 +4971,8 @@ static swig_type_info *swig_type_initial[] = {
|
|
|
4146
4971
|
&_swigt__p_unsigned_int,
|
|
4147
4972
|
&_swigt__p_unsigned_long_long,
|
|
4148
4973
|
&_swigt__p_unsigned_short,
|
|
4149
|
-
&_swigt__p_void,
|
|
4150
4974
|
};
|
|
4151
4975
|
|
|
4152
|
-
static swig_cast_info _swigc__p_Job[] = { {&_swigt__p_Job, 0, 0, 0},{0, 0, 0, 0}};
|
|
4153
4976
|
static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
|
|
4154
4977
|
static swig_cast_info _swigc__p_gearman_callback[] = { {&_swigt__p_gearman_callback, 0, 0, 0},{0, 0, 0, 0}};
|
|
4155
4978
|
static swig_cast_info _swigc__p_gearman_client_options_t[] = { {&_swigt__p_gearman_client_options_t, 0, 0, 0},{0, 0, 0, 0}};
|
|
@@ -4191,10 +5014,8 @@ static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char,
|
|
|
4191
5014
|
static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
|
|
4192
5015
|
static swig_cast_info _swigc__p_unsigned_long_long[] = { {&_swigt__p_unsigned_long_long, 0, 0, 0},{0, 0, 0, 0}};
|
|
4193
5016
|
static swig_cast_info _swigc__p_unsigned_short[] = { {&_swigt__p_unsigned_short, 0, 0, 0},{0, 0, 0, 0}};
|
|
4194
|
-
static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
|
|
4195
5017
|
|
|
4196
5018
|
static swig_cast_info *swig_cast_initial[] = {
|
|
4197
|
-
_swigc__p_Job,
|
|
4198
5019
|
_swigc__p_char,
|
|
4199
5020
|
_swigc__p_gearman_callback,
|
|
4200
5021
|
_swigc__p_gearman_client_options_t,
|
|
@@ -4236,7 +5057,6 @@ static swig_cast_info *swig_cast_initial[] = {
|
|
|
4236
5057
|
_swigc__p_unsigned_int,
|
|
4237
5058
|
_swigc__p_unsigned_long_long,
|
|
4238
5059
|
_swigc__p_unsigned_short,
|
|
4239
|
-
_swigc__p_void,
|
|
4240
5060
|
};
|
|
4241
5061
|
|
|
4242
5062
|
|
|
@@ -4744,13 +5564,28 @@ SWIGEXPORT void Init_gearman(void) {
|
|
|
4744
5564
|
rb_define_method(SwigClassWorker.klass, "add_server", _wrap_Worker_add_server, -1);
|
|
4745
5565
|
rb_define_method(SwigClassWorker.klass, "add_servers", _wrap_Worker_add_servers, -1);
|
|
4746
5566
|
rb_define_method(SwigClassWorker.klass, "register_function", _wrap_Worker_register_function, -1);
|
|
4747
|
-
rb_define_method(SwigClassWorker.klass, "
|
|
5567
|
+
rb_define_method(SwigClassWorker.klass, "unregister_function", _wrap_Worker_unregister_function, -1);
|
|
4748
5568
|
rb_define_method(SwigClassWorker.klass, "unregister_all", _wrap_Worker_unregister_all, -1);
|
|
4749
5569
|
rb_define_method(SwigClassWorker.klass, "grab_job", _wrap_Worker_grab_job, -1);
|
|
4750
5570
|
rb_define_method(SwigClassWorker.klass, "add_function", _wrap_Worker_add_function, -1);
|
|
4751
5571
|
rb_define_method(SwigClassWorker.klass, "work", _wrap_Worker_work, -1);
|
|
5572
|
+
rb_define_method(SwigClassWorker.klass, "echo", _wrap_Worker_echo, -1);
|
|
4752
5573
|
SwigClassWorker.mark = 0;
|
|
4753
5574
|
SwigClassWorker.destroy = (void (*)(void *)) free_Worker;
|
|
4754
5575
|
SwigClassWorker.trackObjects = 0;
|
|
5576
|
+
|
|
5577
|
+
SwigClassGearmanJobSt.klass = rb_define_class_under(mGearman, "GearmanJobSt", rb_cObject);
|
|
5578
|
+
SWIG_TypeClientData(SWIGTYPE_p_gearman_job_st, (void *) &SwigClassGearmanJobSt);
|
|
5579
|
+
rb_define_alloc_func(SwigClassGearmanJobSt.klass, _wrap_GearmanJobSt_allocate);
|
|
5580
|
+
rb_define_method(SwigClassGearmanJobSt.klass, "initialize", _wrap_new_GearmanJobSt, -1);
|
|
5581
|
+
rb_define_method(SwigClassGearmanJobSt.klass, "send_status", _wrap_GearmanJobSt_send_status, -1);
|
|
5582
|
+
rb_define_method(SwigClassGearmanJobSt.klass, "send_fail", _wrap_GearmanJobSt_send_fail, -1);
|
|
5583
|
+
rb_define_method(SwigClassGearmanJobSt.klass, "job_handle", _wrap_GearmanJobSt_job_handle, -1);
|
|
5584
|
+
rb_define_method(SwigClassGearmanJobSt.klass, "function_name", _wrap_GearmanJobSt_function_name, -1);
|
|
5585
|
+
rb_define_method(SwigClassGearmanJobSt.klass, "unique", _wrap_GearmanJobSt_unique, -1);
|
|
5586
|
+
rb_define_method(SwigClassGearmanJobSt.klass, "get_workload", _wrap_GearmanJobSt_get_workload, -1);
|
|
5587
|
+
SwigClassGearmanJobSt.mark = 0;
|
|
5588
|
+
SwigClassGearmanJobSt.destroy = (void (*)(void *)) free_Job;
|
|
5589
|
+
SwigClassGearmanJobSt.trackObjects = 0;
|
|
4755
5590
|
}
|
|
4756
5591
|
|