version 1.12.6.1, 2006/07/28 20:50:02
|
version 1.13, 2006/07/27 08:33:24
|
|
|
| |
#include "JMPILocalProviderManager.h" | #include "JMPILocalProviderManager.h" |
| |
#include <Pegasus/Common/Time.h> |
|
#include <Pegasus/Common/Constants.h> | #include <Pegasus/Common/Constants.h> |
#include <Pegasus/Common/Tracer.h> | #include <Pegasus/Common/Tracer.h> |
#include <Pegasus/Common/PegasusVersion.h> | #include <Pegasus/Common/PegasusVersion.h> |
|
|
{ | { |
provider->initialize(*(provider->_cimom_handle)); | provider->initialize(*(provider->_cimom_handle)); |
} | } |
|
catch(CIMException &cimExcept) |
|
{ |
|
PEG_TRACE_STRING( |
|
TRC_PROVIDERMANAGER, |
|
Tracer::LEVEL4, |
|
"Calling provider->initialize caused exception:" |
|
+cimExcept.getMessage() |
|
); |
|
DDD(PEGASUS_STD(cout) |
|
<<"--- JMPILocalProviderManager::_provider_ctrl:" |
|
" Exception caught calling initialize!" |
|
<<PEGASUS_STD(endl)); |
|
throw; |
|
} |
|
catch(Exception &except) |
|
{ |
|
PEG_TRACE_STRING( |
|
TRC_PROVIDERMANAGER, |
|
Tracer::LEVEL4, |
|
"Calling provider->initialize caused exception:" |
|
+except.getMessage() |
|
); |
|
DDD(PEGASUS_STD(cout) |
|
<<"--- JMPILocalProviderManager::_provider_ctrl:" |
|
" Exception caught calling initialize!" |
|
<<PEGASUS_STD(endl)); |
|
throw PEGASUS_CIM_EXCEPTION(CIM_ERR_FAILED, |
|
except.getMessage()); |
|
} |
catch(...) | catch(...) |
{ | { |
PEG_TRACE_STRING(TRC_PROVIDERMANAGER, | PEG_TRACE_STRING(TRC_PROVIDERMANAGER, |
|
|
| |
if(first.tv_sec == 0) | if(first.tv_sec == 0) |
{ | { |
Time::gettimeofday(&first); |
gettimeofday(&first, NULL); |
} | } |
Time::gettimeofday(&now); |
gettimeofday(&now, NULL); |
| |
if (((now.tv_sec - first.tv_sec) > IDLE_LIMIT) && | if (((now.tv_sec - first.tv_sec) > IDLE_LIMIT) && |
((now.tv_sec - last.tv_sec) > IDLE_LIMIT)) | ((now.tv_sec - last.tv_sec) > IDLE_LIMIT)) |
{ | { |
Time::gettimeofday(&last); |
gettimeofday(&last, NULL); |
PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4, | PEG_TRACE_STRING(TRC_PROVIDERMANAGER, Tracer::LEVEL4, |
"Checking for Idle providers to unload."); | "Checking for Idle providers to unload."); |
try | try |