Package gov.usgs.earthquake.distribution
Class ProductTrackerUpdate
- java.lang.Object
-
- gov.usgs.earthquake.distribution.ProductTrackerUpdate
-
public class ProductTrackerUpdate extends java.lang.Object
Represents a single update sent to a product tracker.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
NOTIFICATION_RECEIVED
String for notification receivedstatic java.lang.String
NOTIFICATION_SENT
String for notification sentstatic java.lang.String
PRODUCT_CREATED
String for products createdstatic java.lang.String
PRODUCT_DOWNLOADED
String for product downloadedstatic java.lang.String
PRODUCT_EXCEPTION
String for product exceptionstatic java.lang.String
PRODUCT_INDEXED
String for product indexedstatic java.lang.String
PRODUCT_RECEIVED
String 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.String
getClassName()
java.util.Date
getCreated()
java.net.InetAddress
getHost()
ProductId
getId()
java.lang.String
getMessage()
java.lang.Long
getSequenceNumber()
java.net.URL
getTrackerURL()
void
setClassName(java.lang.String className)
void
setCreated(java.util.Date created)
void
setHost(java.net.InetAddress host)
void
setId(ProductId id)
void
setMessage(java.lang.String message)
void
setSequenceNumber(java.lang.Long sequenceNumber)
void
setTrackerURL(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
-
-