Package org.dspace.ctask.replicate.store
Class MountableObjectStore
- java.lang.Object
-
- org.dspace.ctask.replicate.store.LocalObjectStore
-
- org.dspace.ctask.replicate.store.MountableObjectStore
-
- All Implemented Interfaces:
ObjectStore
public class MountableObjectStore extends LocalObjectStore
MountableObjectStore uses a mountable file system to manage replicas or other content. As such, it is not intended to provide the level of assurance that a remote, externally managed service can provide. It's primary use is in testing and validating the replication service, not as a production replica store. Note in particular that certain filesystem limits on number of files in a directory may limit its use. It stores replicas as archive files. Also note that MountableObjectStore differs only from LocalObjectStore in that all objects are copied, rather than moved (renamed). This will result in slower performance, but may be required when more complex storage architectures (e.g. an NFS-mounted store) are used.- Author:
- richardrodgers
-
-
Field Summary
-
Fields inherited from class org.dspace.ctask.replicate.store.LocalObjectStore
storeDir
-
-
Constructor Summary
Constructors Constructor Description MountableObjectStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longtransferObject(String group, File file)Transfers a copy of this file to the object store-
Methods inherited from class org.dspace.ctask.replicate.store.LocalObjectStore
fetchObject, init, moveObject, objectAttribute, objectExists, removeObject
-
-
-
-
Method Detail
-
transferObject
public long transferObject(String group, File file) throws IOException
Description copied from interface:ObjectStoreTransfers a copy of this file to the object store- Specified by:
transferObjectin interfaceObjectStore- Overrides:
transferObjectin classLocalObjectStore- Parameters:
group- Groupfile- the file to transfer to store- Returns:
- number of bytes transferred to store or 0 if transfer failed.
- Throws:
IOException- if I/O error
-
-