StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ChapiDbHost.h
1 #ifndef ChapiDbHost_h
2 #define ChapiDbHost_h
3 #include <vector>
4 #include <string>
5 #include "limits.h"
6 
7 const short DefaultPort = 3316;
8 const double DefaultPower = 1.;
9 const short DefaultCap = SHRT_MAX;
10 using std::string;
11 
13 {
14  public:
15  string HostName;
16  short Port;
17  double Power; // proportional to machine's productivity (or desired
18  // involvement in the DB service)
19  unsigned short Cap; // max # of connections, applies to the ordinary, NOT machine-power weighted connections
20 
21  ChapiDbHost(const std::string h="",
22  const short p = DefaultPort,
23  const double power = DefaultPower,
24  const short cap = DefaultCap);
25 
26 };
27 
28 #endif