CIMMethodProvider Class Referenceabstract
#include <CIMMethodProvider.h>
Inheritance diagram for CIMMethodProvider:![]()
Public Member Functions
CIMMethodProvider () virtual ~CIMMethodProvider () virtual void invokeMethod (const OperationContext &context, const CIMObjectPath &objectReference, const CIMName &methodName, const Array< CIMParamValue > &inParameters, MethodResultResponseHandler &handler)=0 Public Member Functions inherited from CIMProvider
CIMProvider () virtual ~CIMProvider () virtual void initialize (CIMOMHandle &cimom)=0 virtual void terminate ()=0 Detailed Description
This class defines a set of functions that support the invocation of extrinsic methods on a CIM class or instance.
A method provider is not required to implement all the methods defined for a CIM class. Multiple method providers may be registered for methods of the same class, but not for the same method. (See the SupportedMethods property of the PG_ProviderCapabilities class.)
Constructor & Destructor Documentation
◆ CIMMethodProvider()
CIMMethodProvider::CIMMethodProvider ( ) Constructs a default CIMMethodProvider object.
◆ ~CIMMethodProvider()
virtual CIMMethodProvider::~CIMMethodProvider ( ) virtual Destructs a CIMMethodProvider object.
Member Function Documentation
◆ invokeMethod()
virtual void CIMMethodProvider::invokeMethod ( const OperationContext & context, const CIMObjectPath & objectReference, const CIMName & methodName, const Array< CIMParamValue > & inParameters, MethodResultResponseHandler & handler ) pure virtual Invokes an extrinsic specified method on a specified CIM class or instance.
- Parameters
context An OperationContext object containing the context for the processing of the operation. The context includes the name of the requesting user, language information, and other data. objectReference A fully qualified CIMObjectPath specifying the class or instance on which to invoke the method. methodName The name of the method to invoke. inParameters An Array of CIMParamValue objects specifying the method input parameters. handler ResponseHandler object for delivery of results.
- Exceptions
CIMNotSupportedException If the method is not supported. CIMInvalidParameterException If a parameter is invalid. CIMObjectNotFoundException If the object is not found. CIMAccessDeniedException If the user requesting the action is not authorized to perform the action. CIMOperationFailedException If the operation fails.
The documentation for this class was generated from the following file:
- /home/loongson/rpmbuild/BUILD/pegasus/src/Pegasus/Provider/CIMMethodProvider.h