Agent

class Agent(var configuration: AgentConfiguration, val pool: <Error class: unknown class>)

The agent manages the node. It maintains a connection to the PowerGoblin service, it constantly polls for new commands and performs them sequentially.

Most commands block until they either fail or succeed. The collector command is started as a background process.

Constructors

Link copied to clipboard
constructor(configuration: AgentConfiguration, pool: <Error class: unknown class>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val pool: <Error class: unknown class>
Link copied to clipboard
val startTime: <Error class: unknown class>
Link copied to clipboard
val startTimeString: <Error class: unknown class>

Functions

Link copied to clipboard
open fun close()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun launchCollectd(cmd: AgentCollectCommand, test: Boolean = false, filter: List<CollectorFlag> = capabilities)
Link copied to clipboard
fun listen()
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun powerOff()
Link copied to clipboard
fun reboot()
Link copied to clipboard
Link copied to clipboard
fun rootPath(): <Error class: unknown class>
Link copied to clipboard
fun runCommand(cmd: AgentCommand, log: Boolean = true): String?
Link copied to clipboard
Link copied to clipboard

Updates the 'configuration' (from goblin-agent.json).

Link copied to clipboard
fun updateNodeSpecs(pool: <Error class: unknown class>, newConfiguration: AgentConfiguration = updateAgentConfiguration()): NodeSpecs

Updates the

Link copied to clipboard
fun updateStatus(newTask: AgentTask? = null)