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()
      Get the test ID.
      Returns:
      the test ID
    • getPingTestName

      public String getPingTestName()
      Get the test name.
      Returns:
      the name
    • getStart

      public Instant getStart()
      Get the start date.
      Returns:
      the start date
    • getEnd

      public Instant getEnd()
      Get the end date.
      Returns:
      the end date
    • getDuration

      public Duration getDuration()
      Get the duration.
      Returns:
      the duration