|
pazpar2
1.6.30
|
#include "normalize_cache.h"#include <yaz/nmem.h>#include <yaz/mutex.h>#include <yaz/ccl.h>#include "charsets.h"#include "http.h"#include "database.h"#include "host.h"Go to the source code of this file.
Data Structures | |
| struct | conf_metadata |
| struct | conf_sortkey |
| struct | conf_service |
| struct | conf_server |
Functions | |
| int | conf_service_metadata_field_id (struct conf_service *service, const char *name) |
| int | conf_service_sortkey_field_id (struct conf_service *service, const char *name) |
| struct conf_config * | config_create (const char *fname, int verbose) |
| void | config_destroy (struct conf_config *config) |
| void | config_process_events (struct conf_config *config) |
| void | info_services (struct conf_server *server, WRBUF w) |
| struct conf_service * | locate_service (struct conf_server *server, const char *service_id) |
| struct conf_service * | service_create (struct conf_server *server, xmlNode *node) |
| void | service_incref (struct conf_service *service) |
| void | service_destroy (struct conf_service *service) |
| int | config_start_listeners (struct conf_config *conf, const char *listener_override, const char *record_fname) |
| void | config_stop_listeners (struct conf_config *conf) |
| WRBUF | conf_get_fname (struct conf_config *config, const char *fname) |
| enum conf_metadata_merge |
| Metadata_merge_no | |
| Metadata_merge_unique | |
| Metadata_merge_longest | |
| Metadata_merge_range | |
| Metadata_merge_all | |
| Metadata_merge_first |
Definition at line 39 of file pazpar2_config.h.
Definition at line 63 of file pazpar2_config.h.
| enum conf_metadata_type |
Definition at line 33 of file pazpar2_config.h.
| enum conf_setting_type |
Definition at line 57 of file pazpar2_config.h.
| enum conf_sortkey_type |
| Metadata_sortkey_relevance | |
| Metadata_sortkey_numeric | |
| Metadata_sortkey_skiparticle | |
| Metadata_sortkey_string | |
| Metadata_sortkey_position |
Definition at line 48 of file pazpar2_config.h.
| WRBUF conf_get_fname | ( | struct conf_config * | config, |
| const char * | fname | ||
| ) |
Definition at line 930 of file pazpar2_config.c.
References conf_dir_path().
Referenced by normalize_record_create().
| int conf_service_metadata_field_id | ( | struct conf_service * | service, |
| const char * | name | ||
| ) |
Definition at line 199 of file pazpar2_config.c.
References conf_service::metadata, and conf_service::num_metadata.
Referenced by check_limit_local(), ingest_to_cluster(), and session_check_cluster_limit().
| int conf_service_sortkey_field_id | ( | struct conf_service * | service, |
| const char * | name | ||
| ) |
Definition at line 213 of file pazpar2_config.c.
References conf_service::num_sortkeys, and conf_service::sortkeys.
|
read |
Definition at line 1012 of file pazpar2_config.c.
References conf_config::confdir, config_destroy(), conf_config::database_hosts, database_hosts_create(), conf_config::iochan_man, conf_config::nmem, conf_config::no_threads, parse_config(), and conf_config::servers.
Referenced by sc_main().
| void config_destroy | ( | struct conf_config * | config | ) |
Definition at line 1090 of file pazpar2_config.c.
References conf_config::confdir, conf_config::database_hosts, database_hosts_destroy(), conf_config::iochan_man, iochan_man_destroy(), conf_server::next, conf_config::nmem, server_destroy(), and conf_config::servers.
Referenced by child_handler(), config_create(), and sc_main().
| void config_process_events | ( | struct conf_config * | config | ) |
Definition at line 1115 of file pazpar2_config.c.
References http_mutex_init(), conf_config::iochan_man, iochan_man_events(), conf_service::mutex, conf_service::next, conf_server::next, pazpar2_mutex_create(), conf_config::servers, and conf_server::service.
Referenced by child_handler().
| int config_start_listeners | ( | struct conf_config * | conf, |
| const char * | listener_override, | ||
| const char * | record_fname | ||
| ) |
Definition at line 1133 of file pazpar2_config.c.
References conf_server::host, http_init(), http_set_proxyaddr(), conf_config::iochan_man, conf_server::iochan_man, iochan_man_create(), conf_server::next, conf_config::no_threads, conf_server::port, conf_server::proxy_host, conf_server::proxy_port, and conf_config::servers.
Referenced by sc_main().
| void config_stop_listeners | ( | struct conf_config * | conf | ) |
Definition at line 1108 of file pazpar2_config.c.
References http_close_server(), conf_server::next, and conf_config::servers.
Referenced by sc_stop().
| void info_services | ( | struct conf_server * | server, |
| WRBUF | w | ||
| ) |
Definition at line 952 of file pazpar2_config.c.
References conf_service::id, conf_service::next, and conf_server::service.
Referenced by cmd_info().
|
read |
Definition at line 938 of file pazpar2_config.c.
References conf_service::id, conf_service::next, conf_server::service, and service_incref().
Referenced by cmd_init().
|
read |
Definition at line 765 of file pazpar2_config.c.
References inherit_server_settings(), conf_service::mutex, pazpar2_mutex_create(), and service_create_static().
Referenced by cmd_init().
| void service_destroy | ( | struct conf_service * | service | ) |
Definition at line 238 of file pazpar2_config.c.
References conf_service::ccl_bibset, conf_service::charsets, conf_service::mutex, conf_service::nmem, pazpar2_decref(), pp2_charset_fact_destroy(), conf_service::ref_count, and service_xslt_destroy().
Referenced by server_destroy(), and session_destroy().
| void service_incref | ( | struct conf_service * | service | ) |
Definition at line 253 of file pazpar2_config.c.
References conf_service::mutex, pazpar2_incref(), and conf_service::ref_count.
Referenced by locate_service().
1.8.1.2