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,
boolean compress)
Changes the network for the provided miner.
|
Optional<Actions.Response> |
changePools(int minerId,
List<Pool> pools,
boolean compress)
Changes the pools for the provided miner.
|
Optional<Actions.Response> |
changePowerMode(int minerId,
Actions.PowerMode mode,
boolean compress)
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, boolean compress)
ActionschangeNetwork in interface ActionsminerId - The miner ID.network - The new network configuration.compress - If the request should be compressed.public Optional<Actions.Response> changePools(int minerId, List<Pool> pools, boolean compress)
ActionschangePools in interface ActionsminerId - The miner ID.pools - The new pools.compress - If the request should be compressed.public Optional<Actions.Response> changePowerMode(int minerId, Actions.PowerMode mode, boolean compress)
ActionschangePowerMode in interface ActionsminerId - The miner ID.mode - The power mode.compress - If the request should be compressed.public Optional<StatusRunning> status(int command)
ActionsCopyright © 2025 OBM, LLC. All rights reserved.