Class LexoRankStatisticsAgent
java.lang.Object
com.atlassian.greenhopper.service.lexorank.LexoRankStatisticsAgent
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)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A scheduled job that generates a report of the collected statistics.static enum
Operations currently supported by the statistics agent.static enum
protected static class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
endOperation
(LexoRankStatisticsAgent.Operation operation) End a statistics operation.void
endOperationStep
(LexoRankStatisticsAgent.OperationStep operationStep) Finish processing any outstanding statistics events, and then generate a report.void
start()
Start the statistics agent.void
startOperation
(LexoRankStatisticsAgent.Operation operation) void
startOperationStep
(LexoRankStatisticsAgent.OperationStep operationStep) Start a statistics operation.void
stop()
Stop the statistics agent.
-
Field Details
-
log
-
-
Constructor Details
-
LexoRankStatisticsAgent
public LexoRankStatisticsAgent()
-
-
Method Details
-
start
public void start()Start the statistics agent. -
stop
public void stop()Stop the statistics agent. -
startOperation
-
startOperationStep
Start a statistics operation.- Parameters:
operationStep
- is the operation step name.
-
endOperation
End a statistics operation.- Parameters:
operation
- is the operation name.
-
endOperationStep
-
generateReport
Finish processing any outstanding statistics events, and then generate a report.- Returns:
- the report.
-