glossary.rst 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. .. _glossary:
  2. Glossary
  3. ========
  4. .. glossary::
  5. client
  6. A client submits work in the form of a task, :c:type:`gearman_task_st` to a Gearman server. Client are represented by :c:type:`gearman_client_st`.
  7. worker
  8. Responds to tasks that originate from a client. A Gearman server transports the requests.
  9. task
  10. Client requests, they are represented by :c:type:`gearman_task_st`. Each task is assigned a job handle, :c:type:`gearman_job_handle_t`, by the server.
  11. job
  12. A job represents a task once it is sent to worker. It is represented as :c:type:`gearman_job_st`.
  13. function
  14. A "subprogram" that takes a set of parameters and returns a result (or just just a status). Functions are defined for workers.
  15. reducer
  16. A function that takes a piece of data from mapper and returns a value that will be sent to an aggregator function. Any function can be a reducer.
  17. mapper
  18. Mapper functions take incoming data and "map" it out to hosts. The "map" typically is a function that splits up the incoming work. The function that receives the mapped work is the reducer. Work is collected from the reducer and given to an aggregator function.
  19. aggregator
  20. A function which takes data and compiles it into a single return value. Aggregator functions are defined by :c:type:`gearman_aggregator_fn`.
  21. context
  22. Context are user supplied variables/structures that can be attached to :c:type:`gearman_worker_st`, :c:type:`gearman_client_st`, :c:type:`gearman_task_st`, :c:type:`gearman_job_st`, and similar objects that are passed as opaque objects that the library will ignore (i.e. they are there for developers to use to store state).