Class ErrorStore
- java.lang.Object
-
- io.siddhi.core.util.error.handler.store.ErrorStore
-
public abstract class ErrorStore extends Object
Denotes the abstract error store in which, error event entries will be stored.
-
-
Constructor Summary
Constructors Constructor Description ErrorStore()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected ErrorEntryconstructErrorEntry(int id, long timestamp, String siddhiAppName, String streamName, byte[] eventAsBytes, String cause, byte[] stackTraceAsBytes, byte[] originalPayloadAsBytes, ErrorOccurrence errorOccurrence, ErroneousEventType erroneousEventType, ErrorType errorType)abstract voiddiscardErrorEntries(String siddhiAppName)abstract voiddiscardErrorEntry(int id)abstract intgetErrorEntriesCount(String siddhiAppName)protected com.lmax.disruptor.EventHandler<PublishableErrorEntry>[]getEventHandler()abstract intgetTotalErrorEntriesCount()abstract List<ErrorEntry>loadErrorEntries(String siddhiAppName, Map<String,String> queryParams)abstract ErrorEntryloadErrorEntry(int id)protected voidproduce(long timestamp, String siddhiAppName, String streamName, byte[] eventAsBytes, String cause, byte[] stackTraceAsBytes, byte[] originalPayloadAsBytes, String errorOccurrence, String eventType, String errorType)abstract voidpurge(Map retentionPolicyParams)protected voidsave(String siddhiAppName, String streamName, ErroneousEvent erroneousEvent, ErroneousEventType eventType, ErrorOccurrence errorOccurrence, ErrorType errorType)protected abstract voidsaveEntry(long timestamp, String siddhiAppName, String streamName, byte[] eventAsBytes, String cause, byte[] stackTraceAsBytes, byte[] originalPayloadAsBytes, String errorOccurrence, String eventType, String errorType)voidsaveMappingError(String siddhiAppName, List<ErroneousEvent> erroneousEvents, String streamName)voidsaveTransportError(String siddhiAppName, ErroneousEvent erroneousEvent, ErroneousEventType eventType, String streamName, ErrorOccurrence errorOccurrence)voidsetBufferSize(int bufferSize)voidsetDropWhenBufferFull(boolean dropWhenBufferFull)abstract voidsetProperties(Map properties)
-
-
-
Method Detail
-
produce
protected void produce(long timestamp, String siddhiAppName, String streamName, byte[] eventAsBytes, String cause, byte[] stackTraceAsBytes, byte[] originalPayloadAsBytes, String errorOccurrence, String eventType, String errorType)
-
getEventHandler
protected com.lmax.disruptor.EventHandler<PublishableErrorEntry>[] getEventHandler()
-
setProperties
public abstract void setProperties(Map properties)
-
setBufferSize
public void setBufferSize(int bufferSize)
-
setDropWhenBufferFull
public void setDropWhenBufferFull(boolean dropWhenBufferFull)
-
saveMappingError
public void saveMappingError(String siddhiAppName, List<ErroneousEvent> erroneousEvents, String streamName)
-
saveTransportError
public void saveTransportError(String siddhiAppName, ErroneousEvent erroneousEvent, ErroneousEventType eventType, String streamName, ErrorOccurrence errorOccurrence)
-
save
protected void save(String siddhiAppName, String streamName, ErroneousEvent erroneousEvent, ErroneousEventType eventType, ErrorOccurrence errorOccurrence, ErrorType errorType) throws ErrorStoreException
- Throws:
ErrorStoreException
-
saveEntry
protected abstract void saveEntry(long timestamp, String siddhiAppName, String streamName, byte[] eventAsBytes, String cause, byte[] stackTraceAsBytes, byte[] originalPayloadAsBytes, String errorOccurrence, String eventType, String errorType) throws ErrorStoreException- Throws:
ErrorStoreException
-
loadErrorEntries
public abstract List<ErrorEntry> loadErrorEntries(String siddhiAppName, Map<String,String> queryParams)
-
loadErrorEntry
public abstract ErrorEntry loadErrorEntry(int id)
-
constructErrorEntry
protected ErrorEntry constructErrorEntry(int id, long timestamp, String siddhiAppName, String streamName, byte[] eventAsBytes, String cause, byte[] stackTraceAsBytes, byte[] originalPayloadAsBytes, ErrorOccurrence errorOccurrence, ErroneousEventType erroneousEventType, ErrorType errorType) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
discardErrorEntry
public abstract void discardErrorEntry(int id)
-
discardErrorEntries
public abstract void discardErrorEntries(String siddhiAppName)
-
getTotalErrorEntriesCount
public abstract int getTotalErrorEntriesCount()
-
getErrorEntriesCount
public abstract int getErrorEntriesCount(String siddhiAppName)
-
purge
public abstract void purge(Map retentionPolicyParams)
-
-