Interface BenchResultService
public interface BenchResultService
Provides common operations on
BenchResult
.- Author:
- jerome
-
Field Summary
Modifier and TypeFieldDescriptionstatic final BenchResultService
BenchResultService
singleton instance. -
Method Summary
Modifier and TypeMethodDescriptionfind
(RestApiFactory apiFactory, String benchResultId) Finds a bench result by its id.getProgress
(RestApiFactory apiFactory, String benchResultId) getState
(RestApiFactory apiFactory, String benchResultId) Refreshed the state of the given benchresult.boolean
isFinished
(BenchResult benchResult) Returns true when the bench result is finished.void
stopTest
(RestApiFactory apiFactory, String benchResultId) Stops the test.
-
Field Details
-
BENCH_RESULTS
BenchResultService
singleton instance.
-
-
Method Details
-
find
Finds a bench result by its id.- Parameters:
benchResultId
- bench result id- Returns:
- bench result, when found
- Throws:
IOException
-
getState
Refreshed the state of the given benchresult.- Parameters:
benchResultId
- bench result id- Returns:
- Throws:
IOException
-
getProgress
- Throws:
IOException
-
isFinished
Returns true when the bench result is finished.- Parameters:
benchResult
- bench result- Returns:
true
if the result execution is finished
-
stopTest
Stops the test.- Parameters:
benchResultId
- bench result id- Throws:
IOException
-