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_HASH_PATHS_DEFAULT, USE_HASH_PATHS_PROPERTY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.A method for subclasses to override the storage path.boolean
hasProduct
(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, 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
-
DYFILegacyStorage
public DYFILegacyStorage()Deprecated.
-
-
Method Details
-
getProductPath
Deprecated.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
- the product id to convert.- Returns:
- the directory used to store id.
-
hasProduct
Deprecated.Description copied from class:FileProductStorage
Check whether a product exists in storage.- Specified by:
hasProduct
in interfaceProductStorage
- Overrides:
hasProduct
in classFileProductStorage
- Parameters:
id
- the product to check.- Returns:
- true if the product exists, false otherwise.
- Throws:
Exception
- if an error occurs while checking.
-