HSM Modules are MBeans that implements a set of operations to store, retrieve and query Files of a specific HSM system.
Each module should register/unregister to a FileCopy service.
This behaviour is already implemented in class AbstractHSMModule by calling registerHSMModule in startService() and unregisterHSMModule in stopService() of the configured FileCopy service.
Prepare File for storage to HSM. Return File Object that is used in FileCopy Service.
fsID |
File system ID |
filePath |
File path relative to file system (fsID) |
Store given File to HSM. Return filename (fileID).
file |
File to store in HSM |
fsID |
File system ID |
filePath |
File path relative to file system (fsID) |
Called if FileCopy failed.
file |
File to store in HSM |
fsID |
File system ID |
filePath |
File path relative to file system (fsID) |
Fetch a File from HSM.
fsID |
File system ID |
filePath |
File path relative to file system (fsID) |
Query status of file in HSM.
fsID |
File system ID |
filePath |
File path relative to file system (fsID) |
userInfo |
User info associated with the file system |
QUERY_HSM_FAILED |
-4 |
MD5_CHECK_FAILED |
-3 |
VERIFY_COMPRESS_FAILED |
-2 |
COMPRESS_FAILED |
-1 |
DEFAULT |
0 |
TO_ARCHIVE |
1 |
ARCHIVED |
2 |
COMPRESSING |
3 |