Package org.ikasan.spec.history
Interface MessageHistoryService<EVENT,FLOW_EVENT,RESULT,HISTORY_EVENT>
public interface MessageHistoryService<EVENT,FLOW_EVENT,RESULT,HISTORY_EVENT>
This Service allows
MessageHistoryEvents to be saved out at runtime for later
retrieval and inspection
Paged search is also catered for- Author:
- Ikasan Development Team
-
Method Summary
Modifier and TypeMethodDescriptionfindMessageHistoryEvents(int pageNo, int pageSize, String orderBy, boolean orderAscending, Set<String> moduleNames, String flowName, String componentName, String eventId, String relatedEventId, Date fromDate, Date toDate) Search for saved MessageHistoryEventsgetMessageHistoryEvent(int pageNo, int pageSize, String orderBy, boolean orderAscending, String eventId, boolean lookupRelatedEventId) Retrieve a MessageHistoryEvent via its eventId or relatedEventId This could return an event that spans multiple modules and flows, hence the paging aspectvoidSave an eventvoidsnapMetricEvent(FLOW_EVENT event, String componentName, String moduleName, String flowName, Long timeToLive) Wiretap an FlowEvent
-
Method Details
-
save
Save an event- Parameters:
event- the eventmoduleName- the module nameflowName- the flow name
-
snapMetricEvent
void snapMetricEvent(FLOW_EVENT event, String componentName, String moduleName, String flowName, Long timeToLive) Wiretap an FlowEvent- Parameters:
event- - FlowEvent to be wiretappedcomponentName- - The component this FlowEvent is currently inmoduleName- - The module this FlowEvent is currently inflowName- - The Flow this FlowEvent is currently intimeToLive- - Time to live for the wiretap
-
findMessageHistoryEvents
RESULT findMessageHistoryEvents(int pageNo, int pageSize, String orderBy, boolean orderAscending, Set<String> moduleNames, String flowName, String componentName, String eventId, String relatedEventId, Date fromDate, Date toDate) Search for saved MessageHistoryEvents- Parameters:
pageNo- the current page numberpageSize- the page sizeorderBy- columns to order byorderAscending- order ascending?moduleNames- a set of module names to search forflowName- a flow name to search forcomponentName- a component name to search foreventId- an eventId to search forrelatedEventId- a relatedEventId to search forfromDate- the from datetimetoDate- the to datetime- Returns:
- a result set
-
getMessageHistoryEvent
RESULT getMessageHistoryEvent(int pageNo, int pageSize, String orderBy, boolean orderAscending, String eventId, boolean lookupRelatedEventId) Retrieve a MessageHistoryEvent via its eventId or relatedEventId This could return an event that spans multiple modules and flows, hence the paging aspect- Parameters:
pageNo- the current page numberpageSize- the page sizeorderBy- columns to order byorderAscending- order ascending?eventId- an eventId to search forlookupRelatedEventId- whether to look for a relatedId of the given eventId- Returns:
- a result set
-