Package org.anchoranalysis.core.time
Class OperationContext
Object
OperationContext
Context objects for general operations that allow for logging and recording execution time.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionOperationContext
(Logger logger) Creates with aLogger
ignoring execution-times.OperationContext
(ExecutionTimeRecorder executionTimeRecorder, Logger logger) Creates a newOperationContext
instance. -
Method Summary
-
Constructor Details
-
OperationContext
Creates with aLogger
ignoring execution-times.- Parameters:
logger
- the logger.
-
OperationContext
Creates a newOperationContext
instance.- Parameters:
executionTimeRecorder
- Allows for the execution time of certain operations to be recorded.logger
- Where to write informative messages to, and and any non-fatal errors (fatal errors are throw as exceptions).
-
-
Method Details
-
getExecutionTimeRecorder
Allows for the execution time of certain operations to be recorded. -
getLogger
Where to write informative messages to, and and any non-fatal errors (fatal errors are throw as exceptions). -
equals
-
hashCode
public int hashCode() -
toString
-