Package org.ikasan.systemevent.service
Class SystemEventServiceImpl
- java.lang.Object
-
- org.ikasan.systemevent.service.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 Summary
Constructors Constructor Description SystemEventServiceImpl(org.ikasan.spec.systemevent.SystemEventDao systemEventDao, java.lang.Long eventExpiryMinutes)ConstructorSystemEventServiceImpl(org.ikasan.spec.systemevent.SystemEventDao systemEventDao, java.lang.Long eventExpiryMinutes, org.ikasan.spec.module.ModuleContainer moduleContainer)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafterPropertiesSet()SystemEventServiceConfigurationgetSystemEventServiceConfiguration()java.util.List<org.ikasan.spec.systemevent.SystemEvent>harvest(int transactionBatchSize)booleanharvestableRecordsExist()voidhousekeep()booleanhousekeepablesExist()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)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)voidlogSystemEvent(java.lang.String subject, java.lang.String action, java.lang.String actor)voidlogSystemEvent(java.lang.String moduleName, java.lang.String subject, java.lang.String action, java.lang.String actor)voidsaveHarvestedRecord(org.ikasan.spec.systemevent.SystemEvent harvestedRecord)voidsetHousekeepingBatchSize(java.lang.Integer housekeepingBatchSize)voidsetSystemEventServiceConfiguration(SystemEventServiceConfiguration systemEventServiceConfiguration)voidsetTransactionBatchSize(java.lang.Integer transactionBatchSize)voidupdateAsHarvested(java.util.List<org.ikasan.spec.systemevent.SystemEvent> events)
-
-
-
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:
logSystemEventin interfaceorg.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:
logSystemEventin interfaceorg.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:
listSystemEventsin interfaceorg.ikasan.spec.systemevent.SystemEventService<org.ikasan.spec.systemevent.SystemEvent>
-
afterPropertiesSet
public void afterPropertiesSet() throws java.lang.Exception- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
java.lang.Exception
-
getSystemEventServiceConfiguration
public SystemEventServiceConfiguration getSystemEventServiceConfiguration()
-
setSystemEventServiceConfiguration
public void setSystemEventServiceConfiguration(SystemEventServiceConfiguration systemEventServiceConfiguration)
-
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:
listSystemEventsin interfaceorg.ikasan.spec.systemevent.SystemEventService<org.ikasan.spec.systemevent.SystemEvent>
-
housekeepablesExist
public boolean housekeepablesExist()
- Specified by:
housekeepablesExistin interfaceorg.ikasan.spec.housekeeping.HousekeepService
-
setHousekeepingBatchSize
public void setHousekeepingBatchSize(java.lang.Integer housekeepingBatchSize)
- Specified by:
setHousekeepingBatchSizein interfaceorg.ikasan.spec.housekeeping.HousekeepService
-
setTransactionBatchSize
public void setTransactionBatchSize(java.lang.Integer transactionBatchSize)
- Specified by:
setTransactionBatchSizein interfaceorg.ikasan.spec.housekeeping.HousekeepService
-
housekeep
public void housekeep()
- Specified by:
housekeepin interfaceorg.ikasan.spec.housekeeping.HousekeepService- Specified by:
housekeepin interfaceorg.ikasan.spec.systemevent.SystemEventService<org.ikasan.spec.systemevent.SystemEvent>
-
harvest
public java.util.List<org.ikasan.spec.systemevent.SystemEvent> harvest(int transactionBatchSize)
- Specified by:
harvestin interfaceorg.ikasan.spec.harvest.HarvestService<org.ikasan.spec.systemevent.SystemEvent>
-
harvestableRecordsExist
public boolean harvestableRecordsExist()
- Specified by:
harvestableRecordsExistin interfaceorg.ikasan.spec.harvest.HarvestService<org.ikasan.spec.systemevent.SystemEvent>
-
saveHarvestedRecord
public void saveHarvestedRecord(org.ikasan.spec.systemevent.SystemEvent harvestedRecord)
- Specified by:
saveHarvestedRecordin interfaceorg.ikasan.spec.harvest.HarvestService<org.ikasan.spec.systemevent.SystemEvent>
-
updateAsHarvested
public void updateAsHarvested(java.util.List<org.ikasan.spec.systemevent.SystemEvent> events)
- Specified by:
updateAsHarvestedin interfaceorg.ikasan.spec.harvest.HarvestService<org.ikasan.spec.systemevent.SystemEvent>
-
-