Class RepairConfiguration

java.lang.Object
com.atlassian.greenhopper.service.lexorank.repair.RepairConfiguration

@Component public class RepairConfiguration extends Object
Configuration for LexoRank repair.
  • Constructor Details

    • RepairConfiguration

      public RepairConfiguration()
  • Method Details

    • isRankRepairFeatureEnabled

      public boolean isRankRepairFeatureEnabled()
      Returns:
      true if the LexoRank repair feature is enabled. If it's disabled, no repairs will be performed. If it's enabled, analytics on rank health will be collected and repairs will be attempted based on the other configuration options.
    • isRepairProcessEnabled

      public boolean isRepairProcessEnabled()
      Returns:
      true if the LexoRank repair process is enabled and should be performed
    • isRepairProcessSynchronous

      public boolean isRepairProcessSynchronous()
      Returns:
      true if the LexoRank repair process is synchronous. If it's asynchronous, the repair process will be dispatched to a separate thread. If it's synchronous, the repair process will be executed in the same thread that triggered the repair.
    • getRankDiffToTriggerLocalRepair

      public int getRankDiffToTriggerLocalRepair()
      Returns:
      the minimal difference between lengths of two neighbouring ranks that triggers a local repair
    • getMaximumIssuesInLocalRepair

      public int getMaximumIssuesInLocalRepair()
      Returns:
      the maximum number of issues to be processed in a single local repair
    • getMinimumRanksRequired

      public int getMinimumRanksRequired()
      Returns:
      the minimum number of ranks required to perform a repair
    • getMinimumRankLengthChangeAllowed

      public int getMinimumRankLengthChangeAllowed()
      Returns:
      the minimum difference between existing rank length and recalculated rank length that we consider a significant improvement