public interface MessageHistoryService<EVENT,FLOW_EVENT,RESULT,HISTORY_EVENT>
MessageHistoryEvents to be saved out at runtime for later
retrieval and inspection
Paged search is also catered for| Modifier and Type | Method and Description |
|---|---|
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
|
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
|
void |
save(EVENT event,
String moduleName,
String flowName)
Save an event
|
void |
snapMetricEvent(FLOW_EVENT event,
String componentName,
String moduleName,
String flowName,
Long timeToLive)
Wiretap an FlowEvent
|
void save(EVENT event, String moduleName, String flowName)
event - the eventmoduleName - the module nameflowName - the flow namevoid snapMetricEvent(FLOW_EVENT event, String componentName, String moduleName, String flowName, Long timeToLive)
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 wiretapRESULT findMessageHistoryEvents(int pageNo, int pageSize, String orderBy, boolean orderAscending, Set<String> moduleNames, String flowName, String componentName, String eventId, String relatedEventId, Date fromDate, Date toDate)
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 datetimeRESULT getMessageHistoryEvent(int pageNo, int pageSize, String orderBy, boolean orderAscending, String eventId, boolean lookupRelatedEventId)
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 eventIdCopyright © 2007–2020 Ikasan. All rights reserved.