Class UserSession
java.lang.Object
ecmwf.common.ecaccess.UserSession
- Direct Known Subclasses:
MasterProvider.UserDataSpace
,MoverProvider.UserDataSpace
The Class UserSession.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract void
check
(ProxySocket proxy) Check.void
Chmod.void
close
(boolean remove) Close.void
Copy file.void
deleteFile
(String source, boolean force) Delete file.Gets the default domain.Gets the default group.Gets the setup.abstract long
getFileLastModified
(String source) Gets the file last modified.abstract FileListElement[]
getFileList
(String path) Gets the file list.abstract FileListElement[]
getFileList
(String path, String options) Gets the file list.abstract FileListElement
getFileListElement
(String path) Gets the file list element.abstract long
getFileSize
(String source) Gets the file size.abstract ProxySocket
getProxySocketInput
(String source, long offset) Gets the proxy socket input.abstract ProxySocket
getProxySocketInput
(String source, long offset, long length) Gets the proxy socket input.abstract ProxySocket
getProxySocketOutput
(String target, long offset, int umask) Gets the proxy socket output.Gets the temp file.getToken()
Gets the token.getUser()
Gets the user.Gets the welcome.void
Mkdir.void
Move file.void
Rmdir.
-
Constructor Details
-
UserSession
-
-
Method Details
-
getUser
-
getToken
-
getDefaultGroup
-
getDefaultDomain
-
getWelcome
-
getECtransSetup
-
chmod
Chmod.- Parameters:
mode
- the modepath
- the path- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
getFileSize
Gets the file size.- Parameters:
source
- the source- Returns:
- the file size
- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
deleteFile
Delete file.- Parameters:
source
- the sourceforce
- the force- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
getFileList
Gets the file list.- Parameters:
path
- the path- Returns:
- the file list
- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
getFileList
public abstract FileListElement[] getFileList(String path, String options) throws EccmdException, IOException Gets the file list.- Parameters:
path
- the pathoptions
- the options- Returns:
- the file list
- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
getFileListElement
Gets the file list element.- Parameters:
path
- the path- Returns:
- the file list element
- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
getFileLastModified
Gets the file last modified.- Parameters:
source
- the source- Returns:
- the file last modified
- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
mkdir
Mkdir.- Parameters:
dir
- the dir- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
rmdir
Rmdir.- Parameters:
dir
- the dir- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
moveFile
Move file.- Parameters:
source
- the sourcetarget
- the target- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
copyFile
public void copyFile(String source, String target, boolean erase) throws EccmdException, IOException Copy file.- Parameters:
source
- the sourcetarget
- the targeterase
- the erase- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
getTempFile
Gets the temp file.- Returns:
- the temp file
- Throws:
IOException
- Signals that an I/O exception has occurred.EccmdException
- the eccmd exception
-
getProxySocketInput
public abstract ProxySocket getProxySocketInput(String source, long offset) throws EccmdException, IOException Gets the proxy socket input.- Parameters:
source
- the sourceoffset
- the offset- Returns:
- the proxy socket input
- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
getProxySocketInput
public abstract ProxySocket getProxySocketInput(String source, long offset, long length) throws EccmdException, IOException Gets the proxy socket input.- Parameters:
source
- the sourceoffset
- the offsetlength
- the length- Returns:
- the proxy socket input
- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
getProxySocketOutput
public abstract ProxySocket getProxySocketOutput(String target, long offset, int umask) throws EccmdException, IOException Gets the proxy socket output.- Parameters:
target
- the targetoffset
- the offsetumask
- the umask- Returns:
- the proxy socket output
- Throws:
EccmdException
- the eccmd exceptionIOException
- Signals that an I/O exception has occurred.
-
check
Check.- Parameters:
proxy
- the proxy- Throws:
IOException
- Signals that an I/O exception has occurred.EccmdException
- the eccmd exception
-
close
public void close(boolean remove) Close.- Parameters:
remove
- the remove
-