CMPI 2.1.0 API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Data Fields

Function table of CMPIPropertyMI object. More...

#include <cmpift.h>

Data Fields

CMPIVersion ftVersion
 CMPI version supported by the MI for this function table. More...
 
int miVersion
 Informal MI-specific version number for this MI.
 
const char * miName
 Informal MI-specific name for this MI.
 
CMPIStatus(* cleanup )(CMPIPropertyMI *mi, const CMPIContext *ctx, CMPIBoolean terminating)
 Perform cleanup for a Property MI. (Deprecated) More...
 
CMPIStatus(* setProperty )(CMPIPropertyMI *mi, const CMPIContext *ctx, const CMPIResult *rslt, const CMPIObjectPath *instPath, const char *name, const CMPIData data)
 Set the value of a property of an existing instance. (Deprecated) More...
 
CMPIStatus(* getProperty )(CMPIPropertyMI *mi, const CMPIContext *ctx, const CMPIResult *rslt, const CMPIObjectPath *instPath, const char *name)
 Retrieve a property value of an existing instance. (Deprecated) More...
 
CMPIStatus(* setPropertyWithOrigin )(CMPIPropertyMI *mi, const CMPIContext *ctx, const CMPIResult *rslt, CMPIObjectPath *instPath, const char *name, const CMPIData data, const char *origin)
 Set the value and origin of a property of an existing instance. (Deprecated) More...
 

Detailed Description

Function table of CMPIPropertyMI object.

Addition:
Added in CMPI 2.0.

Field Documentation

CMPIVersion CMPIPropertyMIFT::ftVersion

CMPI version supported by the MI for this function table.

Any later CMPI versions are implicitly also supported.

See CMPIVersion<NNN> for valid CMPI version numbers.

CMPIStatus(* CMPIPropertyMIFT::cleanup)(CMPIPropertyMI *mi, const CMPIContext *ctx, CMPIBoolean terminating)

Perform cleanup for a Property MI. (Deprecated)

CMPIPropertyMIFT.cleanup() shall perform any necessary cleanup for the Property MI identified by mi, unless the MI postpones the cleanup.

While this function executes, the MB will not call any other MI functions for this MI. This function will be called once for a specific MI (unless the MI postpones the cleanup), even if that MI services more than one namespace. After this function returns, the MB may unload the load library this MI is part of, unless the MI postpones the cleanup.

Parameters
miPoints to a CMPIPropertyMI structure.
ctxPoints to a CMPIContext object containing the context data for the invocation. The context data entries are MB implementation-specific.
terminating

Indicates whether the MB is in the process of shutting down and thus cannot tolerate postponing of the cleanup, as follows:

When True, the MB is in the process of shutting down. The MI shall perform any necessary cleanup and shall not postpone the cleanup. After this function returns (successful or in error), the MB will consider this MI to be uninitialized and will not call further MI functions for this MI.

When False, the MI can choose to perform or postpone the cleanup, by performing one of these actions:

  • The MI performs any necessary cleanup and does not request postponing the cleanup. After this function returns (successful or in error), the MB will consider this MI to be uninitialized and will not call further MI functions for this MI.
  • The MI does not perform any cleanup and temporarily postpones the cleanup, by returning CMPI_RC_DO_NOT_UNLOAD. This will cause the MB to consider this MI still to be initialized, and the MB may call further MI functions of this MI. The MB may call this function again after some MB implementation-specific time.
  • The MI does not perform any cleanup and permanently postpones the cleanup, by returning CMPI_RC_NEVER_UNLOAD. This will cause the MB to consider this MI still to be initialized, and the MB may call further MI functions of this MI. The MB will not call this function again until the MB terminates (at which time the MB calls this function with terminating set to true).
Returns
CMPIStatus structure containing the function return status.
Errors
The following CMPIrc codes shall be used by the MI in the function return status:
  • CMPI_RC_OK - Function successful.
  • CMPI_RC_DO_NOT_UNLOAD - Function successful, do not unload now; the MB may retry an unload later.
  • CMPI_RC_NEVER_UNLOAD - Function successful, never unload; the MB will not retry an unload later unless it shuts down.
  • CMPI_RC_ERR_FAILED - Other error occurred.
Convenience Function
CMPropertyMIStub()
Addition:
Added in CMPI 2.0.
Deprecated:
This function is deprecated since CMPI 2.1, in accord with the deprecation of property client operations in DMTF specifications.
Bug:
The CMPI Standard is not specific about the number of invocations of this function when an MI services more than one namespace. It should be updated to state that the function is invoked only once, even if the MI services more than one namespace.
CMPIStatus(* CMPIPropertyMIFT::setProperty)(CMPIPropertyMI *mi, const CMPIContext *ctx, const CMPIResult *rslt, const CMPIObjectPath *instPath, const char *name, const CMPIData data)

