HP Operations Manager for Windows

OV_Service::GetDependencyWeightFactor()
OV_Service::GetDependencyWeightFactor_Trans()


real32 GetDependencyWeightFactor(
[in] string AntecedentService)
real32 GetDependencyWeightFactor_Trans(
[in] string TransId,
[in] string AntecedentService)

Parameters

TransId
Transaction ID returned from OV_Transaction::Start().
AntecedentService
The Name property of the service (instance of OV_Service) on which this service is dependent.

Calling Convention

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

Description

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

If the service dependency does not exist, the method fails with MDLAPI_E_SVC_DEP_ASSOC_NOT_EXIST. If the message weight factor value does not exist, the method returns MDLAPI_E_PROPERTY_MISSING.

Return Value

Message weight factor of this service.

Extended Status Codes

MDLAPI_E_SVC_DEP_ASSOC_NOT_EXIST
Service dependency does not exist.
MDLAPI_E_PROPERTY_MISSING
Property is not set.
MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.