00001 //------------------------------------------------------------------------------ 00002 // Copyright (c) 2011-2012 by European Organization for Nuclear Research (CERN) 00003 // Author: Lukasz Janyst <ljanyst@cern.ch> 00004 //------------------------------------------------------------------------------ 00005 // XRootD is free software: you can redistribute it and/or modify 00006 // it under the terms of the GNU Lesser General Public License as published by 00007 // the Free Software Foundation, either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // XRootD is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU Lesser General Public License 00016 // along with XRootD. If not, see <http://www.gnu.org/licenses/>. 00017 //------------------------------------------------------------------------------ 00018 00019 #ifndef __XRD_CL_CONSTANTS_HH__ 00020 #define __XRD_CL_CONSTANTS_HH__ 00021 00022 #include <stdint.h> 00023 00024 namespace XrdCl 00025 { 00026 //---------------------------------------------------------------------------- 00027 // Log message types 00028 //---------------------------------------------------------------------------- 00029 const uint64_t AppMsg = 0x0000000000000001ULL; 00030 const uint64_t UtilityMsg = 0x0000000000000002ULL; 00031 const uint64_t FileMsg = 0x0000000000000004ULL; 00032 const uint64_t PollerMsg = 0x0000000000000008ULL; 00033 const uint64_t PostMasterMsg = 0x0000000000000010ULL; 00034 const uint64_t XRootDTransportMsg = 0x0000000000000020ULL; 00035 const uint64_t TaskMgrMsg = 0x0000000000000040ULL; 00036 const uint64_t XRootDMsg = 0x0000000000000080ULL; 00037 const uint64_t FileSystemMsg = 0x0000000000000100ULL; 00038 const uint64_t AsyncSockMsg = 0x0000000000000200ULL; 00039 const uint64_t JobMgrMsg = 0x0000000000000400ULL; 00040 const uint64_t PlugInMgrMsg = 0x0000000000000800ULL; 00041 const uint64_t ExDbgMsg = 0x0000000000001000ULL; //special type debugging extra-hard problems 00042 00043 //---------------------------------------------------------------------------- 00044 // Environment settings 00045 //---------------------------------------------------------------------------- 00046 const int DefaultSubStreamsPerChannel = 1; 00047 const int DefaultConnectionWindow = 120; 00048 const int DefaultConnectionRetry = 5; 00049 const int DefaultRequestTimeout = 1800; 00050 const int DefaultStreamTimeout = 60; 00051 const int DefaultTimeoutResolution = 15; 00052 const int DefaultStreamErrorWindow = 1800; 00053 const int DefaultRunForkHandler = 0; 00054 const int DefaultRedirectLimit = 16; 00055 const int DefaultWorkerThreads = 3; 00056 const int DefaultCPChunkSize = 16777216; 00057 const int DefaultCPParallelChunks = 4; 00058 const int DefaultDataServerTTL = 300; 00059 const int DefaultLoadBalancerTTL = 1200; 00060 const int DefaultCPInitTimeout = 600; 00061 const int DefaultCPTPCTimeout = 1800; 00062 const int DefaultTCPKeepAlive = 0; 00063 const int DefaultTCPKeepAliveTime = 7200; 00064 const int DefaultTCPKeepAliveInterval = 75; 00065 const int DefaultTCPKeepAliveProbes = 9; 00066 const int DefaultMultiProtocol = 0; 00067 const int DefaultParallelEvtLoop = 1; 00068 const int DefaultMetalinkProcessing = 1; 00069 const int DefaultLocalMetalinkFile = 0; 00070 const int DefaultXCpBlockSize = 134217728; // DefaultCPChunkSize * DefaultCPParallelChunks * 2 00071 const int DefaultNoDelay = 1; 00072 const int DefaultAioSignal = 0; 00073 const int DefaultPreferIPv4 = 0; 00074 const int DefaultMaxMetalinkWait = 60; 00075 00076 const char * const DefaultPollerPreference = "built-in"; 00077 const char * const DefaultNetworkStack = "IPAuto"; 00078 const char * const DefaultClientMonitor = ""; 00079 const char * const DefaultClientMonitorParam = ""; 00080 const char * const DefaultPlugInConfDir = ""; 00081 const char * const DefaultPlugIn = ""; 00082 const char * const DefaultReadRecovery = "true"; 00083 const char * const DefaultWriteRecovery = "true"; 00084 const char * const DefaultOpenRecovery = "true"; 00085 const char * const DefaultGlfnRedirector = ""; 00086 } 00087 00088 #endif // __XRD_CL_CONSTANTS_HH__