@EventDriven @SupportsBatching @InputRequirement(value=INPUT_REQUIRED) @Tags(value={"put","local","copy","archive","files","filesystem"}) @CapabilityDescription(value="Writes the contents of a FlowFile to the local file system") @SeeAlso(value={FetchFile.class,GetFile.class}) @ReadsAttribute(attribute="filename", description="The filename to use when writing the FlowFile to disk.") @Restricted(restrictions=@Restriction(requiredPermission=WRITE_FILESYSTEM,explanation="Provides operator the ability to write to any file that NiFi has access to.")) public class PutFile extends AbstractProcessor
Modifier and Type | Field and Description |
---|---|
static PropertyDescriptor |
CHANGE_GROUP |
static PropertyDescriptor |
CHANGE_LAST_MODIFIED_TIME |
static PropertyDescriptor |
CHANGE_OWNER |
static PropertyDescriptor |
CHANGE_PERMISSIONS |
static PropertyDescriptor |
CONFLICT_RESOLUTION |
static PropertyDescriptor |
CREATE_DIRS |
static PropertyDescriptor |
DIRECTORY |
static String |
FAIL_RESOLUTION |
static String |
FILE_MODIFY_DATE_ATTR_FORMAT |
static String |
FILE_MODIFY_DATE_ATTRIBUTE |
static String |
IGNORE_RESOLUTION |
static PropertyDescriptor |
MAX_DESTINATION_FILES |
static int |
MAX_FILE_LOCK_ATTEMPTS |
static Pattern |
NUM_PATTERN |
private static Validator |
PERMISSIONS_VALIDATOR |
private List<PropertyDescriptor> |
properties |
static Relationship |
REL_FAILURE |
static Relationship |
REL_SUCCESS |
private Set<Relationship> |
relationships |
static String |
REPLACE_RESOLUTION |
static Pattern |
RWX_PATTERN |
Constructor and Description |
---|
PutFile() |
Modifier and Type | Method and Description |
---|---|
private long |
getFilesNumberInFolder(Path folder,
String filename) |
Set<Relationship> |
getRelationships() |
protected List<PropertyDescriptor> |
getSupportedPropertyDescriptors() |
protected void |
init(ProcessorInitializationContext context) |
void |
onTrigger(ProcessContext context,
ProcessSession session) |
protected String |
stringPermissions(String perms,
boolean directory) |
onTrigger
getControllerServiceLookup, getIdentifier, getLogger, getNodeTypeProvider, initialize, isConfigurationRestored, isScheduled, toString, updateConfiguredRestoredTrue, updateScheduledFalse, updateScheduledTrue
customValidate, equals, getPropertyDescriptor, getPropertyDescriptors, getSupportedDynamicPropertyDescriptor, hashCode, onPropertyModified, validate
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isStateful
getPropertyDescriptor, getPropertyDescriptors, onPropertyModified, validate
public static final String REPLACE_RESOLUTION
public static final String IGNORE_RESOLUTION
public static final String FAIL_RESOLUTION
public static final String FILE_MODIFY_DATE_ATTRIBUTE
public static final String FILE_MODIFY_DATE_ATTR_FORMAT
public static final Pattern RWX_PATTERN
public static final Pattern NUM_PATTERN
private static final Validator PERMISSIONS_VALIDATOR
public static final PropertyDescriptor DIRECTORY
public static final PropertyDescriptor MAX_DESTINATION_FILES
public static final PropertyDescriptor CONFLICT_RESOLUTION
public static final PropertyDescriptor CHANGE_LAST_MODIFIED_TIME
public static final PropertyDescriptor CHANGE_PERMISSIONS
public static final PropertyDescriptor CHANGE_OWNER
public static final PropertyDescriptor CHANGE_GROUP
public static final PropertyDescriptor CREATE_DIRS
public static final int MAX_FILE_LOCK_ATTEMPTS
public static final Relationship REL_SUCCESS
public static final Relationship REL_FAILURE
private List<PropertyDescriptor> properties
private Set<Relationship> relationships
protected void init(ProcessorInitializationContext context)
init
in class AbstractSessionFactoryProcessor
public Set<Relationship> getRelationships()
getRelationships
in interface Processor
getRelationships
in class AbstractSessionFactoryProcessor
protected List<PropertyDescriptor> getSupportedPropertyDescriptors()
getSupportedPropertyDescriptors
in class AbstractConfigurableComponent
public void onTrigger(ProcessContext context, ProcessSession session)
onTrigger
in class AbstractProcessor
Copyright © 2022 Apache NiFi Project. All rights reserved.