Codemesh Runtime v3 C++ API Reference  3.9.205
xmog_remote_client_options.h
1 //
2 // Copyright (c) 1999-2020 by Codemesh, Inc.. ALL RIGHTS RESERVED.
3 //
4 
5 
6 #ifndef xmog_remote_client_options_inc
7 #define xmog_remote_client_options_inc
8 
9 
10 #include "xmog.h"
11 
12 
13 #if (XMOG_IMPLEMENTS_REMOTE_CLIENT==1)
14 
15 
60 class XMOG_DECLSPEC xmog_remote_client_options
61 {
62 protected:
63 
64  xmog_remote_client_options( bool bEnvOverrides = true );
65 
66  xmog_remote_client_options( const char * filename, bool bEnvOverrides = true );
67 
68  xmog_remote_client_options( const char * filename, XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0, bool bEnvOverrides = true );
69 
70  xmog_remote_client_options( XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0, bool bEnvOverrides = true );
71 
72  xmog_remote_client_options( int argc, char * argv[], bool bEnvOverrides = true );
73 
74  virtual ~xmog_remote_client_options();
75 
76 public:
77 
78  virtual int readClientOptions( const char * file, XMOGVERSION vers = NULL, XMOGCONFIG conf = NULL, XMOGVERSION reserved0 = NULL );
79 
92  virtual void setJniFallback( bool jnifb );
93 
107  virtual void setJniFallback( const char * jnifb );
108 
113  virtual bool getJniFallback() const;
114 
126  virtual void setMainClass( const char * mainClass );
127 
135  virtual char * getMainClass() const;
136 
144  virtual void setAuthenticationString( const char * auth );
145 
151  virtual char * getAuthenticationString() const;
152 
160  virtual void setConnectionString( const char * conn );
161 
167  virtual char * getConnectionString() const;
168 
176  virtual void setEncryptionString( const char * enc );
177 
183  virtual char * getEncryptionString() const;
184 
185 protected:
186 
187  void init();
188 
189  void env_override();
190 
191  void reset();
192 
193 private:
194 
195  int readClientOptionsFromRegistry( XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0 );
196 
197  int readClientOptionsInJunction20Format( const char * fileName, XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0 );
198 
199  int readClientOptionsInXmlFormat( const char * fileName );
200 
201  char * mainClass;
202 
203  char * auth;
204 
205  char * conn;
206 
207  char * enc;
208 
209  bool bJniFallback;
210 
211  bool envOverrides;
212 };
213 
214 
215 #endif /* XMOG_IMPLEMENTS_REMOTE_CLIENT */
216 
217 #endif /* xmog_remote_client_options_inc */
xmog_remote_client_options
A class that represents the settings that a remote client uses to connect to a shared JVM.
Definition: xmog_remote_client_options.h:60

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