version 1.11.2.2, 2006/03/07 18:45:59
|
version 1.12, 2006/01/30 16:18:10
|
|
|
JMPIProvider::JMPIProvider (const String &name, | JMPIProvider::JMPIProvider (const String &name, |
JMPIProviderModule *module, | JMPIProviderModule *module, |
ProviderVector *mv) | ProviderVector *mv) |
|
: _module(module), _cimom_handle(0), _name(name), |
|
_no_unload(0), _rm(0) |
{ | { |
DDD(PEGASUS_STD(cout)<<"--- JMPIProvider::JMPIProvider(name, module, mv)"<<PEGASUS_STD(endl)); |
|
|
|
_module = module; |
|
_cimom_handle = 0; |
|
_java_cimom_handle = new CIMOMHandle (); |
|
_name = name; |
|
_no_unload = false; |
|
_rm = 0; |
|
_current_operations = 1; | _current_operations = 1; |
_currentSubscriptions = 0; | _currentSubscriptions = 0; |
miVector = *mv; | miVector = *mv; |
|
|
} | } |
| |
JMPIProvider::JMPIProvider (JMPIProvider *pr) | JMPIProvider::JMPIProvider (JMPIProvider *pr) |
|
: _module(pr->_module), _cimom_handle(0), _name(pr->_name), |
|
_no_unload(0), _rm(0) |
{ | { |
DDD(PEGASUS_STD(cout)<<"--- JMPIProvider::JMPIProvider(pr)"<<PEGASUS_STD(endl)); |
|
|
|
_module = pr->_module; |
|
_cimom_handle = 0; |
|
_java_cimom_handle = new CIMOMHandle (); |
|
_name = pr->_name; |
|
_no_unload = pr->noUnload; |
|
_rm = 0; |
|
_current_operations = 1; | _current_operations = 1; |
_currentSubscriptions = 0; | _currentSubscriptions = 0; |
miVector = pr->miVector; | miVector = pr->miVector; |
|
_cimom_handle=new CIMOMHandle(); |
noUnload = pr->noUnload; | noUnload = pr->noUnload; |
cachedClass = NULL; | cachedClass = NULL; |
} | } |
| |
JMPIProvider::~JMPIProvider(void) | JMPIProvider::~JMPIProvider(void) |
{ | { |
DDD(PEGASUS_STD(cout)<<"--- JMPIProvider::~JMPIProvider()"<<PEGASUS_STD(endl)); |
|
|
|
delete _java_cimom_handle; |
|
delete cachedClass; | delete cachedClass; |
} | } |
| |
|
|
| |
JMPIjvm::checkException(env); | JMPIjvm::checkException(env); |
| |
jint jCimomRef = DEBUG_ConvertCToJava (CIMOMHandle*, jint, _java_cimom_handle); |
jint jCimomRef = DEBUG_ConvertCToJava (CIMOMHandle*, jint, &cimom); |
jobject jch = env->NewObject(jv->CIMOMHandleClassRef, | jobject jch = env->NewObject(jv->CIMOMHandleClassRef, |
JMPIjvm::jv.CIMOMHandleNewISt, | JMPIjvm::jv.CIMOMHandleNewISt, |
jCimomRef, | jCimomRef, |