|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ikasan.framework.event.wiretap.service.WiretapServiceImpl
public class WiretapServiceImpl
Default implementation of the WiretapService
| Constructor Summary | |
|---|---|
WiretapServiceImpl(WiretapDao wiretapDao,
ModuleService moduleService)
Constructor |
|
| Method Summary | |
|---|---|
PagedSearchResult<WiretapEvent> |
findWiretapEvents(int pageNo,
int pageSize,
String orderBy,
boolean orderAscending,
Set<String> moduleNames,
String moduleFlow,
String componentName,
String eventId,
String payloadId,
Date fromDate,
Date untilDate,
String payloadContent)
Allows previously stored Events to be searched for. |
PagedWiretapSearchResult |
findWiretapEvents(Set<String> moduleNames,
String moduleFlow,
String componentName,
String eventId,
String payloadId,
Date fromDate,
Date untilDate,
String payloadContent,
int pageSize,
int pageNo)
Deprecated. Use other findWiretapEvents method |
WiretapEvent |
getWiretapEvent(Long wiretapEventId)
Get a wireTap event given its Id |
void |
housekeep()
Housekeep the wiretaps by deleting expired ones. |
void |
tapEvent(Event event,
String componentName,
String moduleName,
String flowName,
Long timeToLive)
Wiretap an Event |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WiretapServiceImpl(WiretapDao wiretapDao,
ModuleService moduleService)
wiretapDao - - The wire tap DAOmoduleService - - The module service to use| Method Detail |
|---|
public PagedSearchResult<WiretapEvent> findWiretapEvents(int pageNo,
int pageSize,
String orderBy,
boolean orderAscending,
Set<String> moduleNames,
String moduleFlow,
String componentName,
String eventId,
String payloadId,
Date fromDate,
Date untilDate,
String payloadContent)
findWiretapEvents in interface WiretapServicepageNo - - page index into the greater result setpageSize - - how many results to return in the resultorderBy - - The field to order byorderAscending - - Ascending flagmoduleNames - - Set of names of modules to include in search - must
contain at least one moduleNamemoduleFlow - - The name of Flow internal to the ModulecomponentName - - The name of the componenteventId - - The Event IdpayloadId - - The Payload IdfromDate - - Include only events after fromDateuntilDate - - Include only events before untilDatepayloadContent - - The Payload content
WiretapEventHeader representing the result
of the search
IllegalArgumentException - - if moduleNames is null or empty
public PagedWiretapSearchResult findWiretapEvents(Set<String> moduleNames,
String moduleFlow,
String componentName,
String eventId,
String payloadId,
Date fromDate,
Date untilDate,
String payloadContent,
int pageSize,
int pageNo)
findWiretapEvents in interface WiretapServicepageNo - - page index into the greater result setpageSize - - how many results to return in the resultmoduleNames - - Set of names of modules to include in search - must
contain at least one moduleNamemoduleFlow - - The name of Flow internal to the ModulecomponentName - - The name of the componenteventId - - The Event IdpayloadId - - The Payload IdfromDate - - Include only events after fromDateuntilDate - - Include only events before untilDatepayloadContent - - The Payload content
WiretapEventHeader representing the result
of the search
IllegalArgumentException - - if moduleNames is null or emptypublic WiretapEvent getWiretapEvent(Long wiretapEventId)
getWiretapEvent in interface WiretapServicewiretapEventId - - The Id to search with
public void tapEvent(Event event,
String componentName,
String moduleName,
String flowName,
Long timeToLive)
tapEvent in interface WiretapServiceevent - - Event to be wiretappedcomponentName - - The component this Event is currently inmoduleName - - The module this Event is currently inflowName - - The Flow this Event is currently intimeToLive - - Time to live for the wiretappublic void housekeep()
housekeep in interface WiretapService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||