|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.data.service.impl.FileLocationManagerImpl
Created on March 25, 2004, 10:35 AM
| Field Summary |
| Fields inherited from interface org.nees.data.service.impl.FileLocationManager |
__CLASS_KEY, __IO_KEY, EXTERNAL_TEMP_URI_INDEX, INTERNAL_TEMP_URI_INDEX, SECRET_STAGING_DIR_DEFAULT, SECRET_STAGING_DIR_KEY |
| Constructor Summary | |
FileLocationManagerImpl()
Creates a new instance of FileLocationManagerImpl |
|
| Method Summary | |
boolean |
abortDownload(java.net.URI internalTempURI)
|
boolean |
abortUpload(java.net.URI internalTempURI)
Removes the file from the temporary staging area. |
void |
finishDownload(DownloadRequestRecord drr)
When a client informs NFMS that the download is complete, this method is invoked to do any clean up (such as removing the file from the staging area.) |
java.net.URI |
finishUpload(UploadRequestRecord urr)
Copies uploaded file to final destination and removes staging files as well. |
protected NMDSAdapter |
getNMDS()
|
protected java.util.Properties |
getProperties()
|
protected ProtocolHandler |
getProtocolHandler(java.lang.String protocol)
|
protected PermanentStorageInterface |
getPStore()
|
void |
initialize(java.util.Properties p,
InitializationObjectInterface io)
|
void |
isLogicalNameValid(LogicalName logicalName)
|
java.net.URI[] |
startDownload(DownloadRequestRecord drr)
Once a request to download a file is made, this method is invoked to copy the file to the staging area and create the appropriate download URI for the requesting client. |
java.net.URI[] |
startUpload(UploadRequestRecord urr)
Gives a new physical location for file to be put in the repository. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileLocationManagerImpl()
| Method Detail |
public boolean abortDownload(java.net.URI internalTempURI)
throws NFMSException
abortDownload in interface FileLocationManagertrue if the abort worked. Note, an exception is thrown only if there
is a bona fide error. In this way, this is a safe method to invoke and will work if the file was already downloaded
(important, if the client is not sure and wants to try the entire operation again).
NFMSException
public boolean abortUpload(java.net.URI internalTempURI)
throws NFMSException
FileLocationManager
abortUpload in interface FileLocationManagertrue if the abort worked. Note, an exception is thrown only if there
is a bona fide error. In this way, this is a safe method to invoke and will work if the file did not get uploaded
(important, if the client is not sure and wants to try the entire operation again).
NFMSException
public void finishDownload(DownloadRequestRecord drr)
throws NFMSException
FileLocationManager
finishDownload in interface FileLocationManagerNFMSException
public java.net.URI finishUpload(UploadRequestRecord urr)
throws NFMSException
FileLocationManager
finishUpload in interface FileLocationManagerNFMSException
protected PermanentStorageInterface getPStore()
throws NFMSException
NFMSExceptionprotected NMDSAdapter getNMDS()
protected java.util.Properties getProperties()
public void initialize(java.util.Properties p,
InitializationObjectInterface io)
throws java.lang.Exception
initialize in interface InstantiationContractInterfacejava.lang.Exception
public java.net.URI[] startDownload(DownloadRequestRecord drr)
throws NFMSException
FileLocationManager
startDownload in interface FileLocationManagerdrr - the system infromation for this operation.
NFMSException
public java.net.URI[] startUpload(UploadRequestRecord urr)
throws NFMSException
FileLocationManager
startUpload in interface FileLocationManagerurr - the system information for this operation.
NFMSException
protected ProtocolHandler getProtocolHandler(java.lang.String protocol)
throws NFMSException
NFMSException
public void isLogicalNameValid(LogicalName logicalName)
throws NFMSException
isLogicalNameValid in interface FileLocationManagerNFMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||