Set the value of a property of an existing instance. (Deprecated)

CMPIPropertyMIFT.setProperty() shall set the value of a property of an existing instance, by accessing the underlying managed elements.

This function is provided by the MI in context of a particular MI name. The class of instPath for which this function will be called by the MB depends on the specifics of how the MB relates classes and MI names, which is out of scope for this standard. As a result, the MB may call this function for classes for which the MI is not responsible. In order for an MI to be portable across MB implementations with different approaches to relate MI names and classes, the MI must check whether it services the class specified in instPath.

Parameters
miPoints to a CMPIPropertyMI structure.
ctxPoints to a CMPIContext object containing the context data for the invocation.
rsltPoints to a CMPIResult object that is the result data container. Upon successful return, the MI shall have left this container empty.
instPathPoints to a CMPIObjectPath object that references the instance to be modified and that contains the namespace, class name, and key components. The hostname component, if present, has no meaning and should be ignored.
nameProperty name.
dataA CMPIData structure specifying the value to be assigned to the property.
Returns
CMPIStatus structure containing the function return status.
Errors
The following table lists the CMPIrc codes that shall be used by the MI in the function return status, as well as the WBEM operation messages that should be used in the CMPIError object if the MI supports extended error handling (see the corresponding Extended Errors capability):
CMPIRCCodeCMPIErrorMsgDescription
CMPI_RC_OKN/A Function Successful.
CMPI_RC_ERR_NOT_SUPPORTEDWIPG0228 Function is not supported by the MB.
CMPI_RC_ERR_ACCESS_DENIEDWIPG0201 Not authorized.
CMPI_RC_ERR_INVALID_NAMESPACEN/A The namespace specified in instPath is invalid or does not exist. (Deprecated)
CMPI_RC_ERR_INVALID_PARAMETERN/A The parameter is invalid. (Deprecated)
CMPI_RC_ERR_INVALID_CLASSN/A The class specified in instPath is invalid or does not exist. (Deprecated)
CMPI_RC_ERR_NOT_FOUNDWIPG0213 Instance not found.
CMPI_RC_ERR_NO_SUCH_PROPERTYWIPG0220 No such property.
CMPI_RC_ERR_FAILEDWIPG0243 Timeout occurred.
CMPI_RC_ERR_FAILEDWIPG0227 + implementation-specific message Other error occurred.
Convenience Function
CMPropertyMIStub()
Addition:
Added in CMPI 2.0.
Deprecated:

The return codes CMPI_RC_ERR_INVALID_NAMESPACE, CMPI_RC_ERR_INVALID_PARAMETER, and CMPI_RC_ERR_INVALID_CLASS for this function are deprecated since CMPI 2.1, because the corresponding conditions have already been verified by the MB.

This function is deprecated since CMPI 2.1, in accord with the deprecation of property client operations in DMTF specifications.

CMPIStatus(* CMPIPropertyMIFT::getProperty)(CMPIPropertyMI *mi, const CMPIContext *ctx, const CMPIResult *rslt, const CMPIObjectPath *instPath, const char *name)

Retrieve a property value of an existing instance. (Deprecated)

CMPIPropertyMIFT.getProperty() shall retrieve a property value of an existing instance, by accessing the underlying managed elements.

Parameters
miPoints to a CMPIPropertyMI structure.
ctxPoints to a CMPIContext object containing the context data for the invocation.
rsltPoints to a CMPIResult object that is the result data container. Upon successful return, the MI shall have put the retrieved property value into this container. The CMPIResultFT function to be used for that depends on the data type of the property, as follows:
instPathPoints to a CMPIObjectPath object that references the given instance and that contains the namespace, class name, and key components. The hostname component, if present, has no meaning and should be ignored.
nameProperty name.
Returns
CMPIStatus structure containing the function return status.
Errors
The following table lists the CMPIrc codes that shall be used by the MI in the function return status, as well as the WBEM operation messages that should be used in the CMPIError object if the MI supports extended error handling (see the corresponding Extended Errors capability):
CMPIRCCodeCMPIErrorMsgDescription
CMPI_RC_OKN/A Function Successful.
CMPI_RC_ERR_NOT_SUPPORTEDWIPG0228 Function is not supported by the MB.
CMPI_RC_ERR_ACCESS_DENIEDWIPG0201 Not authorized.
CMPI_RC_ERR_INVALID_NAMESPACEN/A The namespace specified in instPath is invalid or does not exist. (Deprecated)
CMPI_RC_ERR_INVALID_PARAMETERN/A The parameter is invalid. (Deprecated)
CMPI_RC_ERR_INVALID_CLASSN/A The class specified in instPath is invalid or does not exist. (Deprecated)
CMPI_RC_ERR_NOT_FOUNDWIPG0213 Instance not found.
CMPI_RC_ERR_NO_SUCH_PROPERTYWIPG0220 No such property.
CMPI_RC_ERR_FAILEDWIPG0243 Timeout occurred.
CMPI_RC_ERR_FAILEDWIPG0227 + implementation-specific message Other error occurred.
Convenience Function
CMPropertyMIStub()
Addition:
Added in CMPI 2.0.
Deprecated:

