Pickaxe.CancelledCommands, Pickaxe.InfrastructureConfig, Pickaxe.InfrastructureStats, Pickaxe.MinerConfig, Pickaxe.PickaxeConfiguration, Pickaxe.PickaxeInstance| Constructor and Description |
|---|
PickaxeImpl(String clientId,
String pickaxeId,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
WebUtil webUtil)
Constructor.
|
| 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.
|
public List<Pickaxe.PickaxeInstance> all()
Pickaxepublic Optional<List<String>> cancelCommands()
PickaxecancelCommands in interface Pickaxepublic Optional<CommandDone.Response> commandDone(CommandDone done, String commandId, boolean compress)
PickaxecommandDone in interface Pickaxedone - The completed command.commandId - The referencing command ID.compress - If the request should be compressed.public Optional<CommandDoneBatch.Response> commandDoneBatch(CommandDoneBatch done, boolean compress)
PickaxecommandDoneBatch in interface Pickaxedone - The completed commands.compress - If the request should be compressed.public Optional<CommandStart.Response> commandStarted(CommandStart start, boolean compress)
PickaxecommandStarted in interface Pickaxestart - The started command.compress - If the request should be compressed.public Optional<CommandStartBatch.Response> commandStartedBatch(CommandStartBatch start, boolean compress)
PickaxecommandStartedBatch in interface Pickaxestart - The started commands.compress - If the request should be compressed.public Optional<CommandUpdate.Response> commandUpdate(CommandUpdate update, String commandId, boolean compress)
PickaxecommandUpdate in interface Pickaxeupdate - The updated command.commandId - The referencing command ID.compress - If the request should be compressed.public Optional<CommandUpdateBatch.Response> commandUpdateBatch(CommandUpdateBatch update, boolean compress)
PickaxecommandUpdateBatch in interface Pickaxeupdate - The updates.compress - If the request should be compressed.public Optional<Pickaxe.PickaxeConfiguration> config()
Pickaxepublic Optional<Commands> getCommands()
PickaxegetCommands in interface Pickaxepublic Optional<List<Pickaxe.InfrastructureConfig>> infrastructureConfigs()
PickaxeinfrastructureConfigs in interface Pickaxepublic boolean infrastructureUpdate(List<Pickaxe.InfrastructureStats> stats, boolean compress)
PickaxeinfrastructureUpdate in interface Pickaxestats - The stats.compress - If the request should be compressed.public Optional<List<Pickaxe.MinerConfig>> minerConfigs(String version, String hostname, String hostIp)
PickaxeminerConfigs in interface Pickaxeversion - The version.hostname - The hostname.hostIp - The host IP.public boolean started()
Pickaxepublic boolean updateMacs(Map<Miners.Miner,String> newMacs, boolean compress)
PickaxeupdateMacs in interface PickaxenewMacs - The new MACs.compress - If the request should be compressed.Copyright © 2025 OBM, LLC. All rights reserved.