version 1.26, 2004/02/20 00:56:00
|
version 1.33, 2004/03/31 15:13:11
|
|
|
#include <Pegasus/Common/Tracer.h> | #include <Pegasus/Common/Tracer.h> |
#include <Pegasus/Common/Logger.h> | #include <Pegasus/Common/Logger.h> |
#include <Pegasus/Common/Destroyer.h> | #include <Pegasus/Common/Destroyer.h> |
#include <Pegasus/ProviderManager/OperationResponseHandler.h> |
#include <Pegasus/ProviderManager2/OperationResponseHandler.h> |
| |
#include <Pegasus/Config/ConfigManager.h> | #include <Pegasus/Config/ConfigManager.h> |
| |
|
|
| |
_incomingQueue.enqueue(request->op); | _incomingQueue.enqueue(request->op); |
| |
_thread_pool->allocate_and_awaken((void *)this, ProviderManagerService::handleCimOperation); |
while (!_thread_pool->allocate_and_awaken( |
|
(void *)this, ProviderManagerService::handleCimOperation)) |
|
{ |
|
pegasus_yield(); |
|
} |
} | } |
else | else |
{ | { |
|
|
{ | { |
CIMNamespaceName nameSpace; | CIMNamespaceName nameSpace; |
CIMName className; | CIMName className; |
|
CIMName method; |
| |
const CIMOperationRequestMessage * p = | const CIMOperationRequestMessage * p = |
dynamic_cast<const CIMOperationRequestMessage *>(message); | dynamic_cast<const CIMOperationRequestMessage *>(message); |
| |
if (p) { | if (p) { |
nameSpace=p->nameSpace; | nameSpace=p->nameSpace; |
|
|
if (p->providerType==ProviderType::ASSOCIATION) | if (p->providerType==ProviderType::ASSOCIATION) |
className=((CIMAssociatorsRequestMessage*)p)->assocClass; | className=((CIMAssociatorsRequestMessage*)p)->assocClass; |
else className=p->className; | else className=p->className; |
| |
ProviderName name( |
if (p->providerType==ProviderType::METHOD) |
CIMObjectPath(String::EMPTY, nameSpace, className).toString(), |
method=((CIMInvokeMethodRequestMessage*)p)->methodName; |
String::EMPTY, |
|
String::EMPTY, |
ProviderName name(nameSpace, |
String::EMPTY, |
className, |
p->providerType); |
p->providerType, |
|
method); |
|
|
// find provider manager | // find provider manager |
name = ProviderRegistrar().findProvider(name,false); | name = ProviderRegistrar().findProvider(name,false); |
it=name.getInterfaceName(); | it=name.getInterfaceName(); |
|
|
| |
void ProviderManagerService::unload_idle_providers(void) | void ProviderManagerService::unload_idle_providers(void) |
{ | { |
|
for(Uint32 i = 0, n = _providerManagers.size(); i < n; i++) |
|
{ |
|
ProviderManagerContainer *pmc=_providerManagers[i]; |
|
pmc->getProviderManager()->unload_idle_providers(); |
|
} |
} | } |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |
|
|