FountainServer.cpp File Reference

FountainServer method implementations. More...

#include "define.h"
#include "FountainServer.h"
#include "ServerMessage.h"
#include "FountainErrors.h"
#include "FountainWireProt.h"
#include "NodeID.h"
#include "Hostname.h"
#include "Lock.h"
#include "Timer.h"
#include "Asserter.h"
#include "Enforce.h"
#include "LokiInclude.h"
#include <bamboo/ConfigReader.h>
#include <bamboo/ServiceDir.h>
#include <bamboo/qLog.h>
#include <bamboo/TypeConvert.h>
#include <cmath>
#include <string>
#include <sstream>
#include <vector>
#include <map>
#include <utility>
#include <csignal>
#include <functional>
#include <cstddef>
#include <stdexcept>
#include <cerrno>

Include dependency graph for FountainServer.cpp:

Go to the source code of this file.

Functions

void Decrement (unsigned int &x)
 Decrements the parameter by 1.
void Increment (unsigned int &x)
 Increments the parameter by 1.
void reloadConfigFile (int signalNumber=-1)
 reloads the config file
void reloadConfigFile (int signalNumber)

Variables

unsigned int clientTimeout = 10
 //! The number of seconds between sending node query request messages to the master Fountain node
unsigned int nodeUpdateInterval = 15
 The number of seconds that can expire before a NodeData object's state is changed to down.
unsigned int totalRequests = 0
 Total number of requests processed.
unsigned int totalMalformedRequests = 0
 Total number of malformed requests processed, ex: incorrect XML or a missing XML element in the request.
unsigned int adminRequests = 0
 Total number of administrative requests processed.
unsigned int adminMalformedRequests = 0
 Total number of malformed administrative requests processed, ex: user not authorized to administer.
unsigned int nodeMonitorRequests = 0
 Total number of node monitor requests processed.
unsigned int nodeMonitorMalformedRequests = 0
 Total number of malformed node monitor requests processed, ex: incorrect get element.
sigaction sighupHandlerAction


Detailed Description

FountainServer method implementations.

Definition in file FountainServer.cpp.


Function Documentation

void @0::Decrement unsigned int &  x  )  [static]
 

Decrements the parameter by 1.

Parameters:
[in,out] x The unsigned integer to decrement

Definition at line 101 of file FountainServer.cpp.

void @0::Increment unsigned int &  x  )  [static]
 

Increments the parameter by 1.

Parameters:
[in,out] x The unsigned integer to increment

Definition at line 107 of file FountainServer.cpp.

Referenced by FountainServer::handleClientRequest().

void @0::reloadConfigFile int  signalNumber = -1  )  [static]
 

reloads the config file

Parameters:
[in] signalNumber The signal number caught when handling a SIGHUP signal

Referenced by FountainServer::FountainServer(), and FountainServer::handleAdmin().


Generated on Sat Oct 21 22:51:50 2006 for Fountain by  doxygen 1.4.6