|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.data.strategies.HomeDirectoryTransferStrategy
This strategy moves files to and from a user's home directory when uploading and downloading files from the repository.
| Field Summary | |
static java.lang.String |
FTP_PORT_DEFAULT
|
static java.lang.String |
FTP_PORT_KEY
|
static java.lang.String |
GRID_FTP_PORT_DEFAULT
|
static java.lang.String |
GRID_FTP_PORT_KEY
|
| Constructor Summary | |
HomeDirectoryTransferStrategy(NMDSAdapter nmds,
PermanentStorageInterface pStore,
java.lang.String protocol,
int port,
java.lang.String secretStagingDirectory,
java.lang.String repositoryRootDirectory)
The only constructor for this class. |
|
| Method Summary | |
java.net.URI[] |
createDownloadURI(DownloadRequestRecord drr)
This moves an existing file from the repository to staging area and creates the corresponding uri. |
protected java.net.URI[] |
createTransferURI(TransferRequestRecord trr)
|
java.net.URI[] |
createUploadURI(UploadRequestRecord urr)
This creates the uri that the user can upload a file to. |
void |
finishDownload(DownloadRequestRecord drr)
When a download from the server is complete, a notification is sent to NFMS which in turn calls this method. |
java.net.URI |
finishUpload(UploadRequestRecord urr)
Once NFMS receives notification that the upload is done, this method is invoked. |
protected org.apache.log4j.Logger |
getLogger()
|
protected NMDSAdapter |
getNMDS()
|
protected int |
getPort()
|
java.lang.String |
getProtocol()
|
PermanentStorageInterface |
getPStore()
|
protected java.lang.String |
getRepoDirectory()
|
protected java.net.URI |
getServiceURI()
|
protected java.net.URI |
getUserDirURI(java.lang.String userID)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static java.lang.String GRID_FTP_PORT_KEY
public static java.lang.String FTP_PORT_KEY
public static java.lang.String GRID_FTP_PORT_DEFAULT
public static java.lang.String FTP_PORT_DEFAULT
| Constructor Detail |
public HomeDirectoryTransferStrategy(NMDSAdapter nmds,
PermanentStorageInterface pStore,
java.lang.String protocol,
int port,
java.lang.String secretStagingDirectory,
java.lang.String repositoryRootDirectory)
throws NFMSException
| Method Detail |
protected NMDSAdapter getNMDS()
public java.lang.String getProtocol()
protected java.lang.String getRepoDirectory()
protected int getPort()
public java.net.URI[] createUploadURI(UploadRequestRecord urr)
throws NFMSException
FileTransferStrategy
createUploadURI in interface FileTransferStrategyurr - the record of this request.
NFMSException - thrown if the file already exists, or if the staging area cannot be accessed or found.
public java.net.URI finishUpload(UploadRequestRecord urr)
throws NFMSException
FileTransferStrategy
finishUpload in interface FileTransferStrategyNFMSException - is thrown if the file fails to exist in the staging area or cannot be moved to its permanent location
public void finishDownload(DownloadRequestRecord drr)
throws NFMSException
FileTransferStrategy
finishDownload in interface FileTransferStrategyNFMSException
protected java.net.URI[] createTransferURI(TransferRequestRecord trr)
throws NFMSException
NFMSException
public java.net.URI[] createDownloadURI(DownloadRequestRecord drr)
throws NFMSException
FileTransferStrategy
createDownloadURI in interface FileTransferStrategydrr - the record of this request.
NFMSException - thrown if the staging area cannot be accessed or found, or if the file does not exist in the repository.
protected java.net.URI getServiceURI()
throws NFMSException
NFMSException
protected java.net.URI getUserDirURI(java.lang.String userID)
throws NFMSException
NFMSExceptionprotected org.apache.log4j.Logger getLogger()
public PermanentStorageInterface getPStore()
throws NFMSException
NFMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||