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 Calibrator(nodeSpecs: NodeSpecs, connection: ClientConnection, rootPath: <Error class: unknown class>)

Subsystem for performing calibrations. Calibration associated a meter with a node/unit in the service.

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 Collector(pool: <Error class: unknown class>, val server: String, val node: String, val session: String, flags: List<CollectorFlag>, val interval: String, val timeout: Long = 60 * 60L, val dryRun: Boolean = true, val test: Boolean = false, val printErrors: Boolean = false, val binary: String, val raplScript: String = "intel_rapl") : Processor

Maintains a collectd instance.

Link copied to clipboard
class PlanManager(rootPath: <Error class: unknown class>) : DirectoryManager

Manages the plan directories.

Properties

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

Functions

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.