public interface Actions
Actions provides a handler for interacting with the
/api/actions Foreman API endpoint.| Modifier and Type | Interface and Description |
|---|---|
static class |
Actions.PowerMode
All of the known power modes.
|
static class |
Actions.Response
An action response.
|
| 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.
|
Optional<Actions.Response> changeNetwork(int minerId, Network network)
minerId - The miner ID.network - The new network configuration.Optional<Actions.Response> changePools(int minerId, List<Pool> pools)
minerId - The miner ID.pools - The new pools.Optional<Actions.Response> changePowerMode(int minerId, Actions.PowerMode mode)
minerId - The miner ID.mode - The power mode.Optional<StatusRunning> status(int command)
command - The command.Copyright © 2023 OBM, LLC. All rights reserved.