NIFI-1943 added proper ReadsAttribute to PutFile

This closes #480
This commit is contained in:
jpercivall 2016-05-31 10:01:07 -04:00
parent f0f74fe404
commit 54c5c28cbb
1 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ import java.util.regex.Pattern;
import org.apache.nifi.annotation.behavior.InputRequirement; import org.apache.nifi.annotation.behavior.InputRequirement;
import org.apache.nifi.annotation.behavior.InputRequirement.Requirement; import org.apache.nifi.annotation.behavior.InputRequirement.Requirement;
import org.apache.nifi.annotation.behavior.ReadsAttribute;
import org.apache.nifi.annotation.behavior.SupportsBatching; import org.apache.nifi.annotation.behavior.SupportsBatching;
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;
@ -58,6 +59,7 @@ import org.apache.nifi.util.StopWatch;
@Tags({"put", "local", "copy", "archive", "files", "filesystem"}) @Tags({"put", "local", "copy", "archive", "files", "filesystem"})
@CapabilityDescription("Writes the contents of a FlowFile to the local file system") @CapabilityDescription("Writes the contents of a FlowFile to the local file system")
@SeeAlso({FetchFile.class, GetFile.class}) @SeeAlso({FetchFile.class, GetFile.class})
@ReadsAttribute(attribute = "filename", description = "The filename to use when writing the FlowFile to disk.")
public class PutFile extends AbstractProcessor { public class PutFile extends AbstractProcessor {
public static final String REPLACE_RESOLUTION = "replace"; public static final String REPLACE_RESOLUTION = "replace";