Package org.apache.nifi.cluster.protocol
Class StandardDataFlow
java.lang.Object
org.apache.nifi.cluster.protocol.StandardDataFlow
- All Implemented Interfaces:
Serializable
,DataFlow
Represents a dataflow, which includes the raw bytes of the flow.xml and
whether processors should be started automatically at application startup.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final byte[]
private final byte[]
private Document
private static final org.slf4j.Logger
private static final long
private final byte[]
private VersionedDataflow
-
Constructor Summary
ConstructorsConstructorDescriptionStandardDataFlow
(byte[] flow, byte[] snippetBytes, byte[] authorizerFingerprint, Set<String> missingComponentIds) Constructs an instance.StandardDataFlow
(DataFlow toCopy) -
Method Summary
Modifier and TypeMethodDescriptionprivate static byte[]
copy
(byte[] bytes) byte[]
byte[]
getFlow()
byte[]
private static Document
parseFlowBytes
(byte[] flow) private VersionedDataflow
parseVersionedDataflow
(byte[] flow)
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
serialVersionUID
private static final long serialVersionUID- See Also:
-
flow
private final byte[] flow -
snippetBytes
private final byte[] snippetBytes -
authorizerFingerprint
private final byte[] authorizerFingerprint -
missingComponentIds
-
flowDocument
-
versionedDataflow
-
-
Constructor Details
-
StandardDataFlow
public StandardDataFlow(byte[] flow, byte[] snippetBytes, byte[] authorizerFingerprint, Set<String> missingComponentIds) Constructs an instance.- Parameters:
flow
- a valid flow as bytes, which cannot be nullsnippetBytes
- a JSON 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 components- Throws:
NullPointerException
- if flow is null
-
StandardDataFlow
-
-
Method Details
-
copy
private static byte[] copy(byte[] bytes) -
getFlow
public byte[] getFlow() -
getFlowDocument
- Specified by:
getFlowDocument
in interfaceDataFlow
-
getVersionedDataflow
- Specified by:
getVersionedDataflow
in interfaceDataFlow
-
getSnippets
public byte[] getSnippets()- Specified by:
getSnippets
in interfaceDataFlow
-
getAuthorizerFingerprint
public byte[] getAuthorizerFingerprint()- Specified by:
getAuthorizerFingerprint
in interfaceDataFlow
-
getMissingComponents
- Specified by:
getMissingComponents
in interfaceDataFlow
-
parseFlowBytes
- Throws:
FlowSerializationException
-
parseVersionedDataflow
-