|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.rim.pushsdk.push.stats.PushStats
public class PushStats
Represents push statistics for an application.
| Constructor Summary | |
|---|---|
PushStats()
Constructs a default PushStats object. |
|
PushStats(PushStats pushStats)
Copy Constructor. |
|
PushStats(String pushApplicationId,
long runningPushCount,
long runningContentSum,
long dailyPushCount)
Constructs a PushStats object for the specified push application with the provided running push count, running
content sum, and daily push count. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Returns true if two push statistic objects are found to be equal and false otherwise. |
long |
getDailyPushCount()
Gets the number of pushes during a day. |
Date |
getDailyPushCountDate()
Gets the date for which the daily push count is calculated. |
String |
getPushApplicationId()
Gets the id of the push application that this push statistic object corresponds to. |
long |
getRunningContentSum()
Gets the total volume of content pushed since this value was reset. |
long |
getRunningPushCount()
Gets the number of pushes since this value was reset. |
int |
hashCode()
Returns the push statistic hash code. |
void |
setDailyPushCount(long dailyPushCount)
Sets the number of pushes during a day. |
void |
setDailyPushCountDate(Date dailyPushCountDate)
Sets the date for which the daily push count is calculated. |
void |
setPushApplicationId(String pushApplicationId)
Sets the id of the push application that this push statistic object corresponds to. |
void |
setRunningContentSum(long runningContentSum)
Sets the total volume of content pushed since this value was reset. |
void |
setRunningPushCount(long runningPushCount)
Sets the number of pushes since this value was reset. |
String |
toString()
Constructs a String with all attributes in name = value format. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PushStats(PushStats pushStats)
pushStats - a PushStats objectpublic PushStats()
PushStats object.
public PushStats(String pushApplicationId,
long runningPushCount,
long runningContentSum,
long dailyPushCount)
PushStats object for the specified push application with the provided running push count, running
content sum, and daily push count.
pushApplicationId - Id of the push application that the constructed push statistic object corresponds torunningPushCount - number of pushes since this value was reset. If one push contains N addresses, the runningPushCount
will be equal N.runningContentSum - total volume of content pushed since this value was reset. If J bytes of content was sent to N devices, the
runningContentSum will be equal J * N.dailyPushCount - number of pushes during a day. If one push contains N addresses, the dailyPushCount will be equal
N.| Method Detail |
|---|
public String getPushApplicationId()
public void setPushApplicationId(String pushApplicationId)
pushApplicationId - the id of the push applicationpublic long getRunningPushCount()
runningPushCount will be N.
public void setRunningPushCount(long runningPushCount)
runningPushCount passed to this method should be N.
runningPushCount - running push countpublic long getRunningContentSum()
runningContentSum will be J * N
public void setRunningContentSum(long runningContentSum)
runningContentSum passed to the method should be J * N
runningContentSum - the running content sumpublic long getDailyPushCount()
dailyPushCount will be
N.
public void setDailyPushCount(long dailyPushCount)
dailyPushCount passed to the
method should be N.
dailyPushCount - the daily push countpublic Date getDailyPushCountDate()
public void setDailyPushCountDate(Date dailyPushCountDate)
dailyPushCountDate - the date for which the daily push count is calculatedpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
String with all attributes in name = value format.
toString in class ObjectString representation of this object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||