[teiid-issues] [JBoss JIRA] (TEIID-4441) Add FTP/SFTP based access to the File Resource Adapter
Kylin Soong (JIRA)
issues at jboss.org
Mon Dec 5 22:54:00 EST 2016
[ https://issues.jboss.org/browse/TEIID-4441?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13334273#comment-13334273 ]
Kylin Soong commented on TEIID-4441:
------------------------------------
DO we need Steven's weight? we may need more discussion, If we decided to use VFS, we need change the file translator interface first
{code}
public class FileExecutionFactory extends ExecutionFactory<ConnectionFactory, FileConnection>
{code}
If change 'org.teiid.translator.FileConnection' , add more methods like
{code}
void add(VirtualFile file) throws ResourceException;
VirtualFile getVFSFile(String path) throws ResourceException;
void remote(String path) throws ResourceException;
void delete(VirtualFile file) throws ResourceException;
{code}
this will bring a vfs dependency to teiid-api module, but teiid-api be used by many modules, vfs has logging dependencies, this looks can not be concise.
I suggest to create a new translator api module like mongo-api, eg, create a VFSFileConnection keep the new methods, and create a new translator
{code}
public class VFSFileExecutionFactory extends ExecutionFactory<ConnectionFactory, VFSFileConnection>
{code}
this translator can work with:
* ftp connector
* hdfs connector
* ...
I will not do any work before I totally clear how we do.
> Add FTP/SFTP based access to the File Resource Adapter
> ------------------------------------------------------
>
> Key: TEIID-4441
> URL: https://issues.jboss.org/browse/TEIID-4441
> Project: Teiid
> Issue Type: Enhancement
> Components: Misc. Connectors
> Reporter: Ramesh Reddy
> Assignee: Kylin Soong
> Fix For: Open To Community, 9.2
>
>
> This has been requested few times in the community, it would be nice to give provide this functionality. Using http://commons.apache.org/proper/commons-net/ seems to be right decision.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the teiid-issues
mailing list