Class GcsModule
java.lang.Object
ecmwf.common.ectrans.TransferModule
ecmwf.common.ectrans.module.GcsModule
- All Implemented Interfaces:
Closeable, AutoCloseable
The Class GCSModule.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close.voidconnect(String location, ECtransSetup setup) Connect.voidDel.Gets the.intgetPort(ECtransSetup setup) Gets the port.Gets the status.byte[]listAsByteArray(String directory, String pattern) List as byte array.String[]listAsStringArray(String directory, String pattern) List as string array.voidMkdir.booleanput(InputStream in, String name, long posn, long size) Put.Put.voidRmdir.longSize.voidUpdate socket statistics.Methods inherited from class TransferModule
check, containsAttribute, copy, delegateChecksum, get, getAttribute, getAttribute, getAvailable, getClearPassword, getClosedOnError, getCookie, getDebug, getECtransDestination, getECtransModule, getECUser, getMSUser, getRemoteProvider, list, move, preGet, prePut, setAttribute, setAttribute, setAvailable, setClosedOnError, setDebug, setInputFilter, setInputMd5, setInputSize, setOutputFilter
-
Constructor Details
-
GcsModule
public GcsModule()
-
-
Method Details
-
getStatus
Gets the status.- Overrides:
getStatusin classTransferModule- Returns:
- the status
-
getPort
Gets the port.- Overrides:
getPortin classTransferModule- Parameters:
setup- the setup- Returns:
- the port
-
updateSocketStatistics
Update socket statistics.- Overrides:
updateSocketStatisticsin classTransferModule- Throws:
IOException- Signals that an I/O exception has occurred.
-
connect
Connect.- Specified by:
connectin classTransferModule- Parameters:
location- the locationsetup- the setup- Throws:
IOException- Signals that an I/O exception has occurred.
-
del
Del. If file does not exist, command still successful- Specified by:
delin classTransferModule- Parameters:
name- the name- Throws:
IOException- Signals that an I/O exception has occurred.
-
put
Put.- Overrides:
putin classTransferModule- Parameters:
in- the inname- the nameposn- the posnsize- the size- Returns:
- true, if successful
- Throws:
IOException- Signals that an I/O exception has occurred.
-
put
Put.- Specified by:
putin classTransferModule- Parameters:
name- the nameposn- thesize- the size- Returns:
- the output stream
- Throws:
IOException- Signals that an I/O exception has occurred.
-
get
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
Size.- Specified by:
sizein classTransferModule- Parameters:
name- the name- Returns:
- the long
- Throws:
IOException- Signals that an I/O exception has occurred.
-
mkdir
Mkdir.- Overrides:
mkdirin classTransferModule- Parameters:
directory- the directory- Throws:
IOException- Signals that an I/O exception has occurred.
-
rmdir
Rmdir.- Overrides:
rmdirin classTransferModule- Parameters:
directory- the directory- 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.
-
listAsByteArray
List as byte array.- Overrides:
listAsByteArrayin classTransferModule- Parameters:
directory- the directorypattern- the pattern- Returns:
- the byte[]
- Throws:
IOException- Signals that an I/O exception has occurred.
-
close
Close.- Throws:
IOException- Signals that an I/O exception has occurred.
-