GetSmbFile
描述:
Reads file from a samba network location to FlowFiles. Use this processor instead of a cifs mounts if share access control is important. Configure the Hostname, Share and Directory accordingly: \[Hostname][Share][path\to\Directory]
标签:
samba, smb, cifs, files, get
参数:
如下列表中,必填参数则标识为加粗. 其他未加粗参数,则表示为可选参数。表中同时提到参数默认值设置, 参数还支持 表达式语言, 并且 如果将一个参数认定为"敏感", 表示是加密状态. 在输入一个敏感参数时, 确保 orchsym.properties 文件中存在属性设置 orchsym.sensitive.props.key.
名字 | 默认值 | 允许值列表 | 描述 |
---|---|---|---|
Hostname | The network host to which files should be written. | ||
Share | The network share to which files should be written. This is the "first folder"after the hostname: \hostname[share]\dir1\dir2 | ||
Directory | The network folder to which files should be written. This is the remaining relative path after the share: \hostname\share[dir1\dir2]. 支持表达式语言 (仅支持变量) | ||
Domain | The domain used for authentication. Optional, in most cases username and password is sufficient. | ||
Username | The username used for authentication. If no username is set then anonymous authentication is attempted. | ||
Password | The password used for authentication. Required if Username is set. 敏感状态 | ||
Share Access Strategy | none | - none - read - read, delete - read, write, delete | Indicates which shared access are granted on the file during the read. None is the most restrictive, but the safest setting to prevent corruption. |
File Filter | Only files whose names match the given regular expression will be picked up | ||
Path Filter | When Recurse Subdirectories is true, then only subdirectories whose path matches the given regular expression will be scanned | ||
Batch Size | 10 | The maximum number of files to pull in each iteration | |
Keep Source File | false | - true - false | If true, the file is not deleted after it has been copied to the Content Repository; this causes the file to be picked up continually and is useful for testing purposes. If not keeping original platform will need write permissions on the directory it is pulling from otherwise it will ignore the file. |
Recurse Subdirectories | true | - true - false | Indicates whether or not to pull files from subdirectories |
Polling Interval | 0 sec | Indicates how long to wait before performing a directory listing | |
Ignore Hidden Files | true | - true - false | Indicates whether or not hidden files should be ignored |
连线:
名字 | 描述 |
---|---|
success | All files are routed to success |
读取属性:
未提供。
写入属性:
名字 | 描述 |
---|---|
filename | The filename is set to the name of the file on the network share |
path | The path is set to the relative path of the file's network share name. For example, if the input is set to \hostname\share\tmp, files picked up from \tmp will have the path attribute set to tmp |
file.creationTime | The date and time that the file was created. May not work on all file systems |
file.lastModifiedTime | The date and time that the file was last modified. May not work on all file systems |
file.lastAccessTime | The date and time that the file was last accessed. May not work on all file systems |
absolute.path | The full path from where a file was picked up. This includes the hostname and the share name |
状态管理:
该组件不保存状态。
限制:
该组件没有限制
输入流要求:
组件禁止提供输入流。
系统资源考量:
未提供。