Node

class Node(val specs: NodeSpecs, val isController: Boolean = false, val hasAgent: Boolean = false, initialDataSources: Map<MeterDataSource, String> = mapOf(), messages: String = "", status: AgentStatus? = null, val id: String = HashAlgo.SHA1.calculateHash(specs.toJson()), timestamp: Long = System.currentTimeMillis()) : Observable<ResourceConsumptionEvent>

Constructors

Link copied to clipboard
constructor(specs: NodeSpecs, isController: Boolean = false, hasAgent: Boolean = false, initialDataSources: Map<MeterDataSource, String> = mapOf(), messages: String = "", status: AgentStatus? = null, id: String = HashAlgo.SHA1.calculateHash(specs.toJson()), timestamp: Long = System.currentTimeMillis())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val dataSources: <Error class: unknown class>
Link copied to clipboard
val hasAgent: Boolean = false
Link copied to clipboard
val id: String
Link copied to clipboard
val isController: Boolean = false
Link copied to clipboard
Link copied to clipboard
val tasks: <Error class: unknown class><AgentCommand>

Functions

Link copied to clipboard
fun appendMessage(message: String, clear: Boolean)
Link copied to clipboard

Resets the meter state and adds an observer.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun unassign()

Resets the meter state and adds an observer.

Link copied to clipboard
Link copied to clipboard