org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl
Class FTPDataSink
java.lang.Object
org.gcube.datatransformation.datatransformationlibrary.datahandlers.impl.FTPDataSink
- All Implemented Interfaces:
- org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler, org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink
public class FTPDataSink
- extends Object
- implements org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink
- Author:
- Dimitris Katris, NKUA
This DataSink stores DataElements in an ftp site.
|
Constructor Summary |
FTPDataSink(String output,
org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] outputParameters)
|
|
Method Summary |
void |
append(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement element)
|
void |
close()
|
String |
getOutput()
|
boolean |
isClosed()
|
static void |
main(String[] args)
Tests the FTPDataSink |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARAMETER_DirectoryName
protected static final String PARAMETER_DirectoryName
- See Also:
- Constant Field Values
PARAMETER_Username
protected static final String PARAMETER_Username
- See Also:
- Constant Field Values
PARAMETER_Password
protected static final String PARAMETER_Password
- See Also:
- Constant Field Values
PARAMETER_Port
protected static final String PARAMETER_Port
- See Also:
- Constant Field Values
FTPDataSink
public FTPDataSink(String output,
org.gcube.datatransformation.datatransformationlibrary.model.Parameter[] outputParameters)
throws Exception
- Parameters:
output - The output value of the DataSink.outputParameters - The output parameters of the DataSink.
- Throws:
Exception - If a connection with the ftp site could not be established.
main
public static void main(String[] args)
throws Exception
- Tests the FTPDataSink
- Parameters:
args - nothing
- Throws:
Exception - If a connection could not be established with the ftp site.
append
public void append(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement element)
- Specified by:
append in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink
- Parameters:
element - DataElement to be appended to this DataSink- See Also:
DataSink.append(org.gcube.datatransformation.datatransformationlibrary.dataelements.DataElement)
close
public void close()
- Specified by:
close in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler
- See Also:
DataHandler.close()
getOutput
public String getOutput()
- Specified by:
getOutput in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataSink
- Returns:
- The output of the transformation.
- See Also:
DataSink.getOutput()
isClosed
public boolean isClosed()
- Specified by:
isClosed in interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler
- Returns:
- true if the DataHandler has been closed.
- See Also:
DataHandler.isClosed()
Copyright © 2012. All Rights Reserved.