#include "dnxServerMain.h"
#include "dnxJobList.h"
#include "dnxTransport.h"
Go to the source code of this file.
Data Structures | |
struct | DnxDispatcher |
Abstract data type for the DNX job dispatcher. More... | |
Functions | |
int | dnxDispatcherCreate (char *chname, char *url, DnxJobList *joblist, DnxDispatcher **pdisp) |
Create a new dispatcher object. | |
DnxChannel * | dnxDispatcherGetChannel (DnxDispatcher *disp) |
Return the internal comm channel used by the dispatcher. | |
void | dnxDispatcherDestroy (DnxDispatcher *disp) |
Destroy an existing dispatcher object. |
The purpose of this thread is to dispatch service check jobs to the registered worker nodes for execution. It accomplishes this by accepting work node registrations and then dispatching service check jobs to registered worker nodes using a weighted-round-robin algorithm. The algorithm's weighting is based upon the number of jobs-per-second throughput rating of each worker node.
Definition in file dnxDispatcher.h.
int dnxDispatcherCreate | ( | char * | chname, | |
char * | url, | |||
DnxJobList * | joblist, | |||
DnxDispatcher ** | pdisp | |||
) |
Create a new dispatcher object.
[in] | chname | - the name of the dispatch channel. |
[in] | url | - the dispatcher channel url. |
[in] | joblist | - a pointer to the global job list object. |
[out] | pdisp | - the address of storage for the return of the new dispatcher object. |
Definition at line 177 of file dnxDispatcher.c.
void dnxDispatcherDestroy | ( | DnxDispatcher * | disp | ) |
Destroy an existing dispatcher object.
[in] | disp | - a pointer to the dispatcher object to be destroyed. |
Definition at line 239 of file dnxDispatcher.c.
DnxChannel* dnxDispatcherGetChannel | ( | DnxDispatcher * | disp | ) |
Return the internal comm channel used by the dispatcher.
This method exists so the registrar can send a job on the same socket from which it received a job request.
[in] | disp | - the dispatcher from which to retrieve the channel. |
disp
. Definition at line 172 of file dnxDispatcher.c.