Class LexoRankStatisticsAgent

java.lang.Object
com.atlassian.greenhopper.service.lexorank.LexoRankStatisticsAgent

@Service public class LexoRankStatisticsAgent extends Object
This class collects LexoRankManager statistics. This is done by calling the startOperation, endOperation at the start and end of rank operations, and calling startOperationStep and endOperationStep at the start nad end of operation steps. The agent will then have enough information to determine the frequency and duration of these operations and operation steps. Operation steps are nested within operations, eg startOperation(RANK_AFTER) startOperationStep(HEAL_RANKVALUE) endOperationStep(HEAL_RANKVALUE) startOperationStep(BACKOFF_YIELD) endOperationStep(BACKOFF_YIELD) endOperation(RANK_AFTER)
  • Field Details

  • Constructor Details

    • LexoRankStatisticsAgent

      public LexoRankStatisticsAgent()
  • Method Details

    • start

      public void start()
      Start the statistics agent.
    • stop

      public void stop()
      Stop the statistics agent.
    • startOperation

      public void startOperation(LexoRankStatisticsAgent.Operation operation)
    • startOperationStep

      public void startOperationStep(LexoRankStatisticsAgent.OperationStep operationStep)
      Start a statistics operation.
      Parameters:
      operationStep - is the operation step name.
    • endOperation

      public void endOperation(LexoRankStatisticsAgent.Operation operation)
      End a statistics operation.
      Parameters:
      operation - is the operation name.
    • endOperationStep

      public void endOperationStep(LexoRankStatisticsAgent.OperationStep operationStep)
    • generateReport

      public String generateReport()
      Finish processing any outstanding statistics events, and then generate a report.
      Returns:
      the report.