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 Documentprivate static final org.slf4j.Loggerprivate static final longprivate 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 DocumentparseFlowBytes(byte[] flow) private VersionedDataflowparseVersionedDataflow(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:
getFlowDocumentin interfaceDataFlow
-
getVersionedDataflow
- Specified by:
getVersionedDataflowin interfaceDataFlow
-
getSnippets
public byte[] getSnippets()- Specified by:
getSnippetsin interfaceDataFlow
-
getAuthorizerFingerprint
public byte[] getAuthorizerFingerprint()- Specified by:
getAuthorizerFingerprintin interfaceDataFlow
-
getMissingComponents
- Specified by:
getMissingComponentsin interfaceDataFlow
-
parseFlowBytes
- Throws:
FlowSerializationException
-
parseVersionedDataflow
-