|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nees.data.store.backend.MySqlNFMSBackend
| Field Summary | |
static java.lang.String |
MYSQL_DRIVER_KEY
|
static java.lang.String |
MYSQL_PASSWORD_KEY
|
static java.lang.String |
MYSQL_URL_KEY
|
static java.lang.String |
MYSQL_USER_NAME_KEY
|
static java.lang.String |
MYSQL_XF_TABLE_NAME_KEY
|
| Fields inherited from interface org.nees.data.store.backend.NFMSBackendInterface |
__CLASS_KEY, __IO_KEY |
| Fields inherited from interface org.nees.data.service.impl.NFMSConstants |
FILE_VERSION_UNAVAILABLE, LATEST_FILE_VERSION, NFMS_DEFAULT_EXPIRATION_TIMEOUT, NFMS_EXPIRATION_TIMEOUT_KEY, NONEXISTENT_FILE_VERSION, PROTOCOL_FILE, PROTOCOL_FTP, PROTOCOL_GRIDFTP, PROTOCOL_HTTP |
| Constructor Summary | |
MySqlNFMSBackend()
|
|
| Method Summary | |
protected java.net.URI |
checkURI(java.lang.String rawURI)
Checks that we don't do something goofy with a returned value from an SQL query |
protected void |
cleanupRS(java.sql.Statement stmt,
java.sql.ResultSet rs)
|
DownloadRequestRecord |
createDownloadRequest(LogicalName logicalName,
DownloadOptions dOptions)
|
protected TransferRequestRecord |
createTransferRequest(LogicalName logicalName,
TransferOptions tOptions,
int xfTypeCode)
This does the grunt work of creating a transfer request. |
UploadRequestRecord |
createUploadRequest(LogicalName logicalName,
UploadOptions uOptions)
|
long |
getExpirationTimeout()
|
protected MySqlNFMSBackendIO |
getInitObject()
|
NMDSAdapter |
getNMDS()
|
java.lang.String |
getXFTableName()
|
void |
initialize(java.util.Properties p,
InitializationObjectInterface ioi)
|
boolean |
removeExpiredRequests()
This will try to remove the given token. |
boolean |
removeRequest(int xfToken)
This will try to remove the given token. |
DownloadRequestRecord |
retrieveDownloadRequest(int xfToken)
This will get the pending download request. |
UploadRequestRecord |
retrieveUploadRequest(int xfToken)
This will get the pending upload request. |
protected TransferRequestRecord |
retrieveXFRequest(int xfToken,
int xfTypeCode)
This will get the record for the user and position the cursor at the first record. |
protected void |
setExpirationTimeout(long expirationTimeout)
|
protected void |
setXFTableName(java.lang.String xfTableName)
|
java.lang.String |
toString()
A report on this object. |
void |
updatePermanentLocationURI(TransferRequestRecord trr)
|
void |
updateRequestURI(TransferRequestRecord trr)
After a request is made. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static java.lang.String MYSQL_DRIVER_KEY
public static java.lang.String MYSQL_URL_KEY
public static java.lang.String MYSQL_USER_NAME_KEY
public static java.lang.String MYSQL_PASSWORD_KEY
public static java.lang.String MYSQL_XF_TABLE_NAME_KEY
| Constructor Detail |
public MySqlNFMSBackend()
| Method Detail |
protected MySqlNFMSBackendIO getInitObject()
public java.lang.String toString()
public DownloadRequestRecord createDownloadRequest(LogicalName logicalName,
DownloadOptions dOptions)
throws NFMSException
createDownloadRequest in interface NFMSBackendInterfaceNFMSException
public UploadRequestRecord createUploadRequest(LogicalName logicalName,
UploadOptions uOptions)
throws NFMSException
createUploadRequest in interface NFMSBackendInterfaceNFMSException
protected TransferRequestRecord createTransferRequest(LogicalName logicalName,
TransferOptions tOptions,
int xfTypeCode)
throws NFMSException
NFMSException
public boolean removeRequest(int xfToken)
throws NFMSException
true if the delete suceeded and false otherwise.
removeRequest in interface NFMSBackendInterfaceNFMSException
public boolean removeExpiredRequests()
throws NFMSException
true if the delete suceeded and false otherwise.
NFMSException
public DownloadRequestRecord retrieveDownloadRequest(int xfToken)
throws NFMSException
retrieveDownloadRequest in interface NFMSBackendInterfaceNFMSException
public UploadRequestRecord retrieveUploadRequest(int xfToken)
throws NFMSException
retrieveUploadRequest in interface NFMSBackendInterfaceNFMSException
protected void cleanupRS(java.sql.Statement stmt,
java.sql.ResultSet rs)
throws NFMSException
NFMSException
protected TransferRequestRecord retrieveXFRequest(int xfToken,
int xfTypeCode)
throws NFMSException
NFMSException
protected java.net.URI checkURI(java.lang.String rawURI)
throws java.net.URISyntaxException
java.net.URISyntaxException
public void initialize(java.util.Properties p,
InitializationObjectInterface ioi)
throws InstantiationContractException,
NFMSException
initialize in interface InstantiationContractInterfaceInstantiationContractException
NFMSException
public void updateRequestURI(TransferRequestRecord trr)
throws NFMSException
NFMSBackendInterface
updateRequestURI in interface NFMSBackendInterfaceNFMSException
public void updatePermanentLocationURI(TransferRequestRecord trr)
throws NFMSException
updatePermanentLocationURI in interface NFMSBackendInterfaceNFMSExceptionpublic java.lang.String getXFTableName()
protected void setXFTableName(java.lang.String xfTableName)
public long getExpirationTimeout()
protected void setExpirationTimeout(long expirationTimeout)
public NMDSAdapter getNMDS()
throws NFMSException
NFMSException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||