Class ECauthModule
java.lang.Object
ecmwf.common.ectrans.TransferModule
ecmwf.ecpds.mover.ProxyModule
ecmwf.ecpds.mover.ECauthModule
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
connect
(String location, ECtransSetup setup) Connect.void
Copy the source file to the target file, starting at position posn and writing size bytes.void
Delete by name.void
Exec.void
get
(String name, long posn, ProxySocket socket) Gets the.int
getPort
(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.void
Make directory by name.void
Move source to target.void
put
(String name, long posn, long size, ProxySocket socket) Puts the.void
remove
(boolean closedOnError) Removes the.void
Remove directory by name.long
Give the size of the file given by its name.Methods inherited from class ecmwf.ecpds.mover.ProxyModule
check, close, get, put, setInputStream, setOutputStream
Methods 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:
getPort
in 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:
connect
in classTransferModule
- Parameters:
location
- the locationsetup
- the setup- Throws:
IOException
ConnectionException
EccmdException
com.jcraft.jsch.JSchException
-
get
Gets the. Gets the.- Specified by:
get
in classProxyModule
- Parameters:
name
- the nameposn
- the posnsocket
- the socket- Throws:
Exception
- the exception
-
put
Puts the. Put.- Specified by:
put
in 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:
copy
in 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:
del
in classTransferModule
- Parameters:
name
- the name- Throws:
IOException
- Signals that an I/O exception has occurred.
-
mkdir
Make directory by name. Mkdir.- Overrides:
mkdir
in classTransferModule
- Parameters:
dir
- the dir- Throws:
IOException
- Signals that an I/O exception has occurred.
-
rmdir
Remove directory by name. Rmdir.- Overrides:
rmdir
in 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:
size
in 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:
move
in 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:
listAsStringArray
in 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:
remove
in 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:
getStatus
in classTransferModule
- Returns:
- the status
-