HP WBEM Services Software Developer's Kit for HP-UX Provider and Client Developer's Guide A.01
Provider Implementation
Provider Design Considerations
Chapter 4 61
• SupportedProperties
lists the properties supported by this provider. If this array is NULL,
the provider MUST support all of the properties defined in the class.
If the provider does not support all of the properties, the properties
supported MUST be included in the array.
• SupportedMethods
lists the methods supported by this provider. If this array is NULL,
the provider MUST support all the methods defined in the class. If
the provider does not support all the methods, the methods
supported MUST be included in the array.
MOF Example 4-7, below, shows a class definition. Example 4-8,
following that, shows an instance of PG_ProviderCapabilities that
associates the provider with the newly created class:
Example 4-7 MOF declaration of the class ACME_ComputerSystem
[ Description (
"The class ACME_ComputerSystem extends CIM_ComputerSystem "
"to add several properties containing additional owner "
"contact information." ),
Version( "1.2" ) ]
class ACME_ComputerSystem : CIM_ComputerSystem{
[ Description(
"Additional contact information for the primary "
"owner for this computer system. This is intended "
"to be the telephone number of a pager." ) ]
string PrimaryOwnerPager;
...
};
Example 4-8 PG_ProviderCapabilities: A MOF instance
instance of PG_ProviderCapabilities
{
// Properties inherited from CIM_ManagedElement
Caption = "ComputerSystemProvider Capabilities"; // not required
Description = "First capability description for the "
"Computer System Provider"; // not required
// Properties local to PG_ProviderCapabilities
ProviderModuleName = "ComputerSystemModule"; // required
ProviderName = "ACME_ComputerSystemProvider"; // required
CapabilityID = "1"; // required