Class FaultInjectionRule
java.lang.Object
com.azure.cosmos.test.faultinjection.FaultInjectionRule
Fault injection rule.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
disable()
Disable the fault injection rule.Get the physical addresses of the fault injection rule.Get the fault injection condition.Get the effective life span of the fault injection rule.long
Get the count of how many times the rule has applied.Get the hit limit of the fault injection rule.getId()
Get the fault injection rule id.Get the region endpoints of the fault injection rule.Get the fault injection result.Get the start delay of the fault injection rule.boolean
Get flag to indicate whether the rule is enabled.toString()
-
Method Details
-
getCondition
Get the fault injection condition.- Returns:
- the
FaultInjectionCondition
.
-
getResult
Get the fault injection result.- Returns:
- the
IFaultInjectionResult
.
-
getDuration
Get the effective life span of the fault injection rule.- Returns:
- the duration.
-
getStartDelay
Get the start delay of the fault injection rule.- Returns:
- the start delay.
-
getHitLimit
Get the hit limit of the fault injection rule.- Returns:
- the hit limit.
-
getId
Get the fault injection rule id.- Returns:
- the id.
-
isEnabled
public boolean isEnabled()Get flag to indicate whether the rule is enabled.- Returns:
- the flag to indicate whether the rule is enabled.
-
disable
public void disable()Disable the fault injection rule. -
getHitCount
public long getHitCount()Get the count of how many times the rule has applied.- Returns:
- the hit count.
-
getAddresses
Get the physical addresses of the fault injection rule.- Returns:
- the list of physical addresses.
-
getRegionEndpoints
Get the region endpoints of the fault injection rule.- Returns:
- the list of region endpoints.
-
toString
-