HP Operations Manager for Windows

OV_Service::GetCompositionWeightFactor()
OV_Service::GetCompositionWeightFactor_Trans()


real32 GetCompositionWeightFactor(
[in] string ChildService)
real32 GetCompositionWeightFactor_Trans(
[in] string TransId,
[in] string ChildService)

Parameters

TransId
Transaction ID returned from OV_Transaction::Start().
ChildService
The Name property of the service (instance of OV_Service) that is the child of this service.

Calling Convention

These methods can be called only from a WMI instance object.

Description

Returns the weighting factor for the propagation between this service and the child service.

If the service composition does not exist, the method fails with MDLAPI_E_SVC_COMP_ASSOC_NOT_EXIST. If the propagation rule value does not exist, the method returns MDLAPI_E_PROPERTY_MISSING.

Return Value

Message weight factor of this service composition.

Extended Status Codes

MDLAPI_E_SVC_COMP_ASSOC_NOT_EXIST
Service composition does not exist.
MDLAPI_E_PROPERTY_MISSING
Property is not set.
MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.