public interface Pickaxe
Pickaxe provides a handler for interacting with the
/api/pickaxe Foreman API endpoint.| Modifier and Type | Interface and Description |
|---|---|
static class |
Pickaxe.CancelledCommands
All of the cancelled commands.
|
static class |
Pickaxe.InfrastructureConfig
An infrastructure configuration.
|
static class |
Pickaxe.InfrastructureStats
The stats for a device.
|
static class |
Pickaxe.MinerConfig
A miner configuration.
|
static class |
Pickaxe.PickaxeConfiguration
The pickaxe configuration.
|
static class |
Pickaxe.PickaxeInstance
A pickaxe instance.
|
| Modifier and Type | Method and Description |
|---|---|
List<Pickaxe.PickaxeInstance> |
all()
Returns all of the pickaxes.
|
Optional<List<String>> |
cancelCommands()
Cancels all of the pending or in-progress commands on this Pickaxe.
|
Optional<CommandDone.Response> |
commandDone(CommandDone done,
String commandId,
boolean compress)
Sends a command completion to the Foreman API.
|
Optional<CommandDoneBatch.Response> |
commandDoneBatch(CommandDoneBatch done,
boolean compress)
Sends command completions to the Foreman API.
|
Optional<CommandStart.Response> |
commandStarted(CommandStart start,
boolean compress)
Sends a command started to the Foreman API.
|
Optional<CommandStartBatch.Response> |
commandStartedBatch(CommandStartBatch start,
boolean compress)
Sends command starts to the Foreman API.
|
Optional<CommandUpdate.Response> |
commandUpdate(CommandUpdate update,
String commandId,
boolean compress)
Sends a command update to the Foreman API.
|
Optional<CommandUpdateBatch.Response> |
commandUpdateBatch(CommandUpdateBatch update,
boolean compress)
Sends command updates to the Foreman API.
|
Optional<Pickaxe.PickaxeConfiguration> |
config()
Obtains the configuration.
|
Optional<Commands> |
getCommands()
Queries for pending commands to be executed.
|
Optional<List<Pickaxe.InfrastructureConfig>> |
infrastructureConfigs()
Returns the infrastructure configs.
|
boolean |
infrastructureUpdate(List<Pickaxe.InfrastructureStats> stats,
boolean compress)
Publishes the provided stats to the Foreman API.
|
Optional<List<Pickaxe.MinerConfig>> |
minerConfigs(String version,
String hostname,
String hostIp)
Returns the miner configurations.
|
boolean |
started()
Informs Foreman that the Pickaxe has started.
|
boolean |
updateMacs(Map<Miners.Miner,String> newMacs,
boolean compress)
Sets the MACs for the provided miners.
|
List<Pickaxe.PickaxeInstance> all()
Optional<List<String>> cancelCommands()
Optional<CommandDone.Response> commandDone(CommandDone done, String commandId, boolean compress)
done - The completed command.commandId - The referencing command ID.compress - If the request should be compressed.Optional<CommandDoneBatch.Response> commandDoneBatch(CommandDoneBatch done, boolean compress)
done - The completed commands.compress - If the request should be compressed.Optional<CommandStart.Response> commandStarted(CommandStart start, boolean compress)
start - The started command.compress - If the request should be compressed.Optional<CommandStartBatch.Response> commandStartedBatch(CommandStartBatch start, boolean compress)
start - The started commands.compress - If the request should be compressed.Optional<CommandUpdate.Response> commandUpdate(CommandUpdate update, String commandId, boolean compress)
update - The updated command.commandId - The referencing command ID.compress - If the request should be compressed.Optional<CommandUpdateBatch.Response> commandUpdateBatch(CommandUpdateBatch update, boolean compress)
update - The updates.compress - If the request should be compressed.Optional<Pickaxe.PickaxeConfiguration> config()
Optional<Commands> getCommands()
Optional<List<Pickaxe.InfrastructureConfig>> infrastructureConfigs()
boolean infrastructureUpdate(List<Pickaxe.InfrastructureStats> stats, boolean compress)
stats - The stats.compress - If the request should be compressed.Optional<List<Pickaxe.MinerConfig>> minerConfigs(String version, String hostname, String hostIp)
version - The version.hostname - The hostname.hostIp - The host IP.boolean started()
boolean updateMacs(Map<Miners.Miner,String> newMacs, boolean compress)
newMacs - The new MACs.compress - If the request should be compressed.Copyright © 2025 OBM, LLC. All rights reserved.