@Tags(value={"distributed","cache","state","set","cluster"}) @SeeAlso(classNames={"org.apache.nifi.distributed.cache.server.DistributedSetCacheServer","org.apache.nifi.ssl.StandardSSLContextService"}) @CapabilityDescription(value="Provides the ability to communicate with a DistributedSetCacheServer. This can be used in order to share a Set between nodes in a NiFi cluster") public class DistributedSetCacheClientService extends AbstractControllerService implements DistributedSetCacheClient
| Modifier and Type | Field and Description |
|---|---|
private NettyDistributedSetCacheClient |
cacheClient
The implementation of the business logic for
DistributedSetCacheClientService. |
static PropertyDescriptor |
COMMUNICATIONS_TIMEOUT |
static PropertyDescriptor |
HOSTNAME |
static PropertyDescriptor |
PORT |
static PropertyDescriptor |
SSL_CONTEXT_SERVICE |
private VersionNegotiatorFactory |
versionNegotiatorFactory
Creator of object used to broker the version of the distributed cache protocol with the service.
|
| Constructor and Description |
|---|
DistributedSetCacheClientService() |
| Modifier and Type | Method and Description |
|---|---|
<T> boolean |
addIfAbsent(T value,
Serializer<T> serializer) |
void |
close() |
<T> boolean |
contains(T value,
Serializer<T> serializer) |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
void |
onDisabled() |
void |
onEnabled(ConfigurationContext context) |
void |
onStopped() |
<T> boolean |
remove(T value,
Serializer<T> serializer) |
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, init, initialize, isEnabledcustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitinitialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validatepublic static final PropertyDescriptor HOSTNAME
public static final PropertyDescriptor PORT
public static final PropertyDescriptor SSL_CONTEXT_SERVICE
public static final PropertyDescriptor COMMUNICATIONS_TIMEOUT
private volatile NettyDistributedSetCacheClient cacheClient
DistributedSetCacheClientService.private volatile VersionNegotiatorFactory versionNegotiatorFactory
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponent@OnEnabled public void onEnabled(ConfigurationContext context)
@OnDisabled public void onDisabled() throws IOException
IOException@OnStopped public void onStopped() throws IOException
IOExceptionpublic <T> boolean addIfAbsent(T value,
Serializer<T> serializer)
throws IOException
addIfAbsent in interface DistributedSetCacheClientIOExceptionpublic <T> boolean contains(T value,
Serializer<T> serializer)
throws IOException
contains in interface DistributedSetCacheClientIOExceptionpublic <T> boolean remove(T value,
Serializer<T> serializer)
throws IOException
remove in interface DistributedSetCacheClientIOExceptionpublic void close()
throws IOException
close in interface DistributedSetCacheClientIOExceptionCopyright © 2022 Apache NiFi Project. All rights reserved.