|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.push.stats.PushStatsBatchUpdaterServiceImpl
public class PushStatsBatchUpdaterServiceImpl
Implementation of the PushStatsBatchUpdaterService interface.
| Nested Class Summary | |
|---|---|
protected static class |
PushStatsBatchUpdaterServiceImpl.KeyComparator
A comparator used to sort keys of the form |
| Field Summary | |
|---|---|
protected static String |
KEY_SEPARATOR
The key separator used to combine a push app id with a day of the year. |
| Constructor Summary | |
|---|---|
PushStatsBatchUpdaterServiceImpl()
|
|
| Method Summary | |
|---|---|
void |
addPushStatsUpdate(PushStats pushStats)
Adds a push stats object to the list of updates to be batched. |
void |
destroy()
Attempts to stop threads when the bean is destroyed. |
int |
getPushStatsQueueSize()
Returns the size of the queue holding push stats waiting to be batched and processed. |
void |
resetRunningContentSum(String pushApplicationId)
When a reset is called, find all push stats objects in the list of updates and set their contribution to the running content sum to 0. |
void |
resetRunningPushCount(String pushApplicationId)
When a reset is called, find all push stats objects in the list of updates and set their contribution to the running push count to 0. |
void |
run()
Performs a batch update of several push stats objects to storage. |
void |
setPushSDKProperties(PushSDKProperties pushSDKProperties)
Support for dependency injection. |
void |
setPushStatsDAO(PushStatsDAO pushStatsDAO)
Support for dependency injection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String KEY_SEPARATOR
| Constructor Detail |
|---|
public PushStatsBatchUpdaterServiceImpl()
| Method Detail |
|---|
public void setPushStatsDAO(PushStatsDAO pushStatsDAO)
PushStatsBatchUpdaterServicePushStatsDAO to use.
setPushStatsDAO in interface PushStatsBatchUpdaterServicepushStatsDAO - the Push Stats Data Access Objectpublic void setPushSDKProperties(PushSDKProperties pushSDKProperties)
PushStatsBatchUpdaterServicePushSDKProperties implementation.
setPushSDKProperties in interface PushStatsBatchUpdaterServicepushSDKProperties - the Push SDK Propertiespublic void destroy()
PushStatsBatchUpdaterService
destroy in interface PushStatsBatchUpdaterServicepublic int getPushStatsQueueSize()
PushStatsBatchUpdaterService
getPushStatsQueueSize in interface PushStatsBatchUpdaterServicepublic void addPushStatsUpdate(PushStats pushStats)
PushStatsBatchUpdaterService
addPushStatsUpdate in interface PushStatsBatchUpdaterServicepushStats - the push stats objectpublic void run()
PushStatsBatchUpdaterService
run in interface Runnablerun in interface PushStatsBatchUpdaterServicepublic void resetRunningPushCount(String pushApplicationId)
PushStatsBatchUpdaterService
resetRunningPushCount in interface PushStatsBatchUpdaterServicepushApplicationId - the push application idpublic void resetRunningContentSum(String pushApplicationId)
PushStatsBatchUpdaterService
resetRunningContentSum in interface PushStatsBatchUpdaterServicepushApplicationId - the push application id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||