(file) Return to JMPIImpl.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2 / JMPI

Diff for /pegasus/src/Pegasus/ProviderManager2/JMPI/JMPIImpl.h between version 1.19 and 1.28

version 1.19, 2006/02/08 22:10:20 version 1.28, 2007/01/24 22:32:36
Line 29 
Line 29 
 // //
 //============================================================================== //==============================================================================
 // //
 // Author:      Adrian Schuur, schuur@de.ibm.com  
 //  
 // Modified By:  
 //  
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
   
 #ifndef _Provider_JMPIImpl_h #ifndef _Provider_JMPIImpl_h
 #define _Provider_JMPIImpl_h #define _Provider_JMPIImpl_h
  
   #include <Pegasus/Common/Config.h>
   
 #include <jni.h> #include <jni.h>
   
   #ifdef PEGASUS_PLATFORM_LINUX_GENERIC_GNU
   #if defined (__GNUC__) && GCC_VERSION >= 40000
   // If gcc is compiled with -fvisibility=hidden then JMPI is broken.  This is because
   // the JNI h file defines JNIEXPORT as empty since the default is visible.
   #undef  JNIEXPORT
   #define JNIEXPORT __attribute__ ((visibility("default")))
   #endif
   #endif
   
 #include <stdio.h> #include <stdio.h>
 #include <stdlib.h> #include <stdlib.h>
 #include <string.h> #include <string.h>
  
 #include <Pegasus/Common/Config.h>  
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
 #include <Pegasus/Common/System.h> #include <Pegasus/Common/System.h>
 #include <Pegasus/Common/HashTable.h> #include <Pegasus/Common/HashTable.h>
 #include <Pegasus/Common/CIMType.h> #include <Pegasus/Common/CIMType.h>
 #include <Pegasus/Common/Mutex.h> #include <Pegasus/Common/Mutex.h>
   #include <Pegasus/ProviderManager2/JMPI/Linkage.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
Line 69 
Line 76 
    } \    } \
    catch(...)  { \    catch(...)  { \
       JMPIjvm::cacheIDs(jEnv); \       JMPIjvm::cacheIDs(jEnv); \
       jobject ev=jEnv->NewObject(JMPIjvm::jv.CIMExceptionClassRef,JMPIjvm::jv.CIMExceptionNewISt,(jint)1,"Exception: Unknown"); \        jobject ev=jEnv->NewObject(JMPIjvm::jv.CIMExceptionClassRef,JMPIjvm::jv.CIMExceptionNewISt,(jint)1,jEnv->NewStringUTF("Exception: Unknown")); \
       jEnv->Throw((jthrowable)ev); \       jEnv->Throw((jthrowable)ev); \
    }    }
  
Line 89 
Line 96 
    const METHOD_STRUCT *instanceMethodNames;    const METHOD_STRUCT *instanceMethodNames;
 } JvmVector; } JvmVector;
  
 class JMPIjvm {  class PEGASUS_JMPIPM_LINKAGE JMPIjvm {
  public:  public:
    static int trace;    static int trace;
    static JavaVM *jvm;    static JavaVM *jvm;
Line 130 
Line 137 
    int port();    int port();
    String hostName();    String hostName();
    String nameSpace();    String nameSpace();
      Boolean isHttps ();
    int port_;    int port_;
    String protocol_;    String protocol_;
    String hostName_;    String hostName_;
    String nameSpace_;    String nameSpace_;
      Boolean fHttps;
 }; };
  
 class _dataType { class _dataType {
Line 364 
Line 373 
 #define CIMInstanceExceptionClassRef classRefs[30] #define CIMInstanceExceptionClassRef classRefs[30]
 #define CIMObjectClassRef            classRefs[31] #define CIMObjectClassRef            classRefs[31]
 #define CharacterClassRef            classRefs[32] #define CharacterClassRef            classRefs[32]
   #define OperationContextClassRef     classRefs[33]
   #define ClassClassRef                classRefs[34]
  
 #define BigIntegerValueOf            staticMethodIDs[0] #define BigIntegerValueOf            staticMethodIDs[0]
 #define JarClassLoaderLoad           staticMethodIDs[1] #define JarClassLoaderLoad           staticMethodIDs[1]
Line 384 
Line 395 
 #define UnsignedInt16NewI            instMethodIDs[9] #define UnsignedInt16NewI            instMethodIDs[9]
 #define UnsignedInt32NewJ            instMethodIDs[10] #define UnsignedInt32NewJ            instMethodIDs[10]
 #define UnsignedInt64NewBi           instMethodIDs[11] #define UnsignedInt64NewBi           instMethodIDs[11]
 #define CIMObjectPathNewI            instMethodIDs[12]  #define CIMObjectPathNewJ            instMethodIDs[12]
 #define CIMObjectPathCInst           instMethodIDs[21] #define CIMObjectPathCInst           instMethodIDs[21]
 #define CIMExceptionNewSt            instMethodIDs[13] #define CIMExceptionNewSt            instMethodIDs[13]
 #define CIMExceptionNewISt           instMethodIDs[32] #define CIMExceptionNewISt           instMethodIDs[32]
Line 395 
Line 406 
 #define CIMExceptionNewStObObOb      instMethodIDs[44] #define CIMExceptionNewStObObOb      instMethodIDs[44]
 #define CIMExceptionGetCode          instMethodIDs[33] #define CIMExceptionGetCode          instMethodIDs[33]
 #define CIMExceptionGetID            instMethodIDs[26] #define CIMExceptionGetID            instMethodIDs[26]
 #define CIMPropertyNewI              instMethodIDs[14]  #define CIMPropertyNewJ              instMethodIDs[14]
 #define CIMPropertyCInst             instMethodIDs[28] #define CIMPropertyCInst             instMethodIDs[28]
 #define CIMOMHandleNewISt            instMethodIDs[17]  #define CIMOMHandleNewJSt            instMethodIDs[17]
 #define CIMOMHandleGetClass          instMethodIDs[29] #define CIMOMHandleGetClass          instMethodIDs[29]
 #define CIMClassNewI                 instMethodIDs[19]  #define CIMClassNewJ                 instMethodIDs[19]
 #define CIMClassCInst                instMethodIDs[23] #define CIMClassCInst                instMethodIDs[23]
 #define CIMInstanceNewI              instMethodIDs[20]  #define CIMInstanceNewJ              instMethodIDs[20]
 #define CIMInstanceCInst             instMethodIDs[22] #define CIMInstanceCInst             instMethodIDs[22]
 #define CIMValueNewI                 instMethodIDs[45]  #define CIMValueNewJ                 instMethodIDs[45]
 #define CIMValueCInst                instMethodIDs[31] #define CIMValueCInst                instMethodIDs[31]
 #define CIMDateTimeNewI              instMethodIDs[34]  #define CIMDateTimeNewJ              instMethodIDs[34]
 #define SelectExpNewI                instMethodIDs[35]  #define SelectExpNewJ                instMethodIDs[35]
 #define CIMQualifierNewI             instMethodIDs[36]  #define CIMQualifierNewJ             instMethodIDs[36]
 #define CIMFlavorNewI                instMethodIDs[37] #define CIMFlavorNewI                instMethodIDs[37]
 #define CIMFlavorGetFlavor           instMethodIDs[38] #define CIMFlavorGetFlavor           instMethodIDs[38]
 #define CIMArgumentNewI              instMethodIDs[40]  #define CIMArgumentNewJ              instMethodIDs[40]
 #define CIMArgumentCInst             instMethodIDs[39] #define CIMArgumentCInst             instMethodIDs[39]
 #define ObjectToString               instMethodIDs[24] #define ObjectToString               instMethodIDs[24]
 #define ThrowableGetMessage          instMethodIDs[25] #define ThrowableGetMessage          instMethodIDs[25]
 #define CIMObjectNewIZ               instMethodIDs[46]  #define CIMObjectNewJZ               instMethodIDs[46]
 #define CharacterNewC                instMethodIDs[47] #define CharacterNewC                instMethodIDs[47]
   #define OperationContextNewJ         instMethodIDs[48]
   #define OperationContextUnassociate  instMethodIDs[49]
   #define ClassGetInterfaces           instMethodIDs[50]
   #define ClassGetName                 instMethodIDs[51]
   #define UnsignedInt64NewStr          instMethodIDs[52]
  
 //extern "C" JNIEnv* attachThread(JvmVector**); //extern "C" JNIEnv* attachThread(JvmVector**);
 //extern "C" void detachThread(); //extern "C" void detachThread();


Legend:
Removed from v.1.19  
changed lines
  Added in v.1.28

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2