Go to the documentation of this file.
7 #ifndef CATALOG_QUERY_H
8 #define CATALOG_QUERY_H
17 #define CATALOG_HOST_DEFAULT "catalog.cse.nd.edu,backup-catalog.cse.nd.edu"
18 #define CATALOG_PORT_DEFAULT 9097
20 #define CATALOG_HOST (getenv("CATALOG_HOST") ? getenv("CATALOG_HOST") : CATALOG_HOST_DEFAULT )
21 #define CATALOG_PORT (getenv("CATALOG_PORT") ? atoi(getenv("CATALOG_PORT")) : CATALOG_PORT_DEFAULT )
struct catalog_query * catalog_query_create(const char *hosts, struct jx *filter_expr, time_t stoptime)
Create a catalog query.
int catalog_query_send_update(const char *hosts, const char *text, catalog_update_flags_t flags)
Send update text to the given hosts hosts is a comma delimited list of hosts, each of which can be ho...
struct jx * catalog_query_read(struct catalog_query *q, time_t stoptime)
Read the next object from a query.
void catalog_query_delete(struct catalog_query *q)
Delete a completed query object.
@ CATALOG_UPDATE_CONDITIONAL
Fail if UDP is selected and update is too large to send.
Definition: catalog_query.h:29
JX value representing any expression type.
Definition: jx.h:117
@ CATALOG_UPDATE_BACKGROUND
Send update via a background process if TCP is selected.
Definition: catalog_query.h:28
catalog_update_flags_t
Catalog update control flags.
Definition: catalog_query.h:27