mirror of https://github.com/apache/nifi.git
NIFI-834:
- Get[S]FTP should not be considered @SideEffectFree. The processor could be, and is by default, configured to delete the original file.
This commit is contained in:
parent
91f4dae060
commit
103153cdd8
|
@ -27,12 +27,10 @@ import org.apache.nifi.annotation.documentation.CapabilityDescription;
|
||||||
import org.apache.nifi.annotation.documentation.SeeAlso;
|
import org.apache.nifi.annotation.documentation.SeeAlso;
|
||||||
import org.apache.nifi.annotation.behavior.WritesAttribute;
|
import org.apache.nifi.annotation.behavior.WritesAttribute;
|
||||||
import org.apache.nifi.annotation.behavior.WritesAttributes;
|
import org.apache.nifi.annotation.behavior.WritesAttributes;
|
||||||
import org.apache.nifi.annotation.behavior.SideEffectFree;
|
|
||||||
import org.apache.nifi.annotation.documentation.Tags;
|
import org.apache.nifi.annotation.documentation.Tags;
|
||||||
import org.apache.nifi.processors.standard.util.FTPTransfer;
|
import org.apache.nifi.processors.standard.util.FTPTransfer;
|
||||||
import org.apache.nifi.processors.standard.util.FileTransfer;
|
import org.apache.nifi.processors.standard.util.FileTransfer;
|
||||||
|
|
||||||
@SideEffectFree
|
|
||||||
@Tags({"FTP", "get", "retrieve", "files", "fetch", "remote", "ingest", "source", "input"})
|
@Tags({"FTP", "get", "retrieve", "files", "fetch", "remote", "ingest", "source", "input"})
|
||||||
@CapabilityDescription("Fetches files from an FTP Server and creates FlowFiles from them")
|
@CapabilityDescription("Fetches files from an FTP Server and creates FlowFiles from them")
|
||||||
@WritesAttributes({
|
@WritesAttributes({
|
||||||
|
|
|
@ -21,7 +21,6 @@ import java.util.Collection;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.apache.nifi.annotation.behavior.SideEffectFree;
|
|
||||||
import org.apache.nifi.annotation.documentation.CapabilityDescription;
|
import org.apache.nifi.annotation.documentation.CapabilityDescription;
|
||||||
import org.apache.nifi.annotation.documentation.SeeAlso;
|
import org.apache.nifi.annotation.documentation.SeeAlso;
|
||||||
import org.apache.nifi.annotation.documentation.Tags;
|
import org.apache.nifi.annotation.documentation.Tags;
|
||||||
|
@ -35,7 +34,6 @@ import org.apache.nifi.processor.ProcessorInitializationContext;
|
||||||
import org.apache.nifi.processors.standard.util.FileTransfer;
|
import org.apache.nifi.processors.standard.util.FileTransfer;
|
||||||
import org.apache.nifi.processors.standard.util.SFTPTransfer;
|
import org.apache.nifi.processors.standard.util.SFTPTransfer;
|
||||||
|
|
||||||
@SideEffectFree
|
|
||||||
@Tags({"sftp", "get", "retrieve", "files", "fetch", "remote", "ingest", "source", "input"})
|
@Tags({"sftp", "get", "retrieve", "files", "fetch", "remote", "ingest", "source", "input"})
|
||||||
@CapabilityDescription("Fetches files from an SFTP Server and creates FlowFiles from them")
|
@CapabilityDescription("Fetches files from an SFTP Server and creates FlowFiles from them")
|
||||||
@WritesAttributes({
|
@WritesAttributes({
|
||||||
|
|
Loading…
Reference in New Issue