dnxWLM.h File Reference

Types and definitions for work load manager thread. More...

Go to the source code of this file.

Data Structures

struct  DnxWlmCfgData
 A WLM configuration data structure - passed to dnxWlmCreate. More...
struct  DnxWlmStats
 A structure for returning WLM statistics to a caller. More...
struct  DnxWlm
 An abstract data type - the external representation of a WLM object. More...

Functions

void dnxWlmResetStats (DnxWlm *wlm)
 Reset all WLM statistics counters.
void dnxWlmGetStats (DnxWlm *wlm, DnxWlmStats *wsp)
 Return a snapshot of WLM statistics.
int dnxWlmReconfigure (DnxWlm *wlm, DnxWlmCfgData *cfg)
 Reconfigure an existing Work Load Manager object.
int dnxWlmCreate (DnxWlmCfgData *cfg, DnxWlm **pwlm)
 Creates a new Work Load Manager object.
void dnxWlmDestroy (DnxWlm *wlm)
 The main thread routine for the work load manager.


Detailed Description

Types and definitions for work load manager thread.

Author:
Robert W. Ingraham (dnx-devel@lists.sourceforge.net)
Attention:
Please submit patches to http://dnx.sourceforge.net

Definition in file dnxWLM.h.


Function Documentation

int dnxWlmCreate ( DnxWlmCfgData cfg,
DnxWlm **  pwlm 
)

Creates a new Work Load Manager object.

Parameters:
[in] cfg - a reference to the WLM configuration data structure.
[out] pwlm - the address of storage for the returned WLM object.
Returns:
Zero on success, or a non-zero error value.

Definition at line 676 of file dnxWLM.c.

References iDnxWlm::cfg, DnxWlmCfgData::collectorUrl, DnxWlmCfgData::dispatcherUrl, DNX_ERR_MEMORY, DNX_OK, DNX_PT_MUTEX_DESTROY, DNX_PT_MUTEX_INIT, DNX_PT_MUTEX_LOCK, DNX_PT_MUTEX_UNLOCK, dnxErrorString(), dnxLog(), growThreadPool(), iDnxWlm::minexectm, iDnxWlm::mutex, iDnxWlm::myipaddr, iDnxWlm::myipaddrstr, iDnxWlm::pool, DnxWlmCfgData::poolInitial, DnxWlmCfgData::poolMax, DnxWlmCfgData::poolMin, iDnxWlm::poolsz, iDnxWlm::threads, xfree, xmalloc, and xstrdup.

Referenced by main().

void dnxWlmDestroy ( DnxWlm wlm  ) 

void dnxWlmGetStats ( DnxWlm wlm,
DnxWlmStats wsp 
)

int dnxWlmReconfigure ( DnxWlm wlm,
DnxWlmCfgData cfg 
)

Reconfigure an existing Work Load Manager object.

Parameters:
[in] wlm - the work load manager object to be reconfigured.
[in] cfg - the new configuration parameters.
Returns:
Zero on success, or a non-zero error value.

Definition at line 620 of file dnxWLM.c.

References iDnxWlm::cfg, DNX_ERR_MEMORY, DNX_PT_MUTEX_LOCK, DNX_PT_MUTEX_UNLOCK, dnxCancelableSleep(), logConfigChanges(), DnxWlmCfgData::maxResults, DnxWlmCfgData::maxRetries, iDnxWlm::mutex, DnxWlmCfgData::pollInterval, iDnxWlm::pool, DnxWlmCfgData::poolGrow, DnxWlmCfgData::poolInitial, DnxWlmCfgData::poolMax, DnxWlmCfgData::poolMin, iDnxWlm::poolsz, DnxWlmCfgData::reqTimeout, DnxWlmCfgData::showNodeAddr, DnxWlmCfgData::shutdownGrace, iDnxWlm::threads, DnxWlmCfgData::ttlBackoff, and xrealloc.

void dnxWlmResetStats ( DnxWlm wlm  ) 


Generated on Tue Apr 13 15:48:07 2010 for DNX by  doxygen 1.5.6