Package gov.usgs.earthquake.distribution
Class StorageEvent
- java.lang.Object
-
- java.util.EventObject
-
- gov.usgs.earthquake.distribution.StorageEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class StorageEvent extends java.util.EventObject
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StorageEvent.StorageEventType
Enumeration ofStorageEventType
s
-
Field Summary
Fields Modifier and Type Field Description static StorageEvent.StorageEventType
PRODUCT_REMOVED
Variable of StorageEventType, for the PRODUCT_REMOVED enumstatic StorageEvent.StorageEventType
PRODUCT_STORED
Variable of StorageEventType, for the PRODUCT_STORED enum
-
Constructor Summary
Constructors Constructor Description StorageEvent(ProductStorage storage, ProductId id, StorageEvent.StorageEventType type)
Construct a new StorageEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProductId
getProductId()
ProductStorage
getProductStorage()
StorageEvent.StorageEventType
getType()
-
-
-
Field Detail
-
PRODUCT_STORED
public static final StorageEvent.StorageEventType PRODUCT_STORED
Variable of StorageEventType, for the PRODUCT_STORED enum
-
PRODUCT_REMOVED
public static final StorageEvent.StorageEventType PRODUCT_REMOVED
Variable of StorageEventType, for the PRODUCT_REMOVED enum
-
-
Constructor Detail
-
StorageEvent
public StorageEvent(ProductStorage storage, ProductId id, StorageEvent.StorageEventType type)
Construct a new StorageEvent- Parameters:
storage
- ProductStorageid
- ProductIdtype
- StorageEventType
-
-
Method Detail
-
getProductStorage
public ProductStorage getProductStorage()
- Returns:
- ProductStorage
-
getProductId
public ProductId getProductId()
- Returns:
- Product ID
-
getType
public StorageEvent.StorageEventType getType()
- Returns:
- StorageEventType
-
-