.

CacheServiceConfig

Definition

 
typedef struct CacheServiceConfig
{
    ServiceErrorHandler errorHandler;
    long                errorThreshold; 
    long                priority; 
    unsigned long       sleepTime;
    unsigned long       refreshInterval;
} CacheServiceConfig;

  Required Header: apputil.h
Change History: Added in 03.04.11

Description

CacheServiceConfig is the configuration structure used to configure CacheService objects.

Member Description
errorHandler

The member function to handle MPI errors the CacheService object encounters.

If errorHandler is NULL, then the CacheService object thread will treat all MPI errors as non-fatal, only stopping updating the cache when the number of errors encountered exceeds errorThreshold.

errorThreshold

The error threshold of the CacheService object.

If the number of errors the CacheService object encounters exceeds errorThreshold, then the CacheService object thread will exit immediately and no longer update the MPI controller status cache.

If errorThreshold is -1, then the CacheService object thread will only exit when errorHandler returns TRUE.

priority The thread priority to run the CacheService thread.
sleepTime

The sleep time between when the Controller’s status cache is successfully updated and the next update of the cache is requested.

A value of zero will only increase the client’s CPU usage by a small amount because the thread sleeps while waiting for a response from the server. However, a value of zero will cause the server to approach maximum CPU usage and consequently may cause other client’s threads to wait longer for responses from the server.

refreshInterval The time interval used to configure the Controller’s status cache interval.

 

See Also

CacheService Object Overview | CacheServiceConfigDEFAULT | CacheServiceCreate | CacheServiceConfigGet | CacheServiceConfigSet

 

       Legal Notice  |  Tech Email  |  Feedback
      
Copyright ©
2001-2021 Motion Engineering