Class ThreadPoolTaskExecutorPingTest
java.lang.Object
net.solarnetwork.central.scheduler.ThreadPoolTaskExecutorPingTest
- All Implemented Interfaces:
net.solarnetwork.service.PingTest
public class ThreadPoolTaskExecutorPingTest
extends Object
implements net.solarnetwork.service.PingTest
PingTest for monitoring a thread pool executor.-
Nested Class Summary
Nested classes/interfaces inherited from interface net.solarnetwork.service.PingTest
net.solarnetwork.service.PingTest.Result -
Constructor Summary
ConstructorsConstructorDescriptionThreadPoolTaskExecutorPingTest(String id, org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor) Constructor.ThreadPoolTaskExecutorPingTest(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionlongnet.solarnetwork.service.PingTest.Result
-
Constructor Details
-
ThreadPoolTaskExecutorPingTest
public ThreadPoolTaskExecutorPingTest(org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor) Constructor.The ID will be set to this class' name, plus the executor's thread name prefix if available.
- Parameters:
executor- the executor to monitor
-
ThreadPoolTaskExecutorPingTest
public ThreadPoolTaskExecutorPingTest(String id, org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor executor) Constructor.- Parameters:
id- the ping test IDexecutor- the executor to monitor
-
-
Method Details
-
getPingTestId
- Specified by:
getPingTestIdin interfacenet.solarnetwork.service.PingTest
-
getPingTestName
- Specified by:
getPingTestNamein interfacenet.solarnetwork.service.PingTest
-
getPingTestMaximumExecutionMilliseconds
public long getPingTestMaximumExecutionMilliseconds()- Specified by:
getPingTestMaximumExecutionMillisecondsin interfacenet.solarnetwork.service.PingTest
-
performPingTest
- Specified by:
performPingTestin interfacenet.solarnetwork.service.PingTest- Throws:
Exception
-