Package org.ikasan.spec.wiretap
Interface WiretapDao<IDENTIFIER>
-
public interface WiretapDao<IDENTIFIER>Interface for all wiretap event data access.- Author:
- Ikasan Development Team
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddeleteAllExpired()Deletes all WiretapFlowEvents that have surpassed their expiryDateWiretapEventfindById(IDENTIFIER id)Find wiretap entry by identifierorg.ikasan.spec.search.PagedSearchResult<WiretapEvent>findWiretapEvents(int pageNo, int pageSize, java.lang.String orderBy, boolean orderAscending, java.util.Set<java.lang.String> moduleNames, java.lang.String moduleFlow, java.lang.String componentName, java.lang.String eventId, java.lang.String payloadId, java.util.Date fromDate, java.util.Date untilDate, java.lang.String payloadContent)Perform a paged search forWiretapFlowEventsorg.ikasan.spec.search.PagedSearchResult<WiretapEvent>findWiretapEvents(int pageNo, int pageSize, java.lang.String orderBy, boolean orderAscending, java.util.Set<java.lang.String> moduleNames, java.util.Set<java.lang.String> moduleFlow, java.util.Set<java.lang.String> componentName, java.lang.String eventId, java.lang.String payloadId, java.util.Date fromDate, java.util.Date untilDate, java.lang.String payloadContent)Perform a paged search forWiretapFlowEventsjava.util.List<WiretapEvent>getHarvestableRecords(int housekeepingBatchSize)Get a List of harvestable wiretaps.java.lang.IntegergetHousekeepingBatchSize()Get the batch size for housekeeping.java.lang.IntegergetTransactionBatchSize()Get the transaction bactch size used for housekeeping.booleanhousekeepablesExist()Method to state that there are housekeepable records available.booleanisBatchHousekeepDelete()Get flag to indicate if housekeeping is in batch mode.voidsave(java.util.List<WiretapEvent> wiretapEvents)Save a wiretapEvent entry.voidsave(WiretapEvent wiretapEvent)Save a List of wiretapEvent entries.voidsetBatchHousekeepDelete(boolean batchHousekeepDelete)Set flag to indicate if housekeeping is in batch mode.voidsetHarvestQueryOrdered(boolean isHarvestQueryOrdered)Set flag to determine if harvest query should be ordered.voidsetHousekeepingBatchSize(java.lang.Integer housekeepingBatchSize)Set the batch size for housekeeping.voidsetHousekeepQuery(java.lang.String housekeepQuery)Set the housekeeping query.voidsetTransactionBatchSize(java.lang.Integer transactionBatchSize)Set the transaction bactch size used for housekeeping.voidupdateAsHarvested(java.util.List<WiretapEvent> events)Update records as harvested.
-
-
-
Method Detail
-
save
void save(WiretapEvent wiretapEvent)
Save a List of wiretapEvent entries.- Parameters:
wiretapEvent- - The wiretap event to save
-
save
void save(java.util.List<WiretapEvent> wiretapEvents)
Save a wiretapEvent entry.- Parameters:
wiretapEvents- - The wiretap event to save
-
findWiretapEvents
org.ikasan.spec.search.PagedSearchResult<WiretapEvent> findWiretapEvents(int pageNo, int pageSize, java.lang.String orderBy, boolean orderAscending, java.util.Set<java.lang.String> moduleNames, java.lang.String moduleFlow, java.lang.String componentName, java.lang.String eventId, java.lang.String payloadId, java.util.Date fromDate, java.util.Date untilDate, java.lang.String payloadContent)
Perform a paged search forWiretapFlowEvents- Parameters:
pageNo- - The page number to retrievepageSize- - The size of the pageorderBy- - order by fieldorderAscending- - ascending flagmoduleNames- - The list of module namesmoduleFlow- - The name of Flow internal to the ModulecomponentName- - The component nameeventId- - The event idpayloadId- - The payload idfromDate- - The from dateuntilDate- - The to datepayloadContent- - The payload content- Returns:
- PagedSearchResult
-
findWiretapEvents
org.ikasan.spec.search.PagedSearchResult<WiretapEvent> findWiretapEvents(int pageNo, int pageSize, java.lang.String orderBy, boolean orderAscending, java.util.Set<java.lang.String> moduleNames, java.util.Set<java.lang.String> moduleFlow, java.util.Set<java.lang.String> componentName, java.lang.String eventId, java.lang.String payloadId, java.util.Date fromDate, java.util.Date untilDate, java.lang.String payloadContent)
Perform a paged search forWiretapFlowEvents- Parameters:
pageNo- - The page number to retrievepageSize- - The size of the pageorderBy- - order by fieldorderAscending- - ascending flagmoduleNames- - The list of module namesmoduleFlow- - The name of Flow internal to the ModulecomponentName- - The component nameeventId- - The event idpayloadId- - The payload idfromDate- - The from dateuntilDate- - The to datepayloadContent- - The payload content- Returns:
- PagedSearchResult
-
findById
WiretapEvent findById(IDENTIFIER id)
Find wiretap entry by identifier- Parameters:
id- - The id to search on- Returns:
- WiretapFlowEvent
-
deleteAllExpired
void deleteAllExpired()
Deletes all WiretapFlowEvents that have surpassed their expiryDate
-
isBatchHousekeepDelete
boolean isBatchHousekeepDelete()
Get flag to indicate if housekeeping is in batch mode.- Returns:
-
setBatchHousekeepDelete
void setBatchHousekeepDelete(boolean batchHousekeepDelete)
Set flag to indicate if housekeeping is in batch mode.- Parameters:
batchHousekeepDelete-
-
getHousekeepingBatchSize
java.lang.Integer getHousekeepingBatchSize()
Get the batch size for housekeeping.- Returns:
-
setHousekeepingBatchSize
void setHousekeepingBatchSize(java.lang.Integer housekeepingBatchSize)
Set the batch size for housekeeping.- Parameters:
housekeepingBatchSize-
-
getTransactionBatchSize
java.lang.Integer getTransactionBatchSize()
Get the transaction bactch size used for housekeeping.- Returns:
-
setTransactionBatchSize
void setTransactionBatchSize(java.lang.Integer transactionBatchSize)
Set the transaction bactch size used for housekeeping.- Parameters:
transactionBatchSize-
-
housekeepablesExist
boolean housekeepablesExist()
Method to state that there are housekeepable records available.- Returns:
-
getHarvestableRecords
java.util.List<WiretapEvent> getHarvestableRecords(int housekeepingBatchSize)
Get a List of harvestable wiretaps.- Parameters:
housekeepingBatchSize-- Returns:
-
setHousekeepQuery
void setHousekeepQuery(java.lang.String housekeepQuery)
Set the housekeeping query.- Parameters:
housekeepQuery-
-
updateAsHarvested
void updateAsHarvested(java.util.List<WiretapEvent> events)
Update records as harvested.- Parameters:
events-
-
setHarvestQueryOrdered
void setHarvestQueryOrdered(boolean isHarvestQueryOrdered)
Set flag to determine if harvest query should be ordered.- Parameters:
isHarvestQueryOrdered-
-
-