Class PutDistributedMapCache
java.lang.Object
org.apache.nifi.components.AbstractConfigurableComponent
org.apache.nifi.processor.AbstractSessionFactoryProcessor
org.apache.nifi.processor.AbstractProcessor
org.apache.nifi.processors.standard.PutDistributedMapCache
- All Implemented Interfaces:
org.apache.nifi.components.ConfigurableComponent,org.apache.nifi.processor.Processor
@SupportsBatching
@Tags({"map","cache","put","distributed"})
@InputRequirement(INPUT_REQUIRED)
@CapabilityDescription("Gets the content of a FlowFile and puts it to a distributed map cache, using a cache key computed from FlowFile attributes. If the cache already contains the entry and the cache update strategy is \'keep original\' the entry is not replaced.\'")
@WritesAttribute(attribute="cached",
description="All FlowFiles will have an attribute \'cached\'. The value of this attribute is true, is the FlowFile is cached, otherwise false.")
@SeeAlso(classNames={"org.apache.nifi.distributed.cache.client.DistributedMapCacheClientService","org.apache.nifi.distributed.cache.server.map.DistributedMapCacheServer","org.apache.nifi.processors.standard.FetchDistributedMapCache"})
public class PutDistributedMapCache
extends org.apache.nifi.processor.AbstractProcessor
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classSimple string serializer, used for serializing the cache key -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.PropertyDescriptorstatic final org.apache.nifi.components.AllowableValuestatic final org.apache.nifi.components.AllowableValuestatic final org.apache.nifi.components.PropertyDescriptorstatic final Stringstatic final org.apache.nifi.components.PropertyDescriptorprivate final Serializer<String> private static final List<org.apache.nifi.components.PropertyDescriptor> static final org.apache.nifi.processor.Relationshipstatic final org.apache.nifi.processor.Relationshipprivate static final Set<org.apache.nifi.processor.Relationship> private final Deserializer<byte[]> private final Serializer<byte[]> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.nifi.processor.AbstractProcessor
onTriggerMethods inherited from class org.apache.nifi.processor.AbstractSessionFactoryProcessor
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, init, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrueMethods inherited from class org.apache.nifi.components.AbstractConfigurableComponent
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.nifi.components.ConfigurableComponent
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateMethods inherited from interface org.apache.nifi.processor.Processor
isStateful, migrateProperties, migrateRelationships
-
Field Details
-
CACHED_ATTRIBUTE_NAME
- See Also:
-
DISTRIBUTED_CACHE_SERVICE
public static final org.apache.nifi.components.PropertyDescriptor DISTRIBUTED_CACHE_SERVICE -
CACHE_ENTRY_IDENTIFIER
public static final org.apache.nifi.components.PropertyDescriptor CACHE_ENTRY_IDENTIFIER -
CACHE_UPDATE_REPLACE
public static final org.apache.nifi.components.AllowableValue CACHE_UPDATE_REPLACE -
CACHE_UPDATE_KEEP_ORIGINAL
public static final org.apache.nifi.components.AllowableValue CACHE_UPDATE_KEEP_ORIGINAL -
CACHE_UPDATE_STRATEGY
public static final org.apache.nifi.components.PropertyDescriptor CACHE_UPDATE_STRATEGY -
CACHE_ENTRY_MAX_BYTES
public static final org.apache.nifi.components.PropertyDescriptor CACHE_ENTRY_MAX_BYTES -
PROPERTY_DESCRIPTORS
-
REL_SUCCESS
public static final org.apache.nifi.processor.Relationship REL_SUCCESS -
REL_FAILURE
public static final org.apache.nifi.processor.Relationship REL_FAILURE -
RELATIONSHIPS
-
keySerializer
-
valueSerializer
-
valueDeserializer
-
-
Constructor Details
-
PutDistributedMapCache
public PutDistributedMapCache()
-
-
Method Details
-
getSupportedPropertyDescriptors
- Overrides:
getSupportedPropertyDescriptorsin classorg.apache.nifi.components.AbstractConfigurableComponent
-
getRelationships
- Specified by:
getRelationshipsin interfaceorg.apache.nifi.processor.Processor- Overrides:
getRelationshipsin classorg.apache.nifi.processor.AbstractSessionFactoryProcessor
-
onTrigger
public void onTrigger(org.apache.nifi.processor.ProcessContext context, org.apache.nifi.processor.ProcessSession session) throws org.apache.nifi.processor.exception.ProcessException - Specified by:
onTriggerin classorg.apache.nifi.processor.AbstractProcessor- Throws:
org.apache.nifi.processor.exception.ProcessException
-