public abstract class AbstractEventRepository extends Object implements EventRepository
| Modifier and Type | Field and Description |
|---|---|
protected static SimpleDateFormat |
KDF
Create key.
|
| Constructor and Description |
|---|
AbstractEventRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected Set<String> |
getCandidateDays(long startTime,
long endTime)
Will get a list of all days between 2 dates.
|
BarChart |
getFeatureUsageBarChart(EventQueryDefinition q)
Get hit curves.
|
PieChart |
getFeatureUsagePieChart(EventQueryDefinition q)
Draw a pie chart where each sector is for a feature.
|
int |
getFeatureUsageTotalHitCount(EventQueryDefinition q)
Get all events.
|
BarChart |
getHostBarChart(EventQueryDefinition q)
Use hit getHostHitCount() to draw a bar chart.
|
PieChart |
getHostPieChart(EventQueryDefinition q)
Use hit getHostHitCount() to draw a pie chart.
|
protected String |
getKeyDate(long time)
Format a timestamp to create a Key.
|
BarChart |
getSourceBarChart(EventQueryDefinition q)
Use hit getSourceHitCount() to draw a bar chart.
|
PieChart |
getSourcePieChart(EventQueryDefinition q)
Use hit getSourceHitCount() to draw a pie chart.
|
protected String |
getTitle(EventQueryDefinition q)
Generation of title.
|
BarChart |
getUserBarChart(EventQueryDefinition q)
Use hit getHostHitCount() to draw a bar chart.
|
PieChart |
getUserPieChart(EventQueryDefinition q)
Use hit getHostHitCount() to draw a pie chart.
|
protected boolean |
isEventInInterval(Event evt,
long startTime,
long endTime)
Utility.
|
void |
orderBarDecrecent(BarChart barChart) |
protected BarChart |
renderBarChartGradient(String title,
Map<String,MutableHitCount> hitRatio,
String colorFrom,
String colorTo) |
protected BarChart |
renderBarChartRainbow(String title,
Map<String,MutableHitCount> hitRatio) |
protected PieChart |
renderPieChartGradient(String title,
Map<String,MutableHitCount> hitRatio,
String fromColor,
String toColor)
Convert hicount into pieChart.
|
protected PieChart |
renderPieChartRainBow(String title,
Map<String,MutableHitCount> hitRatio)
Convert hicount into pieChart.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcreateSchema, getAuditTrail, getEventByUUID, getFeatureUsageHistory, getFeatureUsageHitCount, getHostHitCount, getSourceHitCount, getUserHitCount, purgeAuditTrail, purgeFeatureUsage, saveEvent, searchFeatureUsageEventsprotected static final SimpleDateFormat KDF
public PieChart getFeatureUsagePieChart(EventQueryDefinition q)
getFeatureUsagePieChart in interface EventRepositorypublic PieChart getHostPieChart(EventQueryDefinition q)
getHostPieChart in interface EventRepositorypublic PieChart getSourcePieChart(EventQueryDefinition q)
getSourcePieChart in interface EventRepositorypublic PieChart getUserPieChart(EventQueryDefinition q)
getUserPieChart in interface EventRepositoryprotected PieChart renderPieChartGradient(String title, Map<String,MutableHitCount> hitRatio, String fromColor, String toColor)
hitRatio - current hist ratioprotected PieChart renderPieChartRainBow(String title, Map<String,MutableHitCount> hitRatio)
hitRatio - current hist ratioprotected BarChart renderBarChartRainbow(String title, Map<String,MutableHitCount> hitRatio)
protected BarChart renderBarChartGradient(String title, Map<String,MutableHitCount> hitRatio, String colorFrom, String colorTo)
protected String getTitle(EventQueryDefinition q)
q - current querypublic void orderBarDecrecent(BarChart barChart)
public BarChart getFeatureUsageBarChart(EventQueryDefinition q)
getFeatureUsageBarChart in interface EventRepositorypublic BarChart getHostBarChart(EventQueryDefinition q)
getHostBarChart in interface EventRepositorypublic BarChart getSourceBarChart(EventQueryDefinition q)
getSourceBarChart in interface EventRepositorypublic BarChart getUserBarChart(EventQueryDefinition q)
getUserBarChart in interface EventRepositorypublic int getFeatureUsageTotalHitCount(EventQueryDefinition q)
getFeatureUsageTotalHitCount in interface EventRepositoryprotected boolean isEventInInterval(Event evt, long startTime, long endTime)
evt - current evenementstartTime - begin timeendTime - end timeprotected String getKeyDate(long time)
time - current tickCopyright © 2013–2017 FF4J. All rights reserved.