Changeset 10996


Ignore:
Timestamp:
06/10/11 21:40:22 (13 years ago)
Author:
ogrimm
Message:
History allows to exclude services
Location:
fact/Evidence
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • fact/Evidence/Doc/Evidence.tex

    r10280 r10996  
    300300\lstinline|minchange| & Minimum absolute change necessary for a service to be added to the history buffer. The format is \lstinline|ServiceName:MinChange|. This is only meaningful for services that represent numbers or number arrays. For an array, the difference of the sum of the absolute values of all elements is compared to \lstinline|MinChange|.\\
    301301\lstinline|maxsize_kb| & Maximum size of a single history buffer in kByte. Default value is 2000.\\
    302 \lstinline|numentries| & Numer of entries that a history buffer should hold, provided its size does not exceed the defined maximum. Default value is 1000. For DIM services of varying size, buffer sizes are recalculated at each update and never shrink.\\[1ex]
     302\lstinline|numentries| & Numer of entries that a history buffer should hold, provided its size does not exceed the defined maximum. Default value is 1000. For DIM services of varying size, buffer sizes are recalculated at each update and never shrink.\\
     303\lstinline|exclude| & Services to exclude.\\[1ex]
    303304\multicolumn{2}{l}{\textbf{Remote procedure call}} \\
    304305\lstinline|ServiceHistory Srvc| & Returns the history buffer of the given service if available, otherwise the response will be empty (zero bytes). If the buffer is not currently in memory because the corresponding service is not available, it will be searched for on disk.
  • fact/Evidence/History.cc

    r253 r10996  
    7373  GetConfig("maxsize_kb", DEFAULT_MAX_SIZE_KB);
    7474  GetConfig("numentries", DEFAULT_NUM_ENTRIES);
     75  GetConfig("exclude", "");
    7576
    7677  // Subscribe to top-level server list
     
    258259void History::AddService(string Name, const char *Format) {
    259260
    260   // Return if already subscribed to this service
    261   if (Map.count(Name) != 0) return;
     261  // Return if already subscribed to this service or if excluded
     262  if (Map.count(Name) != 0 || GetConfig("exclude").find(Name) != string::npos) return;
    262263
    263264  // Create new service subscription
  • fact/Evidence/readme.txt

    r10143 r10996  
    5050                        Non-blocking configuration request with default value was not working.
    5151                        Signal handler calls abort() if invoked three times or more.
     5210/6/2011       Services can be excluded from History buffer (mainly for large event data services)
Note: See TracChangeset for help on using the changeset viewer.