Actions.PowerMode, Actions.Response| Constructor and Description |
|---|
ActionsImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
WebUtil webUtil)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Actions.Response> |
changeNetwork(int minerId,
Network network)
Changes the network for the provided miner.
|
Optional<Actions.Response> |
changePools(int minerId,
List<Pool> pools)
Changes the pools for the provided miner.
|
Optional<Actions.Response> |
changePowerMode(int minerId,
Actions.PowerMode mode)
Changes the power mode for the provided miner.
|
Optional<StatusRunning> |
status(int command)
Gets the status of the provided command.
|
public ActionsImpl(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
WebUtil webUtil)
objectMapper - The mapper.webUtil - The web utilities.public Optional<Actions.Response> changeNetwork(int minerId, Network network)
ActionschangeNetwork in interface ActionsminerId - The miner ID.network - The new network configuration.public Optional<Actions.Response> changePools(int minerId, List<Pool> pools)
ActionschangePools in interface ActionsminerId - The miner ID.pools - The new pools.public Optional<Actions.Response> changePowerMode(int minerId, Actions.PowerMode mode)
ActionschangePowerMode in interface ActionsminerId - The miner ID.mode - The power mode.public Optional<StatusRunning> status(int command)
ActionsCopyright © 2023 OBM, LLC. All rights reserved.