Class SystemEventImpl

  • All Implemented Interfaces:
    org.ikasan.spec.systemevent.SystemEvent

    public class SystemEventImpl
    extends java.lang.Object
    implements org.ikasan.spec.systemevent.SystemEvent
    Simple JavaBean encapsulating system event information Simply binds information about an action (can be anything) taken on a subject (again anything) at a given time, by a given actor
    Author:
    Ikasan Development Team
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemEventImpl​(java.lang.String subject, java.lang.String action, java.util.Date timestamp, java.lang.String actor, java.util.Date expiry)
      Constructor
    • Constructor Detail

      • SystemEventImpl

        public SystemEventImpl​(java.lang.String subject,
                               java.lang.String action,
                               java.util.Date timestamp,
                               java.lang.String actor,
                               java.util.Date expiry)
        Constructor
        Parameters:
        subject -
        action -
        timestamp -
        actor -
        expiry -
    • Method Detail

      • getModuleName

        public java.lang.String getModuleName()
        Specified by:
        getModuleName in interface org.ikasan.spec.systemevent.SystemEvent
      • setModuleName

        public void setModuleName​(java.lang.String moduleName)
        Specified by:
        setModuleName in interface org.ikasan.spec.systemevent.SystemEvent
      • getAction

        public java.lang.String getAction()
        Accessor for action
        Specified by:
        getAction in interface org.ikasan.spec.systemevent.SystemEvent
        Returns:
        action
      • getActor

        public java.lang.String getActor()
        Accessor for actor
        Specified by:
        getActor in interface org.ikasan.spec.systemevent.SystemEvent
        Returns:
        actor
      • getId

        public java.lang.Long getId()
        Accessor for id
        Specified by:
        getId in interface org.ikasan.spec.systemevent.SystemEvent
        Returns:
        id
      • getSubject

        public java.lang.String getSubject()
        Accessor for subject
        Specified by:
        getSubject in interface org.ikasan.spec.systemevent.SystemEvent
        Returns:
        subject
      • getTimestamp

        public java.util.Date getTimestamp()
        Accessor for timestamp
        Specified by:
        getTimestamp in interface org.ikasan.spec.systemevent.SystemEvent
        Returns:
        timestamp
      • getExpiry

        public java.util.Date getExpiry()
        Accessor for expiry
        Specified by:
        getExpiry in interface org.ikasan.spec.systemevent.SystemEvent
        Returns:
        expiry
      • isHarvested

        public boolean isHarvested()
        Accessor for harvested
        Returns:
        harvested
      • getHarvestedDateTime

        public long getHarvestedDateTime()
        Accessor for harvestedDateTime
        Returns:
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • setHarvested

        public void setHarvested​(boolean harvested)
      • setHarvestedDateTime

        public void setHarvestedDateTime​(long harvestedDateTime)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object