Package-level declarations

Types

Link copied to clipboard
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.

Link copied to clipboard
class ClientConnection(val server: String, val debugMode: Boolean = true, timeOut: Long = 30)

Handles the connection with the service.

Link copied to clipboard
class PlanManager(rootPath: <Error class: unknown class>, val descriptionFile: String, val nodeId: String) : DirectoryManager

Manages the plan directories.

Properties

Link copied to clipboard
val defaultConfigPath: <Error class: unknown class>

Functions

Link copied to clipboard
fun debugJson(data: List<String>, e: <Error class: unknown class>)
Link copied to clipboard
fun main(args: Array<String>)

Reads the configuration. Starts the connection. Launches the agent. Sets up keypress / shutdown handlers for shutting down.

Link copied to clipboard
fun updateConfiguration(configPath: <Error class: unknown class> = defaultConfigPath, args: Array<String> = arrayOf(), debug: Boolean = false): AgentConfiguration

Reads the agent configuration from the file and creates / updates the file.