Class TestModule
java.lang.Object
ecmwf.common.ectrans.TransferModule
ecmwf.common.ectrans.module.TestModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close.voidconnect(String location, ECtransSetup setup) Connect.voidCopy the source file to the target file, starting at position posn and writing size bytes.voidDelete by name.Gets the input stream to read the file given by name starting at posn.Gets the current status of the transfer module.Provide an output stream to write the content of the file given by its name starting at position posn.longGive the size of the file given by its name.Methods inherited from class ecmwf.common.ectrans.TransferModule
check, containsAttribute, delegateChecksum, get, getAttribute, getAttribute, getAvailable, getClearPassword, getClosedOnError, getCookie, getDebug, getECtransDestination, getECtransModule, getECUser, getMSUser, getPort, getRemoteProvider, list, listAsByteArray, listAsStringArray, mkdir, move, preGet, prePut, put, rmdir, setAttribute, setAttribute, setAvailable, setClosedOnError, setDebug, setInputFilter, setInputMd5, setInputSize, setOutputFilter, updateSocketStatistics
-
Constructor Details
-
TestModule
public TestModule()
-
-
Method Details
-
getStatus
Gets the current status of the transfer module. Gets the status.- Overrides:
getStatusin classTransferModule- Returns:
- the status
-
connect
Connect. Connect.- Specified by:
connectin classTransferModule- Parameters:
location- the locationsetup- the setup- Throws:
IOException
-
del
Delete by name. Del.- Specified by:
delin classTransferModule- Parameters:
name- the name- Throws:
IOException- Signals that an I/O exception has occurred.
-
put
Provide an output stream to write the content of the file given by its name starting at position posn. Put.- Specified by:
putin classTransferModule- Parameters:
name- the nameposn- the posnsize- the size- Returns:
- the output stream
- Throws:
IOException- Signals that an I/O exception has occurred.
-
copy
Copy the source file to the target file, starting at position posn and writing size bytes. Copy.- Overrides:
copyin classTransferModule- Parameters:
source- the sourcetarget- the targetposn- the posnsize- the size- Throws:
IOException- Signals that an I/O exception has occurred.
-
get
Gets the input stream to read the file given by name starting at posn. Gets the.- Specified by:
getin classTransferModule- Parameters:
name- the nameposn- the posn- Returns:
- the input stream
- Throws:
IOException- Signals that an I/O exception has occurred.
-
size
Give the size of the file given by its name. Size.- Specified by:
sizein classTransferModule- Parameters:
name- the name- Returns:
- the long
- Throws:
IOException- Signals that an I/O exception has occurred.
-
close
-