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.currentVersionsprivate final Map<Long, MockFlowFile> MockProcessSession.originalVersionsprivate final List<MockFlowFile> MockProcessSession.penalizedprivate final BlockingQueue<MockFlowFile> MockFlowFileQueue.queueprivate final Map<org.apache.nifi.processor.Relationship, List<MockFlowFile>> MockProcessSession.transferMapMethods 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 givenInputStreaminto 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 givenInputStreaminto 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 givenPathinto 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 givenPathinto 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 MockFlowFileMockProcessSession.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 givenMockFlowFileinto a byte array and returns that byte array.voidMockFlowFileQueue.offer(MockFlowFile flowFile) private voidMockProcessSession.updateLastQueuedDate(MockFlowFile mockFlowFile) private voidMockProcessSession.updateStateWithNewFlowFile(MockFlowFile newFlowFile) Method parameters in org.apache.nifi.util with type arguments of type MockFlowFileModifier and TypeMethodDescriptionvoidMockFlowFileQueue.addAll(Collection<MockFlowFile> flowFiles) voidStandardProcessorTestRunner.assertAllConditionsMet(String relationshipName, Predicate<MockFlowFile> predicate) Asserts that all FlowFiles meet all conditions.voidStandardProcessorTestRunner.assertAllConditionsMet(org.apache.nifi.processor.Relationship relationship, Predicate<MockFlowFile> predicate) Asserts that all FlowFiles meet all conditions.voidTestRunner.assertAllConditionsMet(String relationshipName, Predicate<MockFlowFile> predicate) Asserts that all FlowFiles meet all conditions.voidTestRunner.assertAllConditionsMet(org.apache.nifi.processor.Relationship relationship, Predicate<MockFlowFile> predicate) Asserts that all FlowFiles meet all conditions.private voidMockProcessSession.migrate(MockProcessSession newOwner, Collection<MockFlowFile> flowFiles)