HP Operations Manager for Windows

OV_Service::SetDependencyWeightFactor()
OV_Service::SetDependencyWeightFactor_Trans()


void SetDependencyWeightFactor(
[in] string AntecedentService,
[in] real32 MsgWeightFactor)
void SetDependencyWeightFactor_Trans(
[in] string TransId,
[in] string AntecedentService,
[in] real32 MsgWeightFactor)

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.
MsgWeightFactor
New WeightFactor property value of this service dependency.

Calling Convention

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

Description

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

If the new message weight factor value is not valid, the method returns MDLAPI_E_INVALID_PARAMETER. If the service dependency does not exist, the method fails with MDLAPI_E_SVC_DEP_ASSOC_NOT_EXIST.

Return Value

None.

Extended Status Codes

MDLAPI_E_INVALID_PARAMETER
Parameter is not valid.
MDLAPI_E_SVC_DEP_ASSOC_NOT_EXIST
Service dependency does not exist.
MDLAPI_E_TRANSACTION_NOT_EXIST
Transaction with the specified ID does not exist.