Class ExecModule
java.lang.Object
ecmwf.common.ectrans.TransferModule
ecmwf.common.ectrans.module.ExecModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Check if the last put was successful comparing the number of bytes sent and the checksum provided to the one calculated.void
close()
Close.void
connect
(String dir, ECtransSetup setup) Connect.void
Delete by name.Gets the input stream to read the file given by name starting at posn.Provide an output stream to write the content of the file given by its name starting at position posn.long
Give the size of the file given by its name.Methods inherited from class ecmwf.common.ectrans.TransferModule
containsAttribute, copy, delegateChecksum, get, getAttribute, getAttribute, getAvailable, getClearPassword, getClosedOnError, getCookie, getDebug, getECtransDestination, getECtransModule, getECUser, getMSUser, getPort, getRemoteProvider, getStatus, list, listAsByteArray, listAsStringArray, mkdir, move, preGet, prePut, put, rmdir, setAttribute, setAttribute, setAvailable, setClosedOnError, setDebug, setInputFilter, setInputMd5, setInputSize, setOutputFilter, updateSocketStatistics
-
Constructor Details
-
ExecModule
public ExecModule()
-
-
Method Details
-
connect
Connect. Connect.- Specified by:
connect
in classTransferModule
- Parameters:
dir
- the locationsetup
- the setup- Throws:
IOException
-
close
-
check
Check if the last put was successful comparing the number of bytes sent and the checksum provided to the one calculated. By default, doing nothing. Check.- Overrides:
check
in classTransferModule
- Parameters:
sent
- the sentchecksum
- the checksum- Throws:
IOException
- Signals that an I/O exception has occurred.
-
del
Delete by name. Del.- Specified by:
del
in 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:
put
in classTransferModule
- Parameters:
name
- the nameposn
- the posnsize
- the size- Returns:
- the output 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:
size
in classTransferModule
- Parameters:
name
- the name- Returns:
- the long
-
get
Gets the input stream to read the file given by name starting at posn. Gets the.- Specified by:
get
in classTransferModule
- Parameters:
name
- the nameposn
- the posn- Returns:
- the input stream
- Throws:
IOException
- Signals that an I/O exception has occurred.
-