Package io.openems.edge.core.host
Class OperatingSystemWindows
- java.lang.Object
-
- io.openems.edge.core.host.OperatingSystemWindows
-
- All Implemented Interfaces:
OperatingSystem
public class OperatingSystemWindows extends java.lang.Object implements OperatingSystem
OperatingSystem implementation for Windows.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
OperatingSystemWindows()
-
Method Summary
All Methods Instance Methods Concrete 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(User user, NetworkConfiguration oldNetworkConfiguration, SetNetworkConfigRequest request)
Handles a SetNetworkConfigRequest.
-
-
-
Method Detail
-
getNetworkConfiguration
public NetworkConfiguration getNetworkConfiguration() throws OpenemsError.OpenemsNamedException
Description copied from interface:OperatingSystem
Gets the network configuration.- Specified by:
getNetworkConfiguration
in interfaceOperatingSystem
- Returns:
- the network configuration object
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
handleSetNetworkConfigRequest
public void handleSetNetworkConfigRequest(User user, NetworkConfiguration oldNetworkConfiguration, SetNetworkConfigRequest request) throws OpenemsError.OpenemsNamedException
Description copied from interface:OperatingSystem
Handles a SetNetworkConfigRequest.- Specified by:
handleSetNetworkConfigRequest
in interfaceOperatingSystem
- Parameters:
user
- the UseroldNetworkConfiguration
- the current/old network configurationrequest
- the SetNetworkConfigRequest- Throws:
OpenemsError.OpenemsNamedException
- on error
-
handleExecuteCommandRequest
public java.util.concurrent.CompletableFuture<ExecuteSystemCommandResponse> handleExecuteCommandRequest(ExecuteSystemCommandRequest request) throws NotImplementedException
Description copied from interface:OperatingSystem
Executes a command.- Specified by:
handleExecuteCommandRequest
in interfaceOperatingSystem
- Parameters:
request
- the ExecuteCommandRequest- Returns:
- a ExecuteCommandResponse
- Throws:
NotImplementedException
-
getUsbConfiguration
public java.lang.String getUsbConfiguration() throws OpenemsError.OpenemsNamedException
Description copied from interface:OperatingSystem
Gets the USB configuration.- Specified by:
getUsbConfiguration
in interfaceOperatingSystem
- Returns:
- the original configuration in textual form
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
-