00001
00002
00003
00004
00005
00006
00012 #ifndef FOUNTAIN_DEFINE_H__
00013 #define FOUNTAIN_DEFINE_H__
00014
00015
00016 #ifdef HAVE_CONFIG_H
00017 # ifndef CONFIG_H__
00018 # define CONFIG_H__
00019 # include <config.h>
00020 # endif
00021 #endif
00022
00023 #include <string>
00024
00025 #if ENABLE_NODE_DAEMONS == 1
00026
00027 # ifndef DEFAULT_NODE_CONFIG_FILE_PATH
00028 const std::string DEFAULT_NODE_CONFIG_FILE = "fountainNode.cfg";
00029 # else
00030 const std::string DEFAULT_NODE_CONFIG_FILE = DEFAULT_NODE_CONFIG_FILE_PATH;
00031 # endif
00032 const unsigned int DEFAULT_MASTER_NODE_LISTEN_PORT = 10000;
00033 const std::string DEFAULT_MASTER_NODE_HOSTNAME = "localhost";
00034 const std::string DEFAULT_NODE_PROTOCOL = "HTTP";
00035 #endif
00036
00037
00038 #ifndef DEFAULT_SERVER_CONFIG_FILE_PATH
00039 const std::string DEFAULT_SERVER_CONFIG_FILE = "fountainServer.cfg";
00040 #else
00041 const std::string DEFAULT_SERVER_CONFIG_FILE = DEFAULT_SERVER_CONFIG_FILE_PATH;
00042 #endif
00043 const std::string DEFAULT_FOUNTAIN_SERVER_HOSTNAME = "localhost";
00044 const unsigned int DEFAULT_FOUNTAIN_ADMIN_PORT = 8900;
00045 const std::string DEFAULT_FOUNTAIN_ADMIN_PROTOCOL = "sssRMAP";
00046 const unsigned int DEFAULT_NODE_MONITOR_PORT = 9100;
00047 const std::string DEFAULT_NODE_MONITOR_PROTOCOL = "sssRMAP";
00048 const unsigned int DEFAULT_MINIMUM_NODE_UPDATE_INTERVAL = 5;
00049 const unsigned int DEFAULT_NODE_UPDATE_INTERVAL = 15;
00050 const unsigned int DEFAULT_STALE_DATA_LIMIT = 30;
00051 const unsigned int DEFAULT_CLIENT_TIMEOUT = 10;
00052 #ifndef DEFAULT_NODELIST_FILE_PATH
00053 const std::string DEFAULT_NODELIST_FILE = "fountainNodeList";
00054 #else
00055 const std::string DEFAULT_NODELIST_FILE = DEFAULT_NODELIST_FILE_PATH;
00056 #endif
00057
00058
00059 #ifdef PACKAGE_VERSION
00060 const std::string FOUNTAIN_VERSION_STRING = PACKAGE_VERSION;
00061 #else
00062 const std::string FOUNTAIN_VERSION_STRING = "0.0.3";
00063 #endif
00064
00065 #endif