public class PushMessageMetricsService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
AEROGEAR_METRICS_STORAGE_MAX_DAYS |
| Constructor and Description |
|---|
PushMessageMetricsService() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendError(org.jboss.aerogear.unifiedpush.api.FlatPushMessageInformation pushMessageInformation,
org.jboss.aerogear.unifiedpush.api.Variant variant,
String errorMessage) |
long |
countMessagesForPushApplication(String pushApplicationId)
Returns number of push messages for given push application ID
|
void |
deleteOutdatedFlatPushInformationData()
We trigger a delete of all
FlatPushMessageInformation objects that are
older than 30 days! |
org.jboss.aerogear.unifiedpush.dao.PageResult<org.jboss.aerogear.unifiedpush.api.FlatPushMessageInformation,org.jboss.aerogear.unifiedpush.dto.MessageMetrics> |
findAllFlatsForPushApplication(String pushApplicationID,
String search,
boolean sorting,
Integer page,
Integer pageSize) |
org.jboss.aerogear.unifiedpush.api.FlatPushMessageInformation |
getPushMessageInformation(String id) |
org.jboss.aerogear.unifiedpush.api.FlatPushMessageInformation |
storeNewRequestFrom(String pushAppId,
String json,
String ipAddress,
String clientIdentifier) |
void |
updateAnalytics(String aerogearPushId) |
void |
updatePushMessageInformation(org.jboss.aerogear.unifiedpush.api.FlatPushMessageInformation pushMessageInformation) |
public static final String AEROGEAR_METRICS_STORAGE_MAX_DAYS
public org.jboss.aerogear.unifiedpush.api.FlatPushMessageInformation storeNewRequestFrom(String pushAppId, String json, String ipAddress, String clientIdentifier)
public void updatePushMessageInformation(org.jboss.aerogear.unifiedpush.api.FlatPushMessageInformation pushMessageInformation)
public void appendError(org.jboss.aerogear.unifiedpush.api.FlatPushMessageInformation pushMessageInformation,
org.jboss.aerogear.unifiedpush.api.Variant variant,
String errorMessage)
public org.jboss.aerogear.unifiedpush.dao.PageResult<org.jboss.aerogear.unifiedpush.api.FlatPushMessageInformation,org.jboss.aerogear.unifiedpush.dto.MessageMetrics> findAllFlatsForPushApplication(String pushApplicationID, String search, boolean sorting, Integer page, Integer pageSize)
public long countMessagesForPushApplication(String pushApplicationId)
pushApplicationId - the push app IDpublic void deleteOutdatedFlatPushInformationData()
FlatPushMessageInformation objects that are
older than 30 days!public org.jboss.aerogear.unifiedpush.api.FlatPushMessageInformation getPushMessageInformation(String id)
public void updateAnalytics(String aerogearPushId)
Copyright © 2018 JBoss by Red Hat. All rights reserved.