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 |
|---|---|
long |
countMessagesForPushApplication(String pushApplicationId)
Returns number of push messages for given push application ID
|
long |
countMessagesForVariant(String variantID)
Returns number of push messages for given variant ID
|
void |
deleteOutdatedPushInformationData()
We trigger a delete of all
PushMessageInformation objects that are
older than 30 days! |
org.jboss.aerogear.unifiedpush.dao.PageResult<org.jboss.aerogear.unifiedpush.api.PushMessageInformation,org.jboss.aerogear.unifiedpush.dto.MessageMetrics> |
findAllForPushApplication(String pushApplicationID,
String search,
boolean sorting,
Integer page,
Integer pageSize)
Returns a list of metadata objects for the given Push Application
|
org.jboss.aerogear.unifiedpush.api.PushMessageInformation |
getPushMessageInformation(String id) |
void |
lock(org.jboss.aerogear.unifiedpush.api.PushMessageInformation pushMessageInformation)
Locks the push message information for updates so that there will be no updates concurrently
|
org.jboss.aerogear.unifiedpush.api.PushMessageInformation |
storeNewRequestFrom(String pushAppId,
String json,
String ipAddress,
String clientIdentifier,
int totalVariantCount)
Starts the capturing of metadata around a push message request.
|
void |
updateAnalytics(String aerogearPushId,
String variantID) |
void |
updatePushMessageInformation(org.jboss.aerogear.unifiedpush.api.PushMessageInformation pushMessageInformation)
Delegates a database update for the given
PushMessageInformation object. |
public static final String AEROGEAR_METRICS_STORAGE_MAX_DAYS
public org.jboss.aerogear.unifiedpush.api.PushMessageInformation storeNewRequestFrom(String pushAppId, String json, String ipAddress, String clientIdentifier, int totalVariantCount)
pushAppId - the ip of the push application which is owing the push message jobjson - the raw JSON dataipAddress - remote address of the job submitterclientIdentifier - the String representating who triggered the push messagepublic void updatePushMessageInformation(org.jboss.aerogear.unifiedpush.api.PushMessageInformation pushMessageInformation)
PushMessageInformation object.pushMessageInformation - the push message info objectpublic void lock(org.jboss.aerogear.unifiedpush.api.PushMessageInformation pushMessageInformation)
pushMessageInformation - push message information to lockpublic org.jboss.aerogear.unifiedpush.dao.PageResult<org.jboss.aerogear.unifiedpush.api.PushMessageInformation,org.jboss.aerogear.unifiedpush.dto.MessageMetrics> findAllForPushApplication(String pushApplicationID, String search, boolean sorting, Integer page, Integer pageSize)
pushApplicationID - the push app IDsorting - do we want sorting?page - number of the actual page in the paginationpageSize - number of itemspublic long countMessagesForPushApplication(String pushApplicationId)
pushApplicationId - the push app IDpublic long countMessagesForVariant(String variantID)
variantID - the variant IDpublic void deleteOutdatedPushInformationData()
PushMessageInformation objects that are
older than 30 days!public org.jboss.aerogear.unifiedpush.api.PushMessageInformation getPushMessageInformation(String id)
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.