Package gov.usgs.earthquake.distribution
Class ConsolidatedFileProductStorage
java.lang.Object
gov.usgs.util.DefaultConfigurable
gov.usgs.earthquake.distribution.FileProductStorage
gov.usgs.earthquake.distribution.ConsolidatedFileProductStorage
- All Implemented Interfaces:
ProductStorage
,Configurable
-
Field Summary
Fields inherited from class gov.usgs.earthquake.distribution.FileProductStorage
DEFAULT_DIRECTORY, DIRECTORY_NAME_LENGTH, DIRECTORY_PROPERTY_NAME, LEGACY_STORAGES_PROPERTY, STORAGE_LISTENER_PROPERTY, USE_HASH_PATHS_DEFAULT, USE_HASH_PATHS_PROPERTY
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a new ConsolidatedFileProductStorage using the default storage path.ConsolidatedFileProductStorage
(File baseDirectory) Create a new ConsolidatedFileProductStorage. -
Method Summary
Modifier and TypeMethodDescriptionA method for subclasses to override the storage path.Methods inherited from class gov.usgs.earthquake.distribution.FileProductStorage
addStorageListener, configure, getBaseDirectory, getHashedProductPath, getInMemoryProduct, getKeychain, getLegacyStorages, getNormalProductPath, getProduct, getProductFile, getProductHandlerFormat, getProductSource, getProductSourceFormat, getStorageLocks, hasProduct, isRejectInvalidSignatures, isTestSignatures, notifyListeners, removeProduct, removeStorageListener, setBaseDirectory, setKeychain, setRejectInvalidSignatures, setTestSignatures, shutdown, startup, storeProduct, storeProductSource
Methods inherited from class gov.usgs.util.DefaultConfigurable
getName, setName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface gov.usgs.util.Configurable
getName, setName
-
Constructor Details
-
ConsolidatedFileProductStorage
public ConsolidatedFileProductStorage()Create a new ConsolidatedFileProductStorage using the default storage path. -
ConsolidatedFileProductStorage
Create a new ConsolidatedFileProductStorage.- Parameters:
baseDirectory
- the base directory for all products being stored.
-
-
Method Details
-
getProductPath
Description copied from class:FileProductStorage
A method for subclasses to override the storage path. The returned path is appended to the base directory when storing and retrieving products.- Overrides:
getProductPath
in classFileProductStorage
- Parameters:
id
- ProductId- Returns:
- string buffer of consolidated product path
-