Package io.openems.edge.core.host
Interface OperatingSystem
-
- All Known Implementing Classes:
OperatingSystemDebianSystemd
,OperatingSystemWindows
public interface OperatingSystem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NetworkConfiguration
getNetworkConfiguration()
Gets the network configuration.java.lang.String
getUsbConfiguration()
Gets the USB configuration.java.util.concurrent.CompletableFuture<ExecuteSystemCommandResponse>
handleExecuteCommandRequest(ExecuteSystemCommandRequest request)
Executes a command.void
handleSetNetworkConfigRequest(NetworkConfiguration oldNetworkConfiguration, SetNetworkConfigRequest request)
Handles a SetNetworkConfigRequest.
-
-
-
Method Detail
-
getNetworkConfiguration
NetworkConfiguration getNetworkConfiguration() throws OpenemsError.OpenemsNamedException
Gets the network configuration.- Returns:
- the network configuration object
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
handleSetNetworkConfigRequest
void handleSetNetworkConfigRequest(NetworkConfiguration oldNetworkConfiguration, SetNetworkConfigRequest request) throws OpenemsError.OpenemsNamedException
Handles a SetNetworkConfigRequest.- Parameters:
oldNetworkConfiguration
- the current/old network configurationrequest
- the SetNetworkConfigRequest- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getUsbConfiguration
java.lang.String getUsbConfiguration() throws OpenemsError.OpenemsNamedException
Gets the USB configuration.- Returns:
- the original configuration in textual form
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
handleExecuteCommandRequest
java.util.concurrent.CompletableFuture<ExecuteSystemCommandResponse> handleExecuteCommandRequest(ExecuteSystemCommandRequest request) throws OpenemsError.OpenemsNamedException
Executes a command.- Parameters:
request
- the ExecuteCommandRequest- Returns:
- a ExecuteCommandResponse
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
-