Codemesh Runtime v3 C++ API Reference
3.9.205
|
6 #ifndef xmog_options_inc
7 #define xmog_options_inc
10 #include "xmog_tracer.h"
131 typedef jint (JNICALL *
XMOG_ECB)( jthrowable t,
int error_code,
char * msg );
275 xmog_options(
const char * filename,
bool bEnvOverrides =
true );
289 xmog_options(
const char * filename, XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0,
bool bEnvOverrides =
true );
303 xmog_options( XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0,
bool bEnvOverrides =
true );
313 xmog_options(
int argc,
char * argv[],
bool bEnvOverrides =
true );
332 virtual int readOptions(
const char * file, XMOGVERSION vers = NULL, XMOGCONFIG conf = NULL, XMOGVERSION reserved0 = NULL );
341 virtual void setSkipTypeAnalysisForTheseAssemblies(
const char * skip );
348 virtual const char * getSkipTypeAnalysisForTheseAssemblies();
357 virtual void setPerformTypeAnalysisForTheseAssemblies(
const char * perform );
364 virtual const char * getPerformTypeAnalysisForTheseAssemblies();
373 virtual void setCOMExceptionMessages(
const char * ce );
382 virtual void setCOMExceptionMessages(
bool ce );
389 virtual bool getCOMExceptionMessages();
396 virtual void setUseCodemeshSecurityManager(
const char * ce );
403 virtual void setUseCodemeshSecurityManager(
bool ce );
408 virtual bool getUseCodemeshSecurityManager();
416 virtual void setJvmPath(
const char * jvmPath );
421 virtual char * getJvmPath();
434 virtual void setNoshutdownProcessing(
bool noshut );
447 virtual void setNoshutdownProcessing(
const char * noshut );
459 virtual void setNativeLibraryMode(
bool native );
476 virtual void setNativeLibraryMode(
const char * native );
483 virtual bool getNativeLibraryMode();
488 virtual bool getNoshutdownProcessing();
527 virtual void setTracing(
const char * facAndLevel );
547 virtual void setTraceFileCount(
int traceFileCount );
560 virtual void setTraceFileCount(
const char * traceFileCount );
565 virtual int getTraceFileCount();
583 virtual void setTraceFile(
const char * traceFile );
599 virtual void setTraceFile(
const char * traceFile,
int numTraceFiles );
604 virtual char * getTraceFile();
609 virtual void setTraceMethod(
const char * traceMethod );
614 virtual void setTraceMethod(
XMOG_TRACE traceMethod );
647 virtual void setDefaultEncoding(
const char * enc );
654 virtual char * getDefaultEncoding();
659 virtual void setExceptionPolicy(
const char * pol );
674 virtual void setExceptionCallback(
const char * exccb );
679 virtual void setExceptionCallback(
XMOG_ECB exccb );
684 virtual XMOG_ECB getExceptionCallback();
694 virtual void setRemote(
bool remote );
704 virtual void setRemote(
const char * remote );
709 virtual bool getRemote();
716 virtual void setServer(
bool server );
723 virtual bool getServer();
732 void printJvmPathAndExit();
739 char * getLdLibraryPath();
750 void setLdLibraryPath(
const char * path );
756 void printLdLibraryPathAndExit();
766 virtual void setNumMilliSecondsToForcedGC(
int ms );
775 virtual void setNumMilliSecondsToForcedGC(
const char * ms );
782 virtual int getNumMilliSecondsToForcedGC();
792 virtual void setNumObjectsToForcedGC(
int ms );
802 virtual void setNumObjectsToForcedGC(
const char * ms );
809 virtual int getNumObjectsToForcedGC();
830 int readOptionsFromRegistry( XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0 );
832 int readOptionsInJunction20Format(
const char * file, XMOGVERSION vers, XMOGCONFIG conf, XMOGVERSION reserved0 );
834 int readOptionsInXmlFormat(
const char * file );
836 void inner_trace(
const char * format,
xmog_trace_level level, va_list args );
838 static void XMOG_ATEXIT_MODIFIER closeTraceFile();
842 char * defaultEncoding;
856 int millisToForcedGC;
858 int proxiesToForcedGC;
888 char * performAnalysis;
xmog_exception_policy
The exception handling policy.
Definition: xmog_options.h:140
@ ExceptionCallback
Call a callback method that was registered with the framework.
Definition: xmog_options.h:146
xmog_trace_level
Tracing levels for the runtime.
Definition: xmog_tracer.h:72
@ GenericException
Throw an xmog_exception_impl instance that wraps around the Java exception.
Definition: xmog_options.h:144
jint(JNICALL * XMOG_ECB)(jthrowable t, int error_code, char *msg)
The method signature that an errorhandling callback has to conform to in the case of an ExceptionCall...
Definition: xmog_options.h:131
@ IgnoreAndContinue
Clear the exception from the JVM and continue without doing anything about it.
Definition: xmog_options.h:142
xmog_trace_facility
Tracing facilities for the runtime.
Definition: xmog_tracer.h:53
This class wraps around options that govern the overall behavior of the runtime library with respect ...
Definition: xmog_options.h:258
An interface that provides a tracing facility for the runtime library.
Definition: xmog_tracer.h:139
@ TypedException
Find the best matching proxy type for the Java exception and throw an instance of it....
Definition: xmog_options.h:143
void(JNICALL * XMOG_TRACE)(FILE *fpTrace, int traceLevel, const char *format, va_list args)
A function type that can be used to trace to arbitrary file handles.
Definition: xmog_tracer.h:94
virtual void trace(int fac, xmog_trace_level level, const char *format,...)=0
Trace a message if its level at the configured facility is appropriate.
@ FatalError
Terminate the JVM by calling the JNI function FatalError.
Definition: xmog_options.h:145
Copyright (c) 1999-2020 by Codemesh, Inc., ALL RIGHTS RESERVED.