Class ECauthModule
java.lang.Object
ecmwf.common.ectrans.TransferModule
ecmwf.ecpds.mover.ProxyModule
ecmwf.ecpds.mover.ECauthModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(String location, ECtransSetup setup) Connect.voidCopy the source file to the target file, starting at position posn and writing size bytes.voidDelete by name.voidExec.voidget(String name, long posn, ProxySocket socket) Gets the.intgetPort(ECtransSetup setup) Gets the port from the setup.Gets the current status of the transfer module.String[]listAsStringArray(String directory, String pattern) List as a string array.voidMake directory by name.voidMove source to target.voidput(String name, long posn, long size, ProxySocket socket) Puts the.voidremove(boolean closedOnError) Removes the.voidRemove directory by name.longGive the size of the file given by its name.Methods inherited from class ecmwf.ecpds.mover.ProxyModule
check, close, get, put, setInputStream, setOutputStreamMethods inherited from class ecmwf.common.ectrans.TransferModule
containsAttribute, delegateChecksum, get, getAttribute, getAttribute, getAvailable, getClearPassword, getClosedOnError, getCookie, getDebug, getECtransDestination, getECtransModule, getECUser, getMSUser, getRemoteProvider, list, listAsByteArray, preGet, prePut, put, setAttribute, setAttribute, setAvailable, setClosedOnError, setDebug, setInputFilter, setInputMd5, setInputSize, setOutputFilter, updateSocketStatistics
-
Constructor Details
-
ECauthModule
public ECauthModule()
-
-
Method Details
-
getPort
Gets the port from the setup. Gets the port.- Overrides:
getPortin classTransferModule- Parameters:
setup- the setup- Returns:
- the port
- Throws:
IOException- Signals that an I/O exception has occurred.
-
connect
public void connect(String location, ECtransSetup setup) throws IOException, ConnectionException, EccmdException, com.jcraft.jsch.JSchException Connect. Connect.- Specified by:
connectin classTransferModule- Parameters:
location- the locationsetup- the setup- Throws:
IOExceptionConnectionExceptionEccmdExceptioncom.jcraft.jsch.JSchException
-
get
Gets the. Gets the.- Specified by:
getin classProxyModule- Parameters:
name- the nameposn- the posnsocket- the socket- Throws:
Exception- the exception
-
put
Puts the. Put.- Specified by:
putin classProxyModule- Parameters:
name- the nameposn- the posnsize- the sizesocket- the socket- Throws:
Exception- the exception
-
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.
-
del
Delete by name. Del.- Specified by:
delin classTransferModule- Parameters:
name- the name- Throws:
IOException- Signals that an I/O exception has occurred.
-
mkdir
Make directory by name. Mkdir.- Overrides:
mkdirin classTransferModule- Parameters:
dir- the dir- Throws:
IOException- Signals that an I/O exception has occurred.
-
rmdir
Remove directory by name. Rmdir.- Overrides:
rmdirin classTransferModule- Parameters:
dir- the dir- 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.
-
move
Move source to target. Move.- Overrides:
movein classTransferModule- Parameters:
source- the sourcetarget- the target- Throws:
IOException- Signals that an I/O exception has occurred.
-
listAsStringArray
List as a string array. List as string array.- Overrides:
listAsStringArrayin classTransferModule- Parameters:
directory- the directorypattern- the pattern- Returns:
- the string[]
- Throws:
IOException- Signals that an I/O exception has occurred.
-
exec
Exec.- Parameters:
command- the command- Throws:
IOException- Signals that an I/O exception has occurred.
-
remove
Removes the. Removes the.- Specified by:
removein classProxyModule- Parameters:
closedOnError- the closed on error- Throws:
IOException- Signals that an I/O exception has occurred.
-
getStatus
Gets the current status of the transfer module. Gets the status.- Overrides:
getStatusin classTransferModule- Returns:
- the status
-