Uses of Class
org.apache.nifi.util.MockFlowFile
Packages that use MockFlowFile
-
Uses of MockFlowFile in org.apache.nifi.util
Fields in org.apache.nifi.util with type parameters of type MockFlowFileModifier and TypeFieldDescriptionprivate final Map
<Long, MockFlowFile> MockProcessSession.currentVersions
private final Map
<Long, MockFlowFile> MockProcessSession.originalVersions
private final List
<MockFlowFile> MockProcessSession.penalized
private final BlockingQueue
<MockFlowFile> MockFlowFileQueue.queue
private final Map
<org.apache.nifi.processor.Relationship, List<MockFlowFile>> MockProcessSession.transferMap
Methods in org.apache.nifi.util that return MockFlowFileModifier and TypeMethodDescriptionMockProcessSession.clone
(org.apache.nifi.flowfile.FlowFile flowFile) MockProcessSession.clone
(org.apache.nifi.flowfile.FlowFile flowFile, long offset, long size) MockProcessSession.create()
MockProcessSession.create
(Collection<org.apache.nifi.flowfile.FlowFile> flowFiles) MockProcessSession.create
(org.apache.nifi.flowfile.FlowFile flowFile) MockProcessSession.createFlowFile
(byte[] data) MockProcessSession.createFlowFile
(byte[] data, Map<String, String> attrs) MockProcessSession.createFlowFile
(File file) StandardProcessorTestRunner.enqueue
(byte[] data) StandardProcessorTestRunner.enqueue
(InputStream data) StandardProcessorTestRunner.enqueue
(InputStream data, Map<String, String> attributes) TestRunner.enqueue
(byte[] data) Copies the content from the given byte array into memory and creates a FlowFile from this content with no attributes and adds this FlowFile to the Processor's Input QueueCopies the content from the given byte array into memory and creates a FlowFile from this content with the given attributes and adds this FlowFile to the Processor's Input QueueTestRunner.enqueue
(InputStream data) Reads the content from the givenInputStream
into memory and creates a FlowFile from this content with no attributes and adds this FlowFile to the Processor's Input QueueTestRunner.enqueue
(InputStream data, Map<String, String> attributes) Reads the content from the givenInputStream
into memory and creates a FlowFile from this content with the given attributes and adds this FlowFile to the Processor's Input QueueCreates a FlowFile with the content set to the given string (in UTF-8 format), with no attributes, and adds this FlowFile to the Processor's Input QueueCreates a FlowFile with the content set to the given string (in UTF-8 format), with the given attributes, and adds this FlowFile to the Processor's Input QueueReads the content from the givenPath
into memory and creates a FlowFile from this content with no attributes and adds this FlowFile to the Processor's Input QueueReads the content from the givenPath
into memory and creates a FlowFile from this content with the given attributes and adds this FlowFile to the Processor's Input QueueMockProcessSession.get()
MockProcessSession.importFrom
(InputStream in, org.apache.nifi.flowfile.FlowFile flowFile) MockProcessSession.importFrom
(Path path, boolean keepSourceFile, org.apache.nifi.flowfile.FlowFile flowFile) MockProcessSession.merge
(Collection<org.apache.nifi.flowfile.FlowFile> sources, org.apache.nifi.flowfile.FlowFile destination) MockProcessSession.merge
(Collection<org.apache.nifi.flowfile.FlowFile> sources, org.apache.nifi.flowfile.FlowFile destination, byte[] header, byte[] footer, byte[] demarcator) MockProcessSession.penalize
(org.apache.nifi.flowfile.FlowFile flowFile) MockFlowFileQueue.poll()
MockProcessSession.putAllAttributes
(org.apache.nifi.flowfile.FlowFile flowFile, Map<String, String> attrs) MockProcessSession.putAttribute
(org.apache.nifi.flowfile.FlowFile flowFile, String attrName, String attrValue) MockProcessSession.removeAllAttributes
(org.apache.nifi.flowfile.FlowFile flowFile, Pattern keyPattern) MockProcessSession.removeAllAttributes
(org.apache.nifi.flowfile.FlowFile flowFile, Set<String> attrNames) MockProcessSession.removeAttribute
(org.apache.nifi.flowfile.FlowFile flowFile, String attrName) MockProcessSession.unpenalize
(org.apache.nifi.flowfile.FlowFile flowFile) private MockFlowFile
MockProcessSession.validateState
(org.apache.nifi.flowfile.FlowFile flowFile) MockProcessSession.write
(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.io.OutputStreamCallback callback) MockProcessSession.write
(org.apache.nifi.flowfile.FlowFile flowFile, org.apache.nifi.processor.io.StreamCallback callback) Methods in org.apache.nifi.util that return types with arguments of type MockFlowFileModifier and TypeMethodDescriptionMockProcessSession.getFlowFilesForRelationship
(String relationship) MockProcessSession.getFlowFilesForRelationship
(org.apache.nifi.processor.Relationship relationship) StandardProcessorTestRunner.getFlowFilesForRelationship
(String relationship) StandardProcessorTestRunner.getFlowFilesForRelationship
(org.apache.nifi.processor.Relationship relationship) TestRunner.getFlowFilesForRelationship
(String relationship) Returns a List of FlowFiles in the order in which they were transferred to the given relationshipTestRunner.getFlowFilesForRelationship
(org.apache.nifi.processor.Relationship relationship) Returns a List of FlowFiles in the order in which they were transferred to the given relationshipMockProcessSession.getPenalizedFlowFiles()
StandardProcessorTestRunner.getPenalizedFlowFiles()
TestRunner.getPenalizedFlowFiles()
Returns a List of FlowFiles in the order in which they were transferred that were penalizedMethods in org.apache.nifi.util with parameters of type MockFlowFileModifier and TypeMethodDescriptionbyte[]
MockProcessSession.getContentAsByteArray
(MockFlowFile flowFile) byte[]
StandardProcessorTestRunner.getContentAsByteArray
(MockFlowFile flowFile) byte[]
TestRunner.getContentAsByteArray
(MockFlowFile flowFile) Copies the contents of the givenMockFlowFile
into a byte array and returns that byte array.void
MockFlowFileQueue.offer
(MockFlowFile flowFile) private void
MockProcessSession.updateLastQueuedDate
(MockFlowFile mockFlowFile) private void
MockProcessSession.updateStateWithNewFlowFile
(MockFlowFile newFlowFile) Method parameters in org.apache.nifi.util with type arguments of type MockFlowFileModifier and TypeMethodDescriptionvoid
MockFlowFileQueue.addAll
(Collection<MockFlowFile> flowFiles) void
StandardProcessorTestRunner.assertAllConditionsMet
(String relationshipName, Predicate<MockFlowFile> predicate) Asserts that all FlowFiles meet all conditions.void
StandardProcessorTestRunner.assertAllConditionsMet
(org.apache.nifi.processor.Relationship relationship, Predicate<MockFlowFile> predicate) Asserts that all FlowFiles meet all conditions.void
TestRunner.assertAllConditionsMet
(String relationshipName, Predicate<MockFlowFile> predicate) Asserts that all FlowFiles meet all conditions.void
TestRunner.assertAllConditionsMet
(org.apache.nifi.processor.Relationship relationship, Predicate<MockFlowFile> predicate) Asserts that all FlowFiles meet all conditions.private void
MockProcessSession.migrate
(MockProcessSession newOwner, Collection<MockFlowFile> flowFiles)