version 1.1, 2003/08/18 04:25:57
|
version 1.12, 2004/05/18 23:58:41
|
|
|
//%///////////////////////////////////////////////////////////////////////////// |
//%2003//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000 - 2003 BMC Software, Hewlett-Packard Company, IBM, |
// Copyright (c) 2000, 2001, 2002 BMC Software, Hewlett-Packard Development |
// The Open Group, Tivoli Systems |
// Company, L. P., IBM Corp., The Open Group, Tivoli Systems. |
|
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L. P.; |
|
// IBM Corp.; EMC Corporation, The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
#define Pegasus_ProviderManager_h | #define Pegasus_ProviderManager_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/Message.h> |
#include <Pegasus/Common/CIMMessage.h> |
|
|
#include <Pegasus/Server/Linkage.h> |
|
| |
#include <Pegasus/ProviderManager2/ProviderRegistrar.h> |
#include <Pegasus/ProviderManager2/Linkage.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
class PEGASUS_SERVER_LINKAGE ProviderManager |
typedef void (*PEGASUS_INDICATION_CALLBACK)( |
|
CIMProcessIndicationRequestMessage*); |
|
|
|
class PEGASUS_PPM_LINKAGE ProviderManager |
{ | { |
public: | public: |
ProviderManager(void); | ProviderManager(void); |
virtual ~ProviderManager(void); | virtual ~ProviderManager(void); |
| |
virtual Message * processMessage(Message * message); |
virtual Message * processMessage(Message * message) = 0; |
| |
virtual String findProvider(const String & providerName); |
virtual void unload_idle_providers() = 0; |
virtual Boolean insertProvider(const String & providerName); |
static String _resolvePhysicalName(String physicalName); |
virtual Boolean removeProvider(const String & providerName); |
|
|
|
// temp |
|
void setProviderRegistrationManager(ProviderRegistrationManager * p); |
|
ProviderRegistrationManager * getProviderRegistrationManager(void); |
|
| |
protected: |
/** |
// ingredients for CIMOMHandle (binary message handler, repository, etc.) |
Sets the callback function to which indications generated by this |
|
ProviderManager should be forwarded for processing. |
|
*/ |
|
virtual void setIndicationCallback( |
|
PEGASUS_INDICATION_CALLBACK indicationCallback); |
| |
private: |
protected: |
ProviderRegistrar _registrar; |
PEGASUS_INDICATION_CALLBACK _indicationCallback; |
| |
|
// ingredients for CIMOMHandle (binary message handler, repository, etc.) |
}; | }; |
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |