#include <xmog_remote_client_options.h>
Public Member Functions | |
| virtual char * | getAuthenticationString () const |
| Returns the value of the authentication string. | |
| virtual char * | getConnectionString () const |
| Returns the value of the connection string. | |
| virtual char * | getEncryptionString () const |
| Returns the value of the encryption string. | |
| virtual bool | getJniFallback () const |
| Returns the flag that governs whether a native process is allowed to try in-process JNI if it cannot connect to a shared JVM. | |
| virtual char * | getMainClass () const |
| Returns the configured main class. | |
| virtual int | readClientOptions (const char *file, XMOGVERSION vers=NULL, XMOGCONFIG conf=NULL, XMOGVERSION reserved0=NULL) |
| virtual void | setAuthenticationString (const char *auth) |
| Sets the string that contains the information that will be used to authenticate the client and the server. | |
| virtual void | setConnectionString (const char *conn) |
| Sets the string that contains the information that will be used to connect to the shared JVM server. | |
| virtual void | setEncryptionString (const char *enc) |
| Sets the string that contains the information that will be used to encrypt the data sent between the client and the shared JVM server. | |
| virtual void | setJniFallback (const char *jnifb) |
| Sets the option that governs whether we want to allow a remote client to fall back to using in-process JNI if it cannot connect to the shared JVM. | |
| virtual void | setJniFallback (bool jnifb) |
| Sets the option that governs whether we want to allow a remote client to fall back to using in-process JNI if it cannot connect to the shared JVM. | |
| virtual void | setMainClass (const char *mainClass) |
| Sets a convenience option that is only used by the remote launcher. | |
Protected Member Functions | |
| void | env_override () |
| void | init () |
| void | reset () |
| xmog_remote_client_options (int argc, char *argv[], bool bEnvOverrides=true) | |
| xmog_remote_client_options (XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0, bool bEnvOverrides=true) | |
| xmog_remote_client_options (const char *filename, XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0, bool bEnvOverrides=true) | |
| xmog_remote_client_options (const char *filename, bool bEnvOverrides=true) | |
| xmog_remote_client_options (bool bEnvOverrides=true) | |
This class is typically used via the xmog_jvm_loader type which inherits all methods (if it was built with remote support). This class supports the following properties:
| Setting | File or Registry | CLI | Environment | Description |
| Authentication | Authentication | -auth | XMOG_AUTH | The string containing authentication settings. |
| Connection | Connection | -conn | XMOG_CONNECT | The string containing connection settings. |
| Encryption | Encryption | -encrypt | XMOG_ENCRYPT | The string containing encryption settings. |
| JNI Fallback | JniFallback | -fallbackjni | XMOG_JNI_FALLBACK | true if in-process JNI should be used as a fallback option when no remote connection can be established. |
|
|
Returns the value of the authentication string. The returned string is owned by the callee. |
|
|
Returns the value of the connection string. The returned string is owned by the callee. |
|
|
Returns the value of the encryption string. The returned string is owned by the callee. |
|
|
Returns the configured main class. The returned string is owned by the callee.
|
|
|
Sets the string that contains the information that will be used to authenticate the client and the server. The authentication string is in a pseudo URL format that allows the passing of arbitrary options to an authentication plugin. |
|
|
Sets the string that contains the information that will be used to connect to the shared JVM server. The connection string is in a pseudo URL format that allows the passing of arbitrary options to a connection plugin. |
|
|
Sets the string that contains the information that will be used to encrypt the data sent between the client and the shared JVM server. The encryption string is in a pseudo URL format that allows the passing of arbitrary options to an encryption plugin. |
|
|
Sets the option that governs whether we want to allow a remote client to fall back to using in-process JNI if it cannot connect to the shared JVM. This option is useful in scenarios where you typically wish to connect to a shared JVM for scalability reasons, but you acknowledge that the shared JVM might be down for maintenance every now and then. In such a situation, you might wish the client to still be able to proceed by using in-process JNI, even if that means that it has to launch its own JVM (something you wish to avoid in this particular scenario).
|
|
|
Sets the option that governs whether we want to allow a remote client to fall back to using in-process JNI if it cannot connect to the shared JVM. This option is useful in scenarios where you typically wish to connect to a shared JVM for scalability reasons, but you acknowledge that the shared JVM might be down for maintenance every now and then. In such a situation, you might wish the client to still be able to proceed by using in-process JNI, even if that means that it has to launch its own JVM (something you wish to avoid in this particular scenario). |
|
|
Sets a convenience option that is only used by the remote launcher.
This option is useful when you wish to execute a certain class'
|
1.4.1