6 #ifndef xmog_jvm_loader_inc
7 #define xmog_jvm_loader_inc
12 #include "xmog_jvm_options.h"
13 #include "xmog_options.h"
14 #include "xmog_remote_client_options.h"
15 #include "xmog_remote_server_options.h"
20 class xmog_jvm_loader_impl;
327 XMOG_REMOTE_CLIENT_OPTIONS_INH
328 XMOG_REMOTE_SERVER_OPTIONS_INH
369 typedef void (XMOG_CALLING_CONVENTION *XMOG_CONFIG_HOOK)(
void * pLoader,
int when );
403 static void setConfigFile(
const char * filename,
404 XMOGVERSION vers = NULL,
405 XMOGCONFIG conf = NULL,
406 XMOGVERSION reserved0 = NULL );
427 bool bDefaultJvm =
true,
463 XMOGVERSION reserved0 = NULL,
464 bool bEnvOverrides =
true,
465 bool bDefaultJvm =
true,
491 bool bEnvOverrides =
true,
492 bool bDefaultJvm =
true,
515 bool bEnvOverrides =
true,
516 bool bDefaultJvm =
true,
542 XMOGVERSION reserved0 = NULL,
543 bool bEnvOverrides =
true,
544 bool bDefaultJvm =
true,
571 virtual xmog_jvm * load(
bool bAcceptPreloadedJvm =
true );
577 static bool isNativeInitThread();
597 virtual void set_jvm(
xmog_jvm * jvm );
605 jint getLoadResult(
char ** pMsg = NULL );
610 jint getLoadedJvms(
xmog_jvm ** pJvms, jsize size, jsize * count );
618 static const char * getDefaultJvmPath();
628 static bool isInShutdownMode();
638 static void enterShutdownMode();
645 virtual void setJvmPath(
const char * jvmPath );
668 virtual void read(
const char * file, XMOGVERSION vers = NULL, XMOGCONFIG conf = NULL, XMOGVERSION reserved0 = NULL );
687 static void addVersionConfig(
const char * vers,
const char * config );
697 static void registerConfigurationHook( XMOG_CONFIG_HOOK configHook );
702 static void atexit_call();
707 bool getEnvironmentOverrides()
const;
713 jint getProbableMaximumHeapSizeInMB()
const;
802 xmog_jvm * loadInProcess(
bool bAcceptPreloadedJvm );
811 xmog_jvm * loadOutOfProcessClient(
bool bAcceptPreloadedJvm );
818 xmog_jvm * loadOutOfProcessServer(
bool bAcceptPreloadedJvm );
828 xmog_jvm * loadOutOfProcess(
bool bAcceptPreloadedJvm,
bool bServer =
false );
847 void consolidateVersionConfigs();
857 void addExtensionDirectories();
863 volatile static bool shutdownmode;
865 static char * fileName_;
867 static XMOGVERSION vers_;
869 static XMOGCONFIG conf_;
871 static XMOGVERSION reserved0_;
873 xmog_jvm_loader_impl * impl;