org.xyro.kumulus.graph.GraphNode.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kumulus Show documentation
Show all versions of kumulus Show documentation
A lightweight, in-process, drop-in replacement for Apache Storm
package org.xyro.kumulus.graph
import com.fasterxml.jackson.databind.node.ObjectNode
import org.xyro.kumulus.component.KumulusComponent
open class GraphNode(val component : KumulusComponent) {
open fun toJson() : ObjectNode {
return toJson(ComponentGraph.mapper.createObjectNode())
}
open protected fun toJson(nodeJson: ObjectNode) : ObjectNode {
return nodeJson.apply {
this.put("componentId", [email protected])
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy