Class ComponentAggregateTaskImpl
- java.lang.Object
-
- io.openems.edge.core.appmanager.dependency.ComponentAggregateTaskImpl
-
- All Implemented Interfaces:
AggregateTask
,AggregateTask.ComponentAggregateTask
public class ComponentAggregateTaskImpl extends java.lang.Object implements AggregateTask, AggregateTask.ComponentAggregateTask
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.openems.edge.core.appmanager.dependency.AggregateTask
AggregateTask.ComponentAggregateTask, AggregateTask.SchedulerAggregateTask, AggregateTask.StaticIpAggregateTask
-
-
Constructor Summary
Constructors Constructor Description ComponentAggregateTaskImpl(ComponentManager componentManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
aggregate(AppConfiguration config, AppConfiguration oldConfig)
Aggregates the given instance.void
create(User user, java.util.List<AppConfiguration> otherAppConfigurations)
e.void
delete(User user, java.util.List<AppConfiguration> otherAppConfigurations)
deletes the given components only if they are not in notMyComponents.java.util.List<EdgeConfig.Component>
getCreatedComponents()
Gets the Components that were created.java.util.List<java.lang.String>
getDeletedComponents()
Gets the Components that were deleted.void
reset()
Resets the task.
-
-
-
Constructor Detail
-
ComponentAggregateTaskImpl
public ComponentAggregateTaskImpl(ComponentManager componentManager)
-
-
Method Detail
-
reset
public void reset()
Description copied from interface:AggregateTask
Resets the task.- Specified by:
reset
in interfaceAggregateTask
-
aggregate
public void aggregate(AppConfiguration config, AppConfiguration oldConfig)
Description copied from interface:AggregateTask
Aggregates the given instance.- Specified by:
aggregate
in interfaceAggregateTask
- Parameters:
config
- theAppConfiguration
of the instanceoldConfig
- the old configuration of the instance
-
create
public void create(User user, java.util.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
- Parameters:
user
- the executing userotherAppConfigurations
- the other existingAppConfiguration
s- Throws:
OpenemsError.OpenemsNamedException
- on error
-
delete
public void delete(User user, java.util.List<AppConfiguration> otherAppConfigurations) throws OpenemsError.OpenemsNamedException
deletes the given components only if they are not in notMyComponents.- Specified by:
delete
in interfaceAggregateTask
- Parameters:
user
- the executing userotherAppConfigurations
- the otherAppConfiguration
s- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getCreatedComponents
public java.util.List<EdgeConfig.Component> getCreatedComponents()
Description copied from interface:AggregateTask.ComponentAggregateTask
Gets the Components that were created.- Specified by:
getCreatedComponents
in interfaceAggregateTask.ComponentAggregateTask
- Returns:
- the created
EdgeConfig.Component
-
getDeletedComponents
public java.util.List<java.lang.String> getDeletedComponents()
Description copied from interface:AggregateTask.ComponentAggregateTask
Gets the Components that were deleted.- Specified by:
getDeletedComponents
in interfaceAggregateTask.ComponentAggregateTask
- Returns:
- the id's of the deleted
EdgeConfig.Component
-
-