Package gov.usgs.earthquake.dyfi
Class DYFILegacyStorage
java.lang.Object
gov.usgs.util.DefaultConfigurable
gov.usgs.earthquake.distribution.FileProductStorage
gov.usgs.earthquake.dyfi.DYFILegacyStorage
- All Implemented Interfaces:
ProductStorage,Configurable
Deprecated.
Storage class used by DYFIIndexerWedge.
-
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_ATOMIC_DOWNLOAD_DEFAULT, USE_ATOMIC_DOWNLOAD_PROPERTY, USE_HASH_PATHS_DEFAULT, USE_HASH_PATHS_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.A method for subclasses to override the storage path.booleanhasProduct(ProductId id) Deprecated.Check whether a product exists in storage.Methods inherited from class gov.usgs.earthquake.distribution.FileProductStorage
addStorageListener, configure, getBaseDirectory, getHashedProductPath, getInMemoryProduct, getKeychain, getLegacyStorages, getNormalProductPath, getProduct, getProductFile, getProductHandlerFormat, getProductSource, getProductSourceFormat, getStorageLocks, getTempProductFile, isRejectInvalidSignatures, isTestSignatures, notifyListeners, removeProduct, removeStorageListener, setBaseDirectory, setKeychain, setRejectInvalidSignatures, setTestSignatures, shutdown, startup, storeProduct, storeProductSourceMethods inherited from class gov.usgs.util.DefaultConfigurable
getName, setNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface gov.usgs.util.Configurable
getName, setName
-
Constructor Details
-
DYFILegacyStorage
public DYFILegacyStorage()Deprecated.
-
-
Method Details
-
getProductPath
Deprecated.Description copied from class:FileProductStorageA method for subclasses to override the storage path. The returned path is appended to the base directory when storing and retrieving products.- Overrides:
getProductPathin classFileProductStorage- Parameters:
id- the product id to convert.- Returns:
- the directory used to store id.
-
hasProduct
Deprecated.Description copied from class:FileProductStorageCheck whether a product exists in storage.- Specified by:
hasProductin interfaceProductStorage- Overrides:
hasProductin classFileProductStorage- Parameters:
id- the product to check.- Returns:
- true if the product exists, false otherwise.
- Throws:
Exception- if an error occurs while checking.
-