@Tags(value={"lookup","enrich","key","value","map","cache","distributed"}) @CapabilityDescription(value="Allows to choose a distributed map cache client to retrieve the value associated to a key. The coordinates that are passed to the lookup must contain the key \'key\'.") public class DistributedMapCacheLookupService extends AbstractControllerService implements StringLookupService
| Modifier and Type | Class and Description |
|---|---|
static class |
DistributedMapCacheLookupService.StringDeserializer |
static class |
DistributedMapCacheLookupService.StringSerializer |
| Modifier and Type | Field and Description |
|---|---|
private DistributedMapCacheClient |
cache |
static PropertyDescriptor |
CHARACTER_ENCODING |
private static Charset |
charset |
private static String |
KEY |
private Serializer<String> |
keySerializer |
static PropertyDescriptor |
PROP_DISTRIBUTED_CACHE_SERVICE |
private static Set<String> |
REQUIRED_KEYS |
private static List<Charset> |
STANDARD_CHARSETS |
private Deserializer<String> |
valueDeserializer |
| Constructor and Description |
|---|
DistributedMapCacheLookupService() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getRequiredKeys() |
private static Set<String> |
getStandardCharsetNames() |
protected PropertyDescriptor |
getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
Optional<String> |
lookup(Map<String,Object> coordinates) |
void |
onEnabled(ConfigurationContext context) |
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledcustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetValueTypelookupinitialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate static final String KEY
private volatile DistributedMapCacheClient cache
private static volatile Charset charset
private final Serializer<String> keySerializer
private final Deserializer<String> valueDeserializer
public static final PropertyDescriptor PROP_DISTRIBUTED_CACHE_SERVICE
public static final PropertyDescriptor CHARACTER_ENCODING
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName)
getSupportedDynamicPropertyDescriptor in class AbstractConfigurableComponent@OnEnabled public void onEnabled(ConfigurationContext context)
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponentpublic Optional<String> lookup(Map<String,Object> coordinates)
lookup in interface LookupService<String>public Set<String> getRequiredKeys()
getRequiredKeys in interface LookupService<String>Copyright © 2023 Apache NiFi Project. All rights reserved.