public class StandardDataFlow extends Object implements Serializable, DataFlow
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
authorizerFingerprint |
private byte[] |
flow |
private Document |
flowDocument |
private static org.slf4j.Logger |
logger |
private Set<String> |
missingComponentIds |
private static long |
serialVersionUID |
private byte[] |
snippetBytes |
private VersionedDataflow |
versionedDataflow |
| Constructor and Description |
|---|
StandardDataFlow(byte[] flow,
byte[] snippetBytes,
byte[] authorizerFingerprint,
Set<String> missingComponentIds)
Constructs an instance.
|
StandardDataFlow(DataFlow toCopy) |
| Modifier and Type | Method and Description |
|---|---|
private static byte[] |
copy(byte[] bytes) |
byte[] |
getAuthorizerFingerprint() |
byte[] |
getFlow() |
Document |
getFlowDocument() |
Set<String> |
getMissingComponents() |
byte[] |
getSnippets() |
VersionedDataflow |
getVersionedDataflow() |
boolean |
isXml() |
private static Document |
parseFlowBytes(byte[] flow) |
private VersionedDataflow |
parseVersionedDataflow(byte[] flow) |
private static final org.slf4j.Logger logger
private static final long serialVersionUID
private final byte[] flow
private final byte[] snippetBytes
private final byte[] authorizerFingerprint
private Document flowDocument
private VersionedDataflow versionedDataflow
public StandardDataFlow(byte[] flow,
byte[] snippetBytes,
byte[] authorizerFingerprint,
Set<String> missingComponentIds)
flow - a valid flow as bytes, which cannot be nullsnippetBytes - an XML representation of snippets. May be null.authorizerFingerprint - the bytes of the Authorizer's fingerprint. May be null when using an external Authorizer.missingComponentIds - the ids of components that were created as missing ghost componentsNullPointerException - if flow is nullpublic StandardDataFlow(DataFlow toCopy)
private static byte[] copy(byte[] bytes)
public Document getFlowDocument()
getFlowDocument in interface DataFlowpublic VersionedDataflow getVersionedDataflow()
getVersionedDataflow in interface DataFlowpublic byte[] getSnippets()
getSnippets in interface DataFlowpublic byte[] getAuthorizerFingerprint()
getAuthorizerFingerprint in interface DataFlowpublic Set<String> getMissingComponents()
getMissingComponents in interface DataFlowprivate static Document parseFlowBytes(byte[] flow) throws FlowSerializationException
FlowSerializationExceptionprivate VersionedDataflow parseVersionedDataflow(byte[] flow)
Copyright © 2023 Apache NiFi Project. All rights reserved.