|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface StorageClient
The client interface to the storage management resource
| Method Summary | ||
|---|---|---|
void |
changePermissions(java.lang.String path,
boolean readable,
boolean writable,
boolean executable)
Change the file permissions. |
|
void |
copyFile(java.lang.String destination,
java.lang.String source)
Copy the file from one location to another at the storage |
|
void |
createDirectory(java.lang.String path)
Create the directory at the storage. |
|
void |
deleteFile(java.lang.String path)
Delete the remote file. |
|
|
exportFile(java.lang.String path,
java.lang.String protocol,
boolean isPipe)
Create the file transfer resource to transfer the file from the the remote location at the storage to the client machine |
|
java.lang.String |
getFileSeparator()
Get the file separator suitable for valid path construction for this storage |
|
|
getFileSystem()
|
|
java.lang.String[] |
getSupportedProtocols()
Get the list of supported file transfer protocols. |
|
|
importFile(java.lang.String file,
java.lang.String protocol,
boolean isPipe)
Create the file transfer resource to transfer the file from the client machine to the remote location at the storage |
|
|
listDirectory(java.lang.String path)
List the files in the directory. |
|
|
listProperties(java.lang.String path)
List the properties (attributes) of the file |
|
void |
renameFile(java.lang.String destination,
java.lang.String source)
Rename the remote file |
|
| Methods inherited from interface com.intel.gpe.clients.api.WSRPClient |
|---|
getMultipleResourceProperties, getResourceProperty, getResourcePropertyDocument, queryXPath10Properties |
| Method Detail |
|---|
<GridFileType extends GridFile> java.util.List<GridFileType> listDirectory(java.lang.String path)
throws GPESecurityException,
GPEMiddlewareServiceException,
GPEResourceUnknownException,
GPEDirectoryNotListedException,
GPEMiddlewareRemoteException
path - The relative path to the directory
GPEDirectoryNotListedException - If failed to list directory contents
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
void createDirectory(java.lang.String path)
throws GPEResourceUnknownException,
GPEDirectoryNotCreatedException,
GPESecurityException,
GPEMiddlewareServiceException,
GPEMiddlewareRemoteException
path - The relative path to the directory
GPEDirectoryNotCreatedException - If failed to create directory
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
void deleteFile(java.lang.String path)
throws GPEResourceUnknownException,
GPEFileNotDeletedException,
GPESecurityException,
GPEMiddlewareRemoteException,
GPEMiddlewareServiceException
path - The path to the file
GPEFileNotDeletedException - If failed to delete file
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
<GridFileType extends GridFile> GridFileType listProperties(java.lang.String path)
throws GPESecurityException,
GPEMiddlewareServiceException,
GPEFilePropertiesNotListedException,
GPEResourceUnknownException,
GPEMiddlewareRemoteException
path - The path to the file
GPEFilePropertiesNotListedException - If failed to list file properties
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
<FileTransferClientType extends FileTransferClient> FileTransferClientType importFile(java.lang.String file,
java.lang.String protocol,
boolean isPipe)
throws GPEResourceUnknownException,
GPEImportFileResourceNotCreatedException,
GPESecurityException,
GPEFileTransferProtocolNotSupportedException,
GPEMiddlewareServiceException,
GPEMiddlewareRemoteException
file - The path where the file must be storedprotocol - The protocol for file transfer operationisPipe - if true then write to pipe
GPEImportFileResourceNotCreatedException - If failed to create import file resource
GPEFileTransferProtocolNotSupportedException - If corresponding file transfer protocol is not supported by a target system
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
<FileTransferClientType extends FileTransferClient> FileTransferClientType exportFile(java.lang.String path,
java.lang.String protocol,
boolean isPipe)
throws GPEFileTransferProtocolNotSupportedException,
GPEExportFileResourceNotCreatedException,
GPEResourceUnknownException,
GPESecurityException,
GPEMiddlewareServiceException,
GPEMiddlewareRemoteException
path - The path where the file must be exportedprotocol - The protocol for file transfer operationisPipe - if true then read from pipe
GPEExportFileResourceNotCreatedException - If failed to create file export resource
GPEFileTransferProtocolNotSupportedException - If corresponding file transfer protocol is not supported by a target system
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
void changePermissions(java.lang.String path,
boolean readable,
boolean writable,
boolean executable)
throws GPEPermissionsNotChangedException,
GPEResourceUnknownException,
GPEMiddlewareRemoteException,
GPESecurityException,
GPEMiddlewareServiceException
path - The path to the filereadable - if true make the file readable, otherwise make unreadablewritable - if true make the file writable, otherwise make unwritableexecutable - if true make the file executable, otherwise non-executable
GPEPermissionsNotChangedException - If failed to change file permissions
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
void copyFile(java.lang.String destination,
java.lang.String source)
throws GPESecurityException,
GPEMiddlewareServiceException,
GPEMiddlewareRemoteException,
GPEFileNotCopiedException,
GPEResourceUnknownException
destination - The destination locationsource - The source location
GPEFileNotCopiedException - If failed to copy file
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
void renameFile(java.lang.String destination,
java.lang.String source)
throws GPESecurityException,
GPEFileNotRenamedException,
GPEResourceUnknownException,
GPEMiddlewareServiceException,
GPEMiddlewareRemoteException
destination - The destinationsource - The source
GPEFileNotRenamedException - If failed to rename file
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
<FileSystemType extends FileSystem> FileSystemType getFileSystem()
throws GPEInvalidResourcePropertyQNameException,
GPEResourceUnknownException,
GPEUnmarshallingException,
GPESecurityException,
GPEMiddlewareRemoteException,
GPEMiddlewareServiceException
GPEInvalidResourcePropertyQNameException - If corresponding job resource does not provide FileSystem property
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPEUnmarshallingException - If something bad happens during convertation from XML to resource property object
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
java.lang.String[] getSupportedProtocols()
throws GPEInvalidResourcePropertyQNameException,
GPEResourceUnknownException,
GPEUnmarshallingException,
GPESecurityException,
GPEMiddlewareRemoteException,
GPEMiddlewareServiceException
GPEInvalidResourcePropertyQNameException - If corresponding job resource does not provide FileTransferProtocol property
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPEUnmarshallingException - If something bad happens during convertation from XML to resource property object
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
java.lang.String getFileSeparator()
throws GPEInvalidResourcePropertyQNameException,
GPEResourceUnknownException,
GPEUnmarshallingException,
GPESecurityException,
GPEMiddlewareRemoteException,
GPEMiddlewareServiceException
GPEInvalidResourcePropertyQNameException - If corresponding job resource does not provide FileSeparator property
GPEResourceUnknownException - If WSRF-HE fails to find a resource with corresponding identifier
GPEUnmarshallingException - If something bad happens during convertation from XML to resource property object
GPESecurityException - If client fails to setup security
GPEMiddlewareRemoteException - If middleware throws an analogue of RemoreException
GPEMiddlewareServiceException - If middleware throws an analogue of ServiceException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||