Class Checkables
java.lang.Object
io.openems.edge.core.appmanager.validator.Checkables
-
Method Summary
Modifier and TypeMethodDescriptioncheckAppsNotInstalled
(String... appIds) Creates aValidatorConfig.CheckableConfig
which checks if a app is installed which matches any of the given appIds.Creates aValidatorConfig.CheckableConfig
which checks if the installed system is a Home.checkRelayCount
(int count, InjectableComponentConfig... filters) Creates aValidatorConfig.CheckableConfig
which checks if any installed relay has at least the given amount of ports available.checkRelayCount
(String io, int count, InjectableComponentConfig... filters) Creates aValidatorConfig.CheckableConfig
which checks if the relay with the given name has at least the given amount of ports available.
-
Method Details
-
checkHome
Creates aValidatorConfig.CheckableConfig
which checks if the installed system is a Home.- Returns:
- the
ValidatorConfig.CheckableConfig
-
checkRelayCount
public static ValidatorConfig.CheckableConfig checkRelayCount(String io, int count, InjectableComponentConfig... filters) Creates aValidatorConfig.CheckableConfig
which checks if the relay with the given name has at least the given amount of ports available.- Parameters:
io
- the name of the relay or null if any relaycount
- the number of available portsfilters
- additional relay filter- Returns:
- the
ValidatorConfig.CheckableConfig
-
checkRelayCount
public static ValidatorConfig.CheckableConfig checkRelayCount(int count, InjectableComponentConfig... filters) Creates aValidatorConfig.CheckableConfig
which checks if any installed relay has at least the given amount of ports available.- Parameters:
count
- the number of available portsfilters
- additional relay filter- Returns:
- the
ValidatorConfig.CheckableConfig
-
checkAppsNotInstalled
Creates aValidatorConfig.CheckableConfig
which checks if a app is installed which matches any of the given appIds.- Parameters:
appIds
- the apps which should not be installed- Returns:
- the
ValidatorConfig.CheckableConfig
-