Class SystemEventServiceImpl

  • All Implemented Interfaces:
    org.ikasan.spec.harvest.HarvestService<org.ikasan.spec.systemevent.SystemEvent>, org.ikasan.spec.housekeeping.HousekeepService, org.ikasan.spec.systemevent.SystemEventService<org.ikasan.spec.systemevent.SystemEvent>, org.springframework.beans.factory.InitializingBean

    public class SystemEventServiceImpl
    extends java.lang.Object
    implements org.ikasan.spec.systemevent.SystemEventService<org.ikasan.spec.systemevent.SystemEvent>, org.springframework.beans.factory.InitializingBean, org.ikasan.spec.housekeeping.HousekeepService, org.ikasan.spec.harvest.HarvestService<org.ikasan.spec.systemevent.SystemEvent>
    SystemFlowEvent service implementation
    Author:
    Ikasan Development Team
    • Constructor Detail

      • SystemEventServiceImpl

        public SystemEventServiceImpl​(org.ikasan.spec.systemevent.SystemEventDao systemEventDao,
                                      java.lang.Long eventExpiryMinutes)
        Constructor
        Parameters:
        systemEventDao -
        eventExpiryMinutes - - no of minutes for this event to be kept until eligible for housekeep
      • SystemEventServiceImpl

        public SystemEventServiceImpl​(org.ikasan.spec.systemevent.SystemEventDao systemEventDao,
                                      java.lang.Long eventExpiryMinutes,
                                      org.ikasan.spec.module.ModuleContainer moduleContainer)
        Constructor
        Parameters:
        systemEventDao -
        eventExpiryMinutes - - no of minutes for this event to be kept until eligible for housekeep
    • Method Detail

      • logSystemEvent

        public void logSystemEvent​(java.lang.String subject,
                                   java.lang.String action,
                                   java.lang.String actor)
        Specified by:
        logSystemEvent in interface org.ikasan.spec.systemevent.SystemEventService<org.ikasan.spec.systemevent.SystemEvent>
      • logSystemEvent

        public void logSystemEvent​(java.lang.String moduleName,
                                   java.lang.String subject,
                                   java.lang.String action,
                                   java.lang.String actor)
        Specified by:
        logSystemEvent in interface org.ikasan.spec.systemevent.SystemEventService<org.ikasan.spec.systemevent.SystemEvent>
      • listSystemEvents

        public org.ikasan.spec.search.PagedSearchResult<org.ikasan.spec.systemevent.SystemEvent> listSystemEvents​(int pageNo,
                                                                                                                  int pageSize,
                                                                                                                  java.lang.String orderBy,
                                                                                                                  boolean orderAscending,
                                                                                                                  java.lang.String subject,
                                                                                                                  java.lang.String action,
                                                                                                                  java.util.Date timestampFrom,
                                                                                                                  java.util.Date timestampTo,
                                                                                                                  java.lang.String actor)
        Specified by:
        listSystemEvents in interface org.ikasan.spec.systemevent.SystemEventService<org.ikasan.spec.systemevent.SystemEvent>
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception
      • listSystemEvents

        public java.util.List<org.ikasan.spec.systemevent.SystemEvent> listSystemEvents​(java.util.List<java.lang.String> subjects,
                                                                                        java.lang.String actor,
                                                                                        java.util.Date timestampFrom,
                                                                                        java.util.Date timestampTo)
        Specified by:
        listSystemEvents in interface org.ikasan.spec.systemevent.SystemEventService<org.ikasan.spec.systemevent.SystemEvent>
      • housekeepablesExist

        public boolean housekeepablesExist()
        Specified by:
        housekeepablesExist in interface org.ikasan.spec.housekeeping.HousekeepService
      • setHousekeepingBatchSize

        public void setHousekeepingBatchSize​(java.lang.Integer housekeepingBatchSize)
        Specified by:
        setHousekeepingBatchSize in interface org.ikasan.spec.housekeeping.HousekeepService
      • setTransactionBatchSize

        public void setTransactionBatchSize​(java.lang.Integer transactionBatchSize)
        Specified by:
        setTransactionBatchSize in interface org.ikasan.spec.housekeeping.HousekeepService
      • housekeep

        public void housekeep()
        Specified by:
        housekeep in interface org.ikasan.spec.housekeeping.HousekeepService
        Specified by:
        housekeep in interface org.ikasan.spec.systemevent.SystemEventService<org.ikasan.spec.systemevent.SystemEvent>
      • harvest

        public java.util.List<org.ikasan.spec.systemevent.SystemEvent> harvest​(int transactionBatchSize)
        Specified by:
        harvest in interface org.ikasan.spec.harvest.HarvestService<org.ikasan.spec.systemevent.SystemEvent>
      • harvestableRecordsExist

        public boolean harvestableRecordsExist()
        Specified by:
        harvestableRecordsExist in interface org.ikasan.spec.harvest.HarvestService<org.ikasan.spec.systemevent.SystemEvent>
      • saveHarvestedRecord

        public void saveHarvestedRecord​(org.ikasan.spec.systemevent.SystemEvent harvestedRecord)
        Specified by:
        saveHarvestedRecord in interface org.ikasan.spec.harvest.HarvestService<org.ikasan.spec.systemevent.SystemEvent>
      • updateAsHarvested

        public void updateAsHarvested​(java.util.List<org.ikasan.spec.systemevent.SystemEvent> events)
        Specified by:
        updateAsHarvested in interface org.ikasan.spec.harvest.HarvestService<org.ikasan.spec.systemevent.SystemEvent>