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,
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.
|
Optional<Actions.Response> changeNetwork(int minerId, Network network, boolean compress)
minerId - The miner ID.network - The new network configuration.compress - If the request should be compressed.Optional<Actions.Response> changePools(int minerId, List<Pool> pools, boolean compress)
minerId - The miner ID.pools - The new pools.compress - If the request should be compressed.Optional<Actions.Response> changePowerMode(int minerId, Actions.PowerMode mode, boolean compress)
minerId - The miner ID.mode - The power mode.compress - If the request should be compressed.Optional<StatusRunning> status(int command)
command - The command.Copyright © 2025 OBM, LLC. All rights reserved.