public class MockProcessContext extends Object implements ProcessContext
| Constructor and Description |
|---|
MockProcessContext() |
| Modifier and Type | Method and Description |
|---|---|
String |
decrypt(String encrypted) |
String |
encrypt(String unencrypted) |
Map<String,String> |
getAllProperties() |
String |
getAnnotationData() |
Set<Relationship> |
getAvailableRelationships() |
ControllerServiceLookup |
getControllerServiceLookup() |
ExecutionNode |
getExecutionNode() |
int |
getMaxConcurrentTasks() |
String |
getName() |
Map<PropertyDescriptor,String> |
getProperties() |
PropertyValue |
getProperty(PropertyDescriptor descriptor) |
PropertyValue |
getProperty(String propertyName) |
int |
getRetryCount() |
StateManager |
getStateManager() |
boolean |
hasConnection(Relationship relationship) |
boolean |
hasIncomingConnection() |
boolean |
hasNonLoopConnection() |
boolean |
isConnectedToCluster() |
boolean |
isExpressionLanguagePresent(PropertyDescriptor property) |
boolean |
isRelationshipRetried(Relationship relationshipName) |
PropertyValue |
newPropertyValue(String rawValue) |
void |
yield() |
public PropertyValue getProperty(PropertyDescriptor descriptor)
getProperty in interface PropertyContextpublic PropertyValue getProperty(String propertyName)
getProperty in interface ProcessContextpublic PropertyValue newPropertyValue(String rawValue)
newPropertyValue in interface ProcessContextpublic void yield()
yield in interface ProcessContextpublic int getMaxConcurrentTasks()
getMaxConcurrentTasks in interface ProcessContextpublic ExecutionNode getExecutionNode()
getExecutionNode in interface ProcessContextpublic String getAnnotationData()
getAnnotationData in interface ProcessContextpublic Map<PropertyDescriptor,String> getProperties()
getProperties in interface ProcessContextpublic Map<String,String> getAllProperties()
getAllProperties in interface PropertyContextpublic String encrypt(String unencrypted)
encrypt in interface ProcessContextpublic String decrypt(String encrypted)
decrypt in interface ProcessContextpublic ControllerServiceLookup getControllerServiceLookup()
getControllerServiceLookup in interface ProcessContextpublic Set<Relationship> getAvailableRelationships()
getAvailableRelationships in interface ProcessContextpublic boolean hasIncomingConnection()
hasIncomingConnection in interface ProcessContextpublic boolean hasNonLoopConnection()
hasNonLoopConnection in interface ProcessContextpublic boolean hasConnection(Relationship relationship)
hasConnection in interface ProcessContextpublic boolean isExpressionLanguagePresent(PropertyDescriptor property)
isExpressionLanguagePresent in interface ProcessContextpublic StateManager getStateManager()
getStateManager in interface ProcessContextpublic String getName()
getName in interface ProcessContextpublic boolean isConnectedToCluster()
isConnectedToCluster in interface ClusterContextpublic boolean isRelationshipRetried(Relationship relationshipName)
isRelationshipRetried in interface ProcessContextpublic int getRetryCount()
getRetryCount in interface ProcessContextCopyright © 2023 Apache NiFi Project. All rights reserved.