Package | Description |
---|---|
org.apache.nifi.util |
Modifier and Type | Field and Description |
---|---|
private Map<Long,MockFlowFile> |
MockProcessSession.currentVersions |
private Map<Long,MockFlowFile> |
MockProcessSession.originalVersions |
private List<MockFlowFile> |
MockProcessSession.penalized |
private BlockingQueue<MockFlowFile> |
MockFlowFileQueue.queue |
private Map<Relationship,List<MockFlowFile>> |
MockProcessSession.transferMap |
Modifier and Type | Method and Description |
---|---|
MockFlowFile |
MockProcessSession.clone(FlowFile flowFile) |
MockFlowFile |
MockProcessSession.clone(FlowFile flowFile,
long offset,
long size) |
MockFlowFile |
MockProcessSession.create() |
MockFlowFile |
MockProcessSession.create(Collection<FlowFile> flowFiles) |
MockFlowFile |
MockProcessSession.create(FlowFile flowFile) |
MockFlowFile |
MockProcessSession.createFlowFile(byte[] data) |
MockFlowFile |
MockProcessSession.createFlowFile(byte[] data,
Map<String,String> attrs) |
MockFlowFile |
MockProcessSession.createFlowFile(File file) |
MockFlowFile |
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 Queue
|
MockFlowFile |
StandardProcessorTestRunner.enqueue(byte[] data) |
MockFlowFile |
TestRunner.enqueue(byte[] data,
Map<String,String> attributes)
Copies 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 Queue
|
MockFlowFile |
StandardProcessorTestRunner.enqueue(byte[] data,
Map<String,String> attributes) |
MockFlowFile |
TestRunner.enqueue(InputStream data)
Reads the content from the given
InputStream into memory and
creates a FlowFile from this content with no attributes and adds this
FlowFile to the Processor's Input Queue |
MockFlowFile |
StandardProcessorTestRunner.enqueue(InputStream data) |
MockFlowFile |
TestRunner.enqueue(InputStream data,
Map<String,String> attributes)
Reads the content from the given
InputStream into memory and
creates a FlowFile from this content with the given attributes and adds
this FlowFile to the Processor's Input Queue |
MockFlowFile |
StandardProcessorTestRunner.enqueue(InputStream data,
Map<String,String> attributes) |
MockFlowFile |
TestRunner.enqueue(Path path)
Reads the content from the given
Path into memory and creates a
FlowFile from this content with no attributes and adds this FlowFile to
the Processor's Input Queue |
MockFlowFile |
StandardProcessorTestRunner.enqueue(Path path) |
MockFlowFile |
TestRunner.enqueue(Path path,
Map<String,String> attributes)
Reads the content from the given
Path into memory and creates a
FlowFile from this content with the given attributes and adds this
FlowFile to the Processor's Input Queue |
MockFlowFile |
StandardProcessorTestRunner.enqueue(Path path,
Map<String,String> attributes) |
MockFlowFile |
TestRunner.enqueue(String data)
Creates 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 Queue
|
MockFlowFile |
StandardProcessorTestRunner.enqueue(String data) |
MockFlowFile |
TestRunner.enqueue(String data,
Map<String,String> attributes)
Creates 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 Queue
|
MockFlowFile |
StandardProcessorTestRunner.enqueue(String data,
Map<String,String> attributes) |
MockFlowFile |
MockProcessSession.get() |
MockFlowFile |
MockProcessSession.importFrom(InputStream in,
FlowFile flowFile) |
MockFlowFile |
MockProcessSession.importFrom(Path path,
boolean keepSourceFile,
FlowFile flowFile) |
MockFlowFile |
MockProcessSession.merge(Collection<FlowFile> sources,
FlowFile destination) |
MockFlowFile |
MockProcessSession.merge(Collection<FlowFile> sources,
FlowFile destination,
byte[] header,
byte[] footer,
byte[] demarcator) |
MockFlowFile |
MockProcessSession.penalize(FlowFile flowFile) |
MockFlowFile |
MockFlowFileQueue.poll() |
MockFlowFile |
MockProcessSession.putAllAttributes(FlowFile flowFile,
Map<String,String> attrs) |
MockFlowFile |
MockProcessSession.putAttribute(FlowFile flowFile,
String attrName,
String attrValue) |
MockFlowFile |
MockProcessSession.removeAllAttributes(FlowFile flowFile,
Pattern keyPattern) |
MockFlowFile |
MockProcessSession.removeAllAttributes(FlowFile flowFile,
Set<String> attrNames) |
MockFlowFile |
MockProcessSession.removeAttribute(FlowFile flowFile,
String attrName) |
MockFlowFile |
MockProcessSession.unpenalize(FlowFile flowFile) |
private MockFlowFile |
MockProcessSession.validateState(FlowFile flowFile) |
MockFlowFile |
MockProcessSession.write(FlowFile flowFile,
OutputStreamCallback callback) |
MockFlowFile |
MockProcessSession.write(FlowFile flowFile,
StreamCallback callback) |
Modifier and Type | Method and Description |
---|---|
List<MockFlowFile> |
TestRunner.getFlowFilesForRelationship(Relationship relationship)
Returns a List of FlowFiles in the order in which they were transferred
to the given relationship
|
List<MockFlowFile> |
StandardProcessorTestRunner.getFlowFilesForRelationship(Relationship relationship) |
List<MockFlowFile> |
MockProcessSession.getFlowFilesForRelationship(Relationship relationship) |
List<MockFlowFile> |
TestRunner.getFlowFilesForRelationship(String relationship)
Returns a List of FlowFiles in the order in which they were transferred
to the given relationship
|
List<MockFlowFile> |
StandardProcessorTestRunner.getFlowFilesForRelationship(String relationship) |
List<MockFlowFile> |
MockProcessSession.getFlowFilesForRelationship(String relationship) |
List<MockFlowFile> |
TestRunner.getPenalizedFlowFiles()
Returns a List of FlowFiles in the order in which they were transferred that were penalized
|
List<MockFlowFile> |
StandardProcessorTestRunner.getPenalizedFlowFiles() |
List<MockFlowFile> |
MockProcessSession.getPenalizedFlowFiles() |
Modifier and Type | Method and Description |
---|---|
byte[] |
TestRunner.getContentAsByteArray(MockFlowFile flowFile)
Copies the contents of the given
MockFlowFile into a byte array
and returns that byte array. |
byte[] |
StandardProcessorTestRunner.getContentAsByteArray(MockFlowFile flowFile) |
byte[] |
MockProcessSession.getContentAsByteArray(MockFlowFile flowFile) |
void |
MockFlowFileQueue.offer(MockFlowFile flowFile) |
private void |
MockProcessSession.updateLastQueuedDate(MockFlowFile mockFlowFile) |
Modifier and Type | Method and Description |
---|---|
void |
MockFlowFileQueue.addAll(Collection<MockFlowFile> flowFiles) |
void |
TestRunner.assertAllConditionsMet(Relationship relationship,
Predicate<MockFlowFile> predicate)
Asserts that all FlowFiles meet all conditions.
|
void |
StandardProcessorTestRunner.assertAllConditionsMet(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 |
StandardProcessorTestRunner.assertAllConditionsMet(String relationshipName,
Predicate<MockFlowFile> predicate)
Asserts that all FlowFiles meet all conditions.
|
private void |
MockProcessSession.migrate(MockProcessSession newOwner,
Collection<MockFlowFile> flowFiles) |
Copyright © 2018 Apache NiFi Project. All rights reserved.