Package io.openems.edge.core.host
Class OperatingSystemWindows
java.lang.Object
io.openems.edge.core.host.OperatingSystemWindows
- All Implemented Interfaces:
OperatingSystem
OperatingSystem implementation for Windows.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the network configuration.Gets the USB configuration.Executes a command.void
handleSetNetworkConfigRequest
(User user, NetworkConfiguration oldNetworkConfiguration, SetNetworkConfigRequest request) Handles a SetNetworkConfigRequest.
-
Constructor Details
-
OperatingSystemWindows
protected OperatingSystemWindows()
-
-
Method Details
-
getNetworkConfiguration
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 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
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
-