Class ECauthModule
java.lang.Object
ecmwf.common.ectrans.TransferModule
ecmwf.ecpds.mover.ProxyModule
ecmwf.ecpds.mover.ECauthModule
- All Implemented Interfaces:
ECpdsProxy, Closeable, AutoCloseable
The Class ECauthModule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(String location, ECtransSetup setup) Connect.voidCopy.voidDel.voidExec.voidget(String name, long posn, ProxySocket socket) Gets the.intgetPort(ECtransSetup setup) Gets the port.Gets the status.String[]listAsStringArray(String directory, String pattern) List as string array.voidMkdir.voidMove.voidput(String name, long posn, long size, ProxySocket socket) Put.voidremove(boolean closedOnError) Removes the.voidRmdir.longSize.Methods inherited from class ProxyModule
check, close, get, put, setInputStream, setOutputStreamMethods inherited from class 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.- 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, com.jcraft.jsch.JSchException Connect.- Specified by:
connectin classTransferModule- Parameters:
location- the locationsetup- the setup
-
get
Gets the.- Specified by:
getin classProxyModule- Parameters:
name- the nameposn- the posnsocket- the socket- Throws:
Exception- the exception
-
put
Put.- Specified by:
putin classProxyModule- Parameters:
name- the nameposn- the posnsize- the sizesocket- the socket- Throws:
Exception- the exception
-
copy
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
Del.- Specified by:
delin classTransferModule- Parameters:
name- the name- Throws:
IOException- Signals that an I/O exception has occurred.
-
mkdir
Mkdir.- Overrides:
mkdirin classTransferModule- Parameters:
dir- the dir- Throws:
IOException- Signals that an I/O exception has occurred.
-
rmdir
Rmdir.- Overrides:
rmdirin classTransferModule- Parameters:
dir- the dir- Throws:
IOException- Signals that an I/O exception has occurred.
-
size
Size.- Specified by:
sizein classTransferModule- Parameters:
name- the name- Returns:
- the long
- Throws:
IOException- Signals that an I/O exception has occurred.
-
move
Move.- Overrides:
movein classTransferModule- Parameters:
source- the sourcetarget- the target- Throws:
IOException- Signals that an I/O exception has occurred.
-
listAsStringArray
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.- Specified by:
removein classProxyModule- Parameters:
closedOnError- the closed on error- Throws:
IOException- Signals that an I/O exception has occurred.
-
getStatus
Gets the status.- Overrides:
getStatusin classTransferModule- Returns:
- the status
-