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 public class DYFILegacyStorage extends FileProductStorage
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 Constructor Description DYFILegacyStorage()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getProductPath(ProductId id)
Deprecated.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
-
-
-
-
Method Detail
-
getProductPath
public java.lang.String getProductPath(ProductId id)
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
public boolean hasProduct(ProductId id) throws java.lang.Exception
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:
java.lang.Exception
- if an error occurs while checking.
-
-