#include "dnxJobList.h"
#include "dnxTransport.h"
Go to the source code of this file.
Data Structures | |
struct | DnxCollector |
Abstract data type for the DNX job results collector. More... | |
Functions | |
DnxChannel * | dnxCollectorGetChannel (DnxCollector *coll) |
Return a reference to the collector channel object. | |
int | dnxCollectorCreate (char *chname, char *collurl, DnxJobList *joblist, DnxCollector **pcoll) |
Create a new collector object. | |
void | dnxCollectorDestroy (DnxCollector *coll) |
Destroy an existing collector object. |
The purpose of this thread is to collect service check completion results from the worker nodes. When a service check result is collected, this thread dequeues the service check from the Jobs queue and posts the result to the existing Nagios service_result_buffer.
Definition in file dnxCollector.h.
int dnxCollectorCreate | ( | char * | chname, | |
char * | collurl, | |||
DnxJobList * | joblist, | |||
DnxCollector ** | pcoll | |||
) |
Create a new collector object.
[in] | chname | - the name of the collect channel. |
[in] | collurl | - the collect channel URL. |
[in] | joblist | - a pointer to the global job list object. |
[out] | pcoll | - the address of storage for the return of the new collector object. |
Definition at line 133 of file dnxCollector.c.
void dnxCollectorDestroy | ( | DnxCollector * | coll | ) |
Destroy an existing collector object.
[in] | coll | - a pointer to the collector object to be destroyed. |
Definition at line 190 of file dnxCollector.c.
DnxChannel* dnxCollectorGetChannel | ( | DnxCollector * | coll | ) |
Return a reference to the collector channel object.
[in] | coll | - the collector whose dispatch channel should be returned. |
Definition at line 128 of file dnxCollector.c.