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
-
Method Summary
Modifier and TypeMethodDescriptionGets the network configuration.Gets the USB configuration.Executes a command.CompletableFuture
<? extends JsonrpcResponseSuccess> Executes a system restart (soft or hard).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
-
handleExecuteSystemCommandRequest
public CompletableFuture<ExecuteSystemCommandResponse> handleExecuteSystemCommandRequest(ExecuteSystemCommandRequest request) throws NotImplementedException Description copied from interface:OperatingSystem
Executes a command.- Specified by:
handleExecuteSystemCommandRequest
in interfaceOperatingSystem
- Parameters:
request
- theExecuteSystemCommandRequest
- Returns:
- a
ExecuteSystemCommandResponse
- 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
-
handleExecuteSystemRestartRequest
public CompletableFuture<? extends JsonrpcResponseSuccess> handleExecuteSystemRestartRequest(ExecuteSystemRestartRequest request) throws NotImplementedException Description copied from interface:OperatingSystem
Executes a system restart (soft or hard).- Specified by:
handleExecuteSystemRestartRequest
in interfaceOperatingSystem
- Parameters:
request
- theExecuteSystemRestartRequest
- Returns:
- an
ExecuteSystemRestartResponse
- Throws:
NotImplementedException
-