@PublicEvolving
public final class ComponentJsonObject
extends java.lang.Object
ComponentJsonObject
consists one or more application entities (i.e. function providers,
ingresses, routers, or egresses) that should be bound to a remote StatefulFunctionModule
.
Each component is represented in remote module YAML specification files as a single YAML document of the following format:
kind: com.foo.bar.v5/some.component (typename) spec: ... (specification document of the component)
The kind
is a TypeName
that should be universally unique within the
application. It identifies which ComponentBinder
recognizes this component and knows how
to parse it to resolve application entities to be bound to the module.
ComponentBinder
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BINDER_KIND_FIELD |
static java.lang.String |
SPEC_FIELD |
Constructor and Description |
---|
ComponentJsonObject(org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode jsonNode) |
Modifier and Type | Method and Description |
---|---|
TypeName |
binderTypename()
Returns the
TypeName of the binder for this component. |
org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.node.ObjectNode |
get()
Returns the complete component JSON object.
|
org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode |
specJsonNode()
Returns the specification JSON node for this component.
|
java.lang.String |
toString() |
public static final java.lang.String BINDER_KIND_FIELD
public static final java.lang.String SPEC_FIELD
public ComponentJsonObject(org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode jsonNode)
public org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.node.ObjectNode get()
public TypeName binderTypename()
TypeName
of the binder for this component.TypeName
of the binder for this component.public org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode specJsonNode()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.