Class PingTestResultDisplay

java.lang.Object
net.solarnetwork.service.PingTestResult
net.solarnetwork.service.PingTestResultDisplay
All Implemented Interfaces:
PingTest.Result

public class PingTestResultDisplay extends PingTestResult
Extension of PingTestResult to support a UI layer.
Since:
1.52
Version:
2.0
Author:
matt
  • Constructor Details

    • PingTestResultDisplay

      public PingTestResultDisplay(PingTest test, PingTest.Result result, Instant start)
      Construct from a test and a result.
      Parameters:
      test - The test.
      result - The result.
      start - The time the test started.
      Throws:
      IllegalArgumentException - if any argument is null
  • Method Details

    • getPingTestId

      public String getPingTestId()
    • getPingTestName

      public String getPingTestName()
    • getStart

      public Instant getStart()
    • getEnd

      public Instant getEnd()
    • getDuration

      public Duration getDuration()