Package net.solarnetwork.node.runtime
Class DefaultSystemHealthService
java.lang.Object
net.solarnetwork.service.support.BasicIdentifiable
net.solarnetwork.node.runtime.DefaultSystemHealthService
- All Implemented Interfaces:
SystemHealthService,net.solarnetwork.service.Identifiable
public class DefaultSystemHealthService
extends net.solarnetwork.service.support.BasicIdentifiable
implements SystemHealthService
Default implementation of
SystemHealthService.- Since:
- 2.2
- Version:
- 1.0
- Author:
- matt
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.solarnetwork.node.service.SystemHealthService
SystemHealthService.PingTestResults -
Field Summary
Fields inherited from interface net.solarnetwork.service.Identifiable
GROUP_UID_PROPERTY, UID_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSystemHealthService(List<net.solarnetwork.service.PingTest> tests) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionperformPingTests(Set<String> pingTestIds) Perform a set of ping tests and return their results.Methods inherited from class net.solarnetwork.service.support.BasicIdentifiable
basicIdentifiableMetadataSettings, basicIdentifiableSettings, basicIdentifiableSettings, basicIdentifiableSettings, doubleMetadataValue, getDisplayName, getGroupUid, getGroupUID, getMessageSource, getMetadata, getMetadataCount, getUid, getUID, integerMetadataValue, metadataValue, numberMetadataValue, saveMetadataValue, saveMetadataValue, setDisplayName, setGroupUid, setGroupUID, setMessageSource, setMetadata, setMetadataCount, setUid, setUID, smartMetadataValue
-
Constructor Details
-
DefaultSystemHealthService
Constructor.- Parameters:
tests- the list of all available tests- Throws:
IllegalArgumentException- if any argument is null
-
-
Method Details
-
performPingTests
Description copied from interface:SystemHealthServicePerform a set of ping tests and return their results.- Specified by:
performPingTestsin interfaceSystemHealthService- Parameters:
pingTestIds- an optional set of ID regular expressions to limit the tests to, or null or empty to perform all available tests- Returns:
- the results, never null
-