public abstract class AbstractStorageHandler
extends java.lang.Object
Constructor and Description |
---|
AbstractStorageHandler() |
Modifier and Type | Method and Description |
---|---|
abstract AbstractEventDataProvider |
getEventDataProvider(StatisticContext context)
Build an
AbstractEventDataProvider to provide data for analysis |
java.lang.String |
getName() |
abstract java.time.Instant |
getOlderAnalyticsDataDate()
Retrieve the older date from the analytics file
|
abstract void |
init(java.lang.String propertyPrefix,
JProperties subProperties)
Init a
EventData storage |
abstract boolean |
isAnalysisProvider()
indicate if the
AbstractStorageHandler is the eventData provider for analysis or not. |
boolean |
isEnabled() |
void |
setEnabled(boolean enabled) |
void |
setName(java.lang.String name) |
abstract void |
writeEvent(EventData data)
Write a
EventData in the storage |
public abstract void init(java.lang.String propertyPrefix, JProperties subProperties)
EventData
storageString
- propertyPrefix used to configure the handlersubProperties
- the JProperties
with the handler's propertiespublic abstract void writeEvent(EventData data) throws StorageException
EventData
in the storagedata
- the EventData
to writeStorageException
- exception throw by the storage subsystempublic abstract java.time.Instant getOlderAnalyticsDataDate()
public abstract boolean isAnalysisProvider()
AbstractStorageHandler
is the eventData provider for analysis or not.
Note only one AbstractStorageHandler
should be enabled for analysis at runtimeAbstractStorageHandler
is enabled for provided analysis data, false otherwisepublic abstract AbstractEventDataProvider getEventDataProvider(StatisticContext context) throws StorageException
AbstractEventDataProvider
to provide data for analysiscontext
- the StatisticContext
used to create the EventData
providerAbstractEventDataProvider
StorageException
- if the EventData
cannot be createdpublic boolean isEnabled()
public void setEnabled(boolean enabled)
public java.lang.String getName()
public void setName(java.lang.String name)
Copyright © 2001-2017 Jalios SA. All Rights Reserved.