|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ikasan.framework.error.service.DefaultErrorLoggingServiceImpl
public class DefaultErrorLoggingServiceImpl
Default implementation of ErrorLoggingServiceImpl
When logging error, simply persists a new instance of ErrorOccurrence and notifies listeners
| Constructor Summary | |
|---|---|
DefaultErrorLoggingServiceImpl(ErrorOccurrenceDao errorOccurrenceDao,
ExcludedEventDao excludedEventDao,
URL baseUrl)
Constructor |
|
DefaultErrorLoggingServiceImpl(ErrorOccurrenceDao errorOccurrenceDao,
ExcludedEventDao excludedEventDao,
URL baseURl,
ErrorOccurrenceListener errorOccurrenceListener)
Constructor |
|
DefaultErrorLoggingServiceImpl(ErrorOccurrenceDao errorOccurrenceDao,
ExcludedEventDao excludedEventDao,
URL baseUrl,
List<ErrorOccurrenceListener> errorOccurrenceListeners)
Constructor |
|
| Method Summary | |
|---|---|
void |
addErrorOccurrenceListener(ErrorOccurrenceListener errorOccurrenceListener)
Registers an ErrorOccurrenceListener as a listener for new ErrorOccurrence |
ErrorOccurrence |
getErrorOccurrence(long errorOccurrenceId)
Retrieve an ErrorOccurrence specified by its Id |
List<ErrorOccurrence> |
getErrorOccurrences(String eventId)
Returns all ErrorOccurrences for the event specified by its id |
PagedSearchResult<ErrorOccurrence> |
getErrors(int pageNo,
int pageSize,
String orderBy,
boolean orderAscending,
String moduleName,
String flowName)
Returns a paged listing of errors |
void |
housekeep()
Causes all ErrorOccurrences that are deemed to be too old to be deleted |
void |
logError(Throwable throwable,
String moduleName,
String initiatorName,
String actionTaken)
Logs an Error caused before there was an Event |
void |
logError(Throwable throwable,
String moduleName,
String flowName,
String flowElementName,
Event currentEvent,
String actionTaken)
Logs an Error where there is an inflight Event involved in a Flow |
void |
removeErrorOccurrenceListener(ErrorOccurrenceListener errorOccurrenceListener)
Deregisters an ErrorOccurrenceListener as a listener for new ErrorOccurrence |
void |
setErrorTimeToLiveDays(long errorTimeToLiveDays)
Setter method for timeToLiveDays, allows default value to be overridden |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultErrorLoggingServiceImpl(ErrorOccurrenceDao errorOccurrenceDao,
ExcludedEventDao excludedEventDao,
URL baseUrl)
errorOccurrenceDao - excludedEventDao - baseUrl -
public DefaultErrorLoggingServiceImpl(ErrorOccurrenceDao errorOccurrenceDao,
ExcludedEventDao excludedEventDao,
URL baseUrl,
List<ErrorOccurrenceListener> errorOccurrenceListeners)
errorOccurrenceDao - excludedEventDao - baseUrl - errorOccurrenceListeners -
public DefaultErrorLoggingServiceImpl(ErrorOccurrenceDao errorOccurrenceDao,
ExcludedEventDao excludedEventDao,
URL baseURl,
ErrorOccurrenceListener errorOccurrenceListener)
errorOccurrenceDao - excludedEventDao - baseURl - errorOccurrenceListener - | Method Detail |
|---|
public void logError(Throwable throwable,
String moduleName,
String flowName,
String flowElementName,
Event currentEvent,
String actionTaken)
ErrorLoggingService
logError in interface ErrorLoggingService
public PagedSearchResult<ErrorOccurrence> getErrors(int pageNo,
int pageSize,
String orderBy,
boolean orderAscending,
String moduleName,
String flowName)
ErrorLoggingService
getErrors in interface ErrorLoggingServicepageNo - - 0 or greater, index into the list of all possible resultspageSize - - 0 or greater, no of errors to return on a page
public void logError(Throwable throwable,
String moduleName,
String initiatorName,
String actionTaken)
ErrorLoggingService
logError in interface ErrorLoggingServicepublic ErrorOccurrence getErrorOccurrence(long errorOccurrenceId)
ErrorLoggingService
getErrorOccurrence in interface ErrorLoggingServicepublic void housekeep()
ErrorLoggingServiceErrorOccurrences that are deemed to be too old to be deleted
housekeep in interface ErrorLoggingServicepublic void setErrorTimeToLiveDays(long errorTimeToLiveDays)
errorTimeToLiveDays - public List<ErrorOccurrence> getErrorOccurrences(String eventId)
ErrorLoggingService
getErrorOccurrences in interface ErrorLoggingServicepublic void addErrorOccurrenceListener(ErrorOccurrenceListener errorOccurrenceListener)
ErrorLoggingServiceErrorOccurrenceListener as a listener for new ErrorOccurrence
addErrorOccurrenceListener in interface ErrorLoggingServicepublic void removeErrorOccurrenceListener(ErrorOccurrenceListener errorOccurrenceListener)
ErrorLoggingServiceErrorOccurrenceListener as a listener for new ErrorOccurrence
removeErrorOccurrenceListener in interface ErrorLoggingService
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||