Codemesh Runtime v3 C++ API Reference  3.9.205
xmog_remote_server_options.h
1 //
2 // Copyright (c) 1999-2020 by Codemesh, Inc.. ALL RIGHTS RESERVED.
3 //
4 
5 
6 #ifndef xmog_remote_server_options_inc
7 #define xmog_remote_server_options_inc
8 
9 
10 #include "xmog.h"
11 
12 
13 #if (XMOG_IMPLEMENTS_REMOTE_SERVER==1)
14 
15 
16 class XMOG_DECLSPEC xmog_remote_server_options
17 {
18 protected:
19 
20  xmog_remote_server_options( bool bEnvOverrides = true );
21 
22  xmog_remote_server_options( const char * filename, bool bEnvOverrides = true );
23 
24  xmog_remote_server_options( const char * filename, XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0, bool bEnvOverrides = true );
25 
26  xmog_remote_server_options( XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0, bool bEnvOverrides = true );
27 
28  xmog_remote_server_options( int argc, char * argv[], bool bEnvOverrides = true );
29 
31 
32 public:
33 
34  virtual int readServerOptions( const char * file, XMOGVERSION vers = NULL, XMOGCONFIG conf = NULL, XMOGVERSION reserved0 = NULL );
35 
36  virtual void setVirtualRoot( const char * sroot );
37 
38  virtual char * getVirtualRoot();
39 
40  virtual void setAdminPassword( const char * admin );
41 
42  virtual char * getAdminPassword();
43 
44  virtual void setAdminRestrictions( const char * admin );
45 
46  virtual char * getAdminRestrictions();
47 
48  virtual void setAdminPort( int port );
49 
50  virtual int getAdminPort();
51 
52  virtual void setClientTimeout( int seconds );
53 
54  virtual int getClientTimeout();
55 
56  virtual void setHeartbeatInterval( int seconds );
57 
58  virtual int getHeartbeatInterval();
59 
60  virtual void setHeartbeatPort( int port );
61 
62  virtual int getHeartbeatPort();
63 
64 protected:
65 
66  void init();
67 
68  void env_override();
69 
70  void reset();
71 
72 private:
73 
74  int readServerOptionsFromRegistry( XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0 );
75 
76  int readServerOptionsInJunction20Format( const char * fileName, XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0 );
77 
78  int readServerOptionsInXmlFormat( const char * fileName );
79 
80  char * virtRoot;
81 
82  char * adminPassword;
83 
84  char * adminRestrict;
85 
86  int adminPort;
87 
88  int clientTimeout;
89 
90  int heartbeatInterval;
91 
92  int heartbeatPort;
93 
94  bool envOverrides;
95 
96 };
97 
98 
99 #endif /* XMOG_IMPLEMENTS_REMOTE_SERVER */
100 
101 #endif /* xmog_remote_server_options_inc */
xmog_remote_server_options
Definition: xmog_remote_server_options.h:16

Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.