@Tags(value={"db","s2s","site","record"}) @CapabilityDescription(value="Provides a service to write records using a configured RecordSetWriter over a Site-to-Site connection.") public class SiteToSiteReportingRecordSink extends AbstractControllerService implements RecordSinkService
| Modifier and Type | Field and Description |
|---|---|
private List<PropertyDescriptor> |
properties |
private SiteToSiteClient |
siteToSiteClient |
private StateManager |
stateManager |
private RecordSetWriterFactory |
writerFactory |
RECORD_WRITER_FACTORY| Constructor and Description |
|---|
SiteToSiteReportingRecordSink() |
| Modifier and Type | Method and Description |
|---|---|
protected SiteToSiteClient |
getClient() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected RecordSetWriterFactory |
getWriterFactory() |
protected void |
init(ControllerServiceInitializationContext context) |
void |
onEnabled(ConfigurationContext context) |
WriteResult |
sendData(RecordSet recordSet,
Map<String,String> attributes,
boolean sendZeroResults) |
void |
stop() |
abstractClearConfigContext, abstractStoreConfigContext, disabled, enabled, getConfigurationContext, getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, getProperty, getStateManager, initialize, isEnabledcustomValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, toString, validateclone, finalize, getClass, notify, notifyAll, wait, wait, waitresetinitialize, isStatefulgetIdentifier, getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validateprivate List<PropertyDescriptor> properties
private volatile SiteToSiteClient siteToSiteClient
private volatile RecordSetWriterFactory writerFactory
private volatile StateManager stateManager
protected void init(ControllerServiceInitializationContext context)
init in class AbstractControllerServiceprotected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors in class AbstractConfigurableComponent@OnEnabled public void onEnabled(ConfigurationContext context) throws InitializationException
InitializationExceptionpublic WriteResult sendData(RecordSet recordSet, Map<String,String> attributes, boolean sendZeroResults) throws IOException
sendData in interface RecordSinkServiceIOException@OnDisabled public void stop() throws IOException
IOExceptionprotected SiteToSiteClient getClient()
protected RecordSetWriterFactory getWriterFactory()
Copyright © 2024 Apache NiFi Project. All rights reserved.