Class Tasks
java.lang.Object
io.openems.edge.core.appmanager.dependency.Tasks
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Task
<ComponentConfiguration> component
(EdgeConfig.Component... components) Creates aTask
for setting theComponentConfiguration
.static Task
<ComponentConfiguration> component
(List<EdgeConfig.Component> components) Creates aTask
for setting theComponentConfiguration
.persistencePredictor
(String... channels) Creates a Task for setting thePersistencePredictorConfiguration
.persistencePredictor
(Set<String> channels) Creates a Task for setting thePersistencePredictorConfiguration
.static Task
<SchedulerConfiguration> Creates a Task for setting theSchedulerConfiguration
.static Task
<SchedulerConfiguration> Creates a Task for setting theSchedulerConfiguration
.schedulerByCentralOrder
(SchedulerByCentralOrderConfiguration.SchedulerComponent... componentOrder) Creates a Task for setting theSchedulerByCentralOrderConfiguration
.schedulerByCentralOrder
(List<SchedulerByCentralOrderConfiguration.SchedulerComponent> componentOrder) Creates a Task for setting theSchedulerByCentralOrderConfiguration
.static Task
<StaticIpConfiguration> staticIp
(InterfaceConfiguration... interfaceConfiguration) Creates aTask
for setting theStaticIpConfiguration
.static Task
<StaticIpConfiguration> staticIp
(List<InterfaceConfiguration> interfaceConfiguration) Creates aTask
for setting theStaticIpConfiguration
.
-
Constructor Details
-
Tasks
public Tasks()
-
-
Method Details
-
component
Creates aTask
for setting theComponentConfiguration
.- Parameters:
components
- the components to create or update- Returns:
- the
Task
-
component
Creates aTask
for setting theComponentConfiguration
.- Parameters:
components
- the components to create or update- Returns:
- the
Task
-
staticIp
public static Task<StaticIpConfiguration> staticIp(List<InterfaceConfiguration> interfaceConfiguration) Creates aTask
for setting theStaticIpConfiguration
.- Parameters:
interfaceConfiguration
- theInterfaceConfiguration
to set- Returns:
- the
Task
-
staticIp
public static Task<StaticIpConfiguration> staticIp(InterfaceConfiguration... interfaceConfiguration) Creates aTask
for setting theStaticIpConfiguration
.- Parameters:
interfaceConfiguration
- theInterfaceConfiguration
to set- Returns:
- the
Task
-
scheduler
Creates a Task for setting theSchedulerConfiguration
.- Parameters:
componentOrder
- the order of the components in the scheduler- Returns:
- the
Task
to run when creating theOpenemsAppInstance
-
scheduler
Creates a Task for setting theSchedulerConfiguration
.- Parameters:
componentOrder
- the order of the components in the scheduler- Returns:
- the
Task
to run when creating theOpenemsAppInstance
-
schedulerByCentralOrder
public static Task<SchedulerByCentralOrderConfiguration> schedulerByCentralOrder(List<SchedulerByCentralOrderConfiguration.SchedulerComponent> componentOrder) Creates a Task for setting theSchedulerByCentralOrderConfiguration
.- Parameters:
componentOrder
- the order of the components in the scheduler- Returns:
- the
Task
to run when creating theOpenemsAppInstance
-
schedulerByCentralOrder
public static Task<SchedulerByCentralOrderConfiguration> schedulerByCentralOrder(SchedulerByCentralOrderConfiguration.SchedulerComponent... componentOrder) Creates a Task for setting theSchedulerByCentralOrderConfiguration
.- Parameters:
componentOrder
- the order of the components in the scheduler- Returns:
- the
Task
to run when creating theOpenemsAppInstance
-
persistencePredictor
Creates a Task for setting thePersistencePredictorConfiguration
.- Parameters:
channels
- the channels that need to be in the predictor- Returns:
- the
Task
to run when creating theOpenemsAppInstance
-
persistencePredictor
Creates a Task for setting thePersistencePredictorConfiguration
.- Parameters:
channels
- the channels that need to be in the predictor- Returns:
- the
Task
to run when creating theOpenemsAppInstance
-