Class ThreadPoolTaskSchedulerPingTest

java.lang.Object
net.solarnetwork.central.scheduler.ThreadPoolTaskSchedulerPingTest
All Implemented Interfaces:
net.solarnetwork.service.PingTest

public class ThreadPoolTaskSchedulerPingTest extends Object implements net.solarnetwork.service.PingTest
PingTest for monitoring a thread pool executor.
  • Constructor Details

    • ThreadPoolTaskSchedulerPingTest

      public ThreadPoolTaskSchedulerPingTest(org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler)
      Constructor.

      The ID will be set to this class' name, plus the executor's thread name prefix if available.

      Parameters:
      scheduler - the scheduler to monitor
    • ThreadPoolTaskSchedulerPingTest

      public ThreadPoolTaskSchedulerPingTest(String id, org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler)
      Constructor.
      Parameters:
      id - the ping test ID
      scheduler - the scheduler to monitor
  • Method Details

    • getPingTestId

      public String getPingTestId()
      Specified by:
      getPingTestId in interface net.solarnetwork.service.PingTest
    • getPingTestName

      public String getPingTestName()
      Specified by:
      getPingTestName in interface net.solarnetwork.service.PingTest
    • getPingTestMaximumExecutionMilliseconds

      public long getPingTestMaximumExecutionMilliseconds()
      Specified by:
      getPingTestMaximumExecutionMilliseconds in interface net.solarnetwork.service.PingTest
    • performPingTest

      public net.solarnetwork.service.PingTest.Result performPingTest() throws Exception
      Specified by:
      performPingTest in interface net.solarnetwork.service.PingTest
      Throws:
      Exception