public class PushMessageMetricsService extends Object
| Constructor and Description |
|---|
PushMessageMetricsService() |
| Modifier and Type | Method and Description |
|---|---|
long |
countMessagesForPushApplication(String pushApplicationId)
Returns number of push messages for given push application 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> |
findAllForPushApplication(String pushApplicationID,
boolean sorting,
Integer page,
Integer pageSize)
Returns a list of metadata objects for the given Push Application
|
org.jboss.aerogear.unifiedpush.dao.PageResult<org.jboss.aerogear.unifiedpush.api.PushMessageInformation> |
findAllForVariant(String variantID,
boolean sorting,
Integer page,
Integer pageSize)
Returns a list of metadata objects for the given Variant
|
org.jboss.aerogear.unifiedpush.api.PushMessageInformation |
storeNewRequestFrom(String pushAppId,
String json,
String ipAddress,
String clientIdentifier)
Starts the capturing of metadata around a push message request.
|
void |
updatePushMessageInformation(org.jboss.aerogear.unifiedpush.api.PushMessageInformation pushMessageInformation)
Delegates a database update for the given
PushMessageInformation object. |
public org.jboss.aerogear.unifiedpush.api.PushMessageInformation storeNewRequestFrom(String pushAppId, String json, String ipAddress, String clientIdentifier)
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.public org.jboss.aerogear.unifiedpush.dao.PageResult<org.jboss.aerogear.unifiedpush.api.PushMessageInformation> findAllForPushApplication(String pushApplicationID, boolean sorting, Integer page, Integer pageSize)
public org.jboss.aerogear.unifiedpush.dao.PageResult<org.jboss.aerogear.unifiedpush.api.PushMessageInformation> findAllForVariant(String variantID, boolean sorting, Integer page, Integer pageSize)
public long countMessagesForPushApplication(String pushApplicationId)
public void deleteOutdatedPushInformationData()
PushMessageInformation objects that are
older than 30 days!Copyright © 2015 JBoss by Red Hat. All Rights Reserved.