Class StaticIpAggregateTaskImpl
java.lang.Object
io.openems.edge.core.appmanager.dependency.aggregatetask.StaticIpAggregateTaskImpl
- All Implemented Interfaces:
AggregateTask<StaticIpConfiguration>
,StaticIpAggregateTask
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.openems.edge.core.appmanager.dependency.aggregatetask.AggregateTask
AggregateTask.AggregateTaskExecuteConstraints
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
aggregate
(StaticIpConfiguration instance, StaticIpConfiguration oldConfig) Aggregates the given instance.void
create
(User user, List<AppConfiguration> otherAppConfigurations) e.void
delete
(User user, List<AppConfiguration> otherAppConfigurations) e.Gets a general message for the user if any operations fails.void
reset()
Resets the task.void
validate
(List<String> errors, AppConfiguration appConfiguration, StaticIpConfiguration config) Validates the expected configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.openems.edge.core.appmanager.dependency.aggregatetask.AggregateTask
getExecuteConstraints
-
Constructor Details
-
StaticIpAggregateTaskImpl
-
-
Method Details
-
reset
public void reset()Description copied from interface:AggregateTask
Resets the task.- Specified by:
reset
in interfaceAggregateTask<StaticIpConfiguration>
-
aggregate
Description copied from interface:AggregateTask
Aggregates the given instance.- Specified by:
aggregate
in interfaceAggregateTask<StaticIpConfiguration>
- Parameters:
instance
- theAppConfiguration
of the instanceoldConfig
- the old configuration of the instance
-
create
public void create(User user, List<AppConfiguration> otherAppConfigurations) throws OpenemsError.OpenemsNamedException Description copied from interface:AggregateTask
e. g. creates components that were aggregated by the instances and my also delete unused components.- Specified by:
create
in interfaceAggregateTask<StaticIpConfiguration>
- Parameters:
user
- the executing userotherAppConfigurations
- the other existingAppConfiguration
s- Throws:
OpenemsError.OpenemsNamedException
- on error
-
delete
public void delete(User user, List<AppConfiguration> otherAppConfigurations) throws OpenemsError.OpenemsNamedException Description copied from interface:AggregateTask
e. g. deletes components that were aggregated.- Specified by:
delete
in interfaceAggregateTask<StaticIpConfiguration>
- Parameters:
user
- the executing userotherAppConfigurations
- the other existingAppConfiguration
s- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getGeneralFailMessage
Description copied from interface:AggregateTask
Gets a general message for the user if any operations fails.- Specified by:
getGeneralFailMessage
in interfaceAggregateTask<StaticIpConfiguration>
- Parameters:
l
- theLanguage
of the message- Returns:
- the error message
-
validate
public void validate(List<String> errors, AppConfiguration appConfiguration, StaticIpConfiguration config) Description copied from interface:AggregateTask
Validates the expected configuration.- Specified by:
validate
in interfaceAggregateTask<StaticIpConfiguration>
- Parameters:
errors
- the errors that occur during the validationappConfiguration
- the whole configurationconfig
- the configuration to validate
-