Gearman Public API Documentation

HTTP Protocol Declarations
[Protocol Plugins]

Functions

gearman_return_t gearmand_protocol_http_conf (gearman_conf_st *conf)
gearman_return_t gearmand_protocol_http_init (gearmand_st *gearmand, gearman_conf_st *conf)
gearman_return_t gearmand_protocol_http_deinit (gearmand_st *gearmand)

Detailed Description

This module provides a simple HTTP interface into the Gearman job server. It is also meant to serve as an example of how other protocols can plug into the server. This module will ignore all headers except:

Content-Length: SIZE Connection: Keep-Alive X-Gearman-Unique: UNIQUE_KEY X-Gearman-Background: true X-Gearman-Priority: HIGH | LOW

All HTTP requests are translated into SUBMIT_JOB requests, and only WORK_COMPLETE, WORK_FAIL, and JOB_CREATED responses are returned. JOB_CREATED packet are only sent back if the "X-Gearman-Background: true" header is given.


Function Documentation

gearman_return_t gearmand_protocol_http_conf ( gearman_conf_st conf  ) 

Get module configuration options.

gearman_return_t gearmand_protocol_http_init ( gearmand_st gearmand,
gearman_conf_st conf 
)

Initialize the HTTP protocol module.

gearman_return_t gearmand_protocol_http_deinit ( gearmand_st gearmand  ) 

De-initialize the HTTP protocol module.

Generated on Mon Jun 14 15:58:44 2010 by  doxygen 1.6.3