Class ProductTrackerUpdate


  • public class ProductTrackerUpdate
    extends java.lang.Object
    Represents a single update sent to a product tracker.
    • 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 ProductTracker
        id - the id of the product being updated
        className - which component is sending the update
        message - 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 ProductTracker
        sequenceNumber - assigned by ProductTracker
        created - When the update was created
        host - Host that sent the update
        id - the id of the product being updated
        className - which component is sending the update
        message - 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