Package gov.usgs.earthquake.distribution
Class ProductTrackerUpdate
- java.lang.Object
-
- gov.usgs.earthquake.distribution.ProductTrackerUpdate
-
public class ProductTrackerUpdate extends java.lang.ObjectRepresents a single update sent to a product tracker.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNOTIFICATION_RECEIVEDString for notification receivedstatic java.lang.StringNOTIFICATION_SENTString for notification sentstatic java.lang.StringPRODUCT_CREATEDString for products createdstatic java.lang.StringPRODUCT_DOWNLOADEDString for product downloadedstatic java.lang.StringPRODUCT_EXCEPTIONString for product exceptionstatic java.lang.StringPRODUCT_INDEXEDString for product indexedstatic java.lang.StringPRODUCT_RECEIVEDString for products received
-
Constructor Summary
Constructors Constructor Description ProductTrackerUpdate(java.net.URL trackerURL, ProductId id, java.lang.String className, java.lang.String message)Create a tracker update for submission.ProductTrackerUpdate(java.net.URL trackerURL, java.lang.Long sequenceNumber, java.util.Date created, java.net.InetAddress host, ProductId id, java.lang.String className, java.lang.String message)Create a new ProductTrackerUpdate object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClassName()java.util.DategetCreated()java.net.InetAddressgetHost()ProductIdgetId()java.lang.StringgetMessage()java.lang.LonggetSequenceNumber()java.net.URLgetTrackerURL()voidsetClassName(java.lang.String className)voidsetCreated(java.util.Date created)voidsetHost(java.net.InetAddress host)voidsetId(ProductId id)voidsetMessage(java.lang.String message)voidsetSequenceNumber(java.lang.Long sequenceNumber)voidsetTrackerURL(java.net.URL trackerURL)
-
-
-
Field Detail
-
PRODUCT_CREATED
public static final java.lang.String PRODUCT_CREATED
String for products created- See Also:
- Constant Field Values
-
PRODUCT_RECEIVED
public static final java.lang.String PRODUCT_RECEIVED
String for products received- See Also:
- Constant Field Values
-
PRODUCT_EXCEPTION
public static final java.lang.String PRODUCT_EXCEPTION
String for product exception- See Also:
- Constant Field Values
-
NOTIFICATION_SENT
public static final java.lang.String NOTIFICATION_SENT
String for notification sent- See Also:
- Constant Field Values
-
NOTIFICATION_RECEIVED
public static final java.lang.String NOTIFICATION_RECEIVED
String for notification received- See Also:
- Constant Field Values
-
PRODUCT_DOWNLOADED
public static final java.lang.String PRODUCT_DOWNLOADED
String for product downloaded- See Also:
- Constant Field Values
-
PRODUCT_INDEXED
public static final java.lang.String PRODUCT_INDEXED
String for product indexed- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProductTrackerUpdate
public ProductTrackerUpdate(java.net.URL trackerURL, ProductId id, java.lang.String className, java.lang.String message)Create a tracker update for submission. Calls other constructor with null arguments for those that are not included.- Parameters:
trackerURL- url of ProductTrackerid- the id of the product being updatedclassName- which component is sending the updatemessage- the update being send
-
ProductTrackerUpdate
public ProductTrackerUpdate(java.net.URL trackerURL, java.lang.Long sequenceNumber, java.util.Date created, java.net.InetAddress host, ProductId id, java.lang.String className, java.lang.String message)Create a new ProductTrackerUpdate object.- Parameters:
trackerURL- url of ProductTrackersequenceNumber- assigned by ProductTrackercreated- When the update was createdhost- Host that sent the updateid- the id of the product being updatedclassName- which component is sending the updatemessage- the update being send
-
-
Method Detail
-
getTrackerURL
public java.net.URL getTrackerURL()
- Returns:
- the trackerURL
-
setTrackerURL
public void setTrackerURL(java.net.URL trackerURL)
- Parameters:
trackerURL- the trackerURL to set
-
getSequenceNumber
public java.lang.Long getSequenceNumber()
- Returns:
- the sequenceNumber
-
setSequenceNumber
public void setSequenceNumber(java.lang.Long sequenceNumber)
- Parameters:
sequenceNumber- the sequenceNumber to set
-
getCreated
public java.util.Date getCreated()
- Returns:
- the created
-
setCreated
public void setCreated(java.util.Date created)
- Parameters:
created- the created to set
-
getHost
public java.net.InetAddress getHost()
- Returns:
- the host
-
setHost
public void setHost(java.net.InetAddress host)
- Parameters:
host- the host to set
-
getId
public ProductId getId()
- Returns:
- the id
-
setId
public void setId(ProductId id)
- Parameters:
id- the id to set
-
getClassName
public java.lang.String getClassName()
- Returns:
- the className
-
setClassName
public void setClassName(java.lang.String className)
- Parameters:
className- the className to set
-
getMessage
public java.lang.String getMessage()
- Returns:
- the message
-
setMessage
public void setMessage(java.lang.String message)
- Parameters:
message- the message to set
-
-