Class FaultInjectionRule

java.lang.Object
com.azure.cosmos.test.faultinjection.FaultInjectionRule

public final class FaultInjectionRule extends Object
Fault injection rule.
  • Method Details

    • getCondition

      public FaultInjectionCondition getCondition()
      Get the fault injection condition.
      Returns:
      the FaultInjectionCondition.
    • getResult

      public IFaultInjectionResult getResult()
      Get the fault injection result.
      Returns:
      the IFaultInjectionResult.
    • getDuration

      public Duration getDuration()
      Get the effective life span of the fault injection rule.
      Returns:
      the duration.
    • getStartDelay

      public Duration getStartDelay()
      Get the start delay of the fault injection rule.
      Returns:
      the start delay.
    • getHitLimit

      public Integer getHitLimit()
      Get the hit limit of the fault injection rule.
      Returns:
      the hit limit.
    • getId

      public String 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

      public List<String> getAddresses()
      Get the physical addresses of the fault injection rule.
      Returns:
      the list of physical addresses.
    • getRegionEndpoints

      public List<String> getRegionEndpoints()
      Get the region endpoints of the fault injection rule.
      Returns:
      the list of region endpoints.
    • toString

      public String toString()
      Overrides:
      toString in class Object