The return codes CMPI_RC_ERR_INVALID_NAMESPACE, CMPI_RC_ERR_INVALID_PARAMETER, and CMPI_RC_ERR_INVALID_CLASS for this function are deprecated since CMPI 2.1, because the corresponding conditions have already been verified by the MB.

This function is deprecated since CMPI 2.1, in accord with the deprecation of property client operations in DMTF specifications.

CMPIStatus(* CMPIPropertyMIFT::setPropertyWithOrigin)(CMPIPropertyMI *mi, const CMPIContext *ctx, const CMPIResult *rslt, CMPIObjectPath *instPath, const char *name, const CMPIData data, const char *origin)

Set the value and origin of a property of an existing instance. (Deprecated)

CMPIPropertyMIFT.setPropertyWithOrigin() shall set the value and origin of a property of an existing instance, by accessing the underlying managed elements.

This function is provided by the MI in context of a particular MI name. The class of instPath for which this function will be called by the MB depends on the specifics of how the MB relates classes and MI names, which is out of scope for this standard. As a result, the MB may call this function for classes for which the MI is not responsible. In order for an MI to be portable across MB implementations with different approaches to relate MI names and classes, the MI must check whether it services the class specified in instPath.

Parameters
miPoints to a CMPIPropertyMI structure.
ctxPoints to a CMPIContext object containing the context data for the invocation.
rsltPoints to a CMPIResult object that is the result data container. Upon successful return, the MI shall have left this container empty.
instPathPoints to a CMPIObjectPath object that references the instance to be retrieved and that contains the namespace, class name, and key components. The hostname component, if present, has no meaning and should be ignored.
nameProperty name.
dataA CMPIData structure specifying the value to be assigned to the property.
originOrigin (class name) to be set for the property. If NULL, no origin is set for the property.
Returns
CMPIStatus structure containing the function return status.
Errors
The following table lists the CMPIrc codes that shall be used by the MI in the function return status, as well as the WBEM operation messages that should be used in the CMPIError object if the MI supports extended error handling (see the corresponding Extended Errors capability):
CMPIRCCodeCMPIErrorMsgDescription
CMPI_RC_OKN/A Function Successful.
CMPI_RC_ERR_NOT_SUPPORTEDWIPG0228 Function is not supported by the MB.
CMPI_RC_ERR_ACCESS_DENIEDWIPG0201 Not authorized.
CMPI_RC_ERR_INVALID_NAMESPACEN/A The namespace specified in instPath is invalid or does not exist. (Deprecated)
CMPI_RC_ERR_INVALID_PARAMETERN/A The parameter is invalid. (Deprecated)
CMPI_RC_ERR_INVALID_CLASSN/A The class specified in instPath is invalid or does not exist. (Deprecated)
CMPI_RC_ERR_NOT_FOUNDWIPG0213 Instance not found.
CMPI_RC_ERR_NO_SUCH_PROPERTYWIPG0220 No such property.
CMPI_RC_ERR_FAILEDWIPG0243 Timeout occurred.
CMPI_RC_ERR_FAILEDWIPG0227 + implementation-specific message Other error occurred.
Convenience Function
CMPropertyMIStub()
Addition:
Added in CMPI 2.0.
Deprecated:

The return codes CMPI_RC_ERR_INVALID_NAMESPACE, CMPI_RC_ERR_INVALID_PARAMETER, and CMPI_RC_ERR_INVALID_CLASS for this function are deprecated since CMPI 2.1, because the corresponding conditions have already been verified by the MB.

This function is deprecated since CMPI 2.1, in accord with the deprecation of property client operations in DMTF specifications.


The documentation for this struct was generated from the following file: