|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.util.entity.AbstractBasicEntity
org.torweg.pulse.component.statistics.model.PIRecord
@Entity public class PIRecord
A raw page impression record.
| Field Summary | |
|---|---|
static java.lang.String |
UNDEFINED_COUNTRY
The value used for the PIRecords country if null was
given in constructor. |
| Constructor Summary | |
|---|---|
protected |
PIRecord()
Deprecated. |
|
PIRecord(StatisticsServer s,
javax.servlet.http.HttpSession httpSession,
int[] sr,
java.lang.String ipAddress,
java.lang.String c,
java.lang.String p,
java.lang.String r,
java.lang.String userAgent,
java.lang.String acceptLanguage,
boolean isProxy)
creates a new PIRecord for the given server and request. |
| Method Summary | |
|---|---|
java.lang.String |
getCountry()
|
Duration |
getFullDay()
Returns the Duration representing the "full, surrounding" day of
the PIRecords recorded-time-stamp:
start: YYYY-MM-DD-00:00:00:000end: YYYY-MM-DD-23:59:59:999. |
java.lang.String |
getIpHash()
|
java.lang.String |
getPath()
|
java.util.Date |
getProcessedDate()
Returns the Date the PIRecord has been statistically
processed by DataAggregationJoblet. |
long |
getProcessedMillis()
Returns the time-stamp the PIRecord has been statistically
processed by DataAggregationJoblet. |
java.util.Date |
getRecordedDate()
Returns the Date of creation. |
long |
getRecordedMillis()
Returns the recorded of creation - milliseconds. |
java.lang.String |
getReferer()
|
int[] |
getScreenResolution()
returns the screenResolution as an int array (x, y) or null, if
the screen resolution is unknown. |
java.lang.String |
getSessionId()
Returns the session-id. |
StatisticsServer |
getStatisticsServer()
|
java.lang.String |
getUserAgentString()
|
int[] |
getViewportResolution()
returns the viewport resolution as an int array (x, y) or null,
if the viewport resolution is unknown. |
boolean |
isProcessed()
Indicates whether the PIRecord has been already statistically
processed. |
boolean |
isProxyRequest()
Returns whether the PIRecord was produced by a proxyRequest. |
boolean |
isRecurring()
Returns whether the the stored sessionId has been previously recorded. |
void |
setProcessed(long millis)
Called by DataAggregationJoblet to set the time-stamp the PIRecord has been statistically processed. |
void |
setRecurring(boolean b)
sets the recurring flag. |
java.lang.String |
toString()
Returns a string-representation. |
| Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity |
|---|
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String UNDEFINED_COUNTRY
PIRecords country if null was
given in constructor.
| Constructor Detail |
|---|
@Deprecated protected PIRecord()
public PIRecord(StatisticsServer s,
javax.servlet.http.HttpSession httpSession,
int[] sr,
java.lang.String ipAddress,
java.lang.String c,
java.lang.String p,
java.lang.String r,
java.lang.String userAgent,
java.lang.String acceptLanguage,
boolean isProxy)
PIRecord for the given server and request.
s - the server the record is created forhttpSession - the HttpSessionsr - the screen resolution as a two int array (x, y)ipAddress - the IP address of the user creating the page impressionc - the ISO 3166-2 two-letter country codep - the path identifying the pager - the HTTP refereruserAgent - the user-agent as sent by the browseracceptLanguage - the accept-language header as sent by the browserisProxy - flag, identifying proxy request requests| Method Detail |
|---|
public final StatisticsServer getStatisticsServer()
public final int[] getScreenResolution()
null, if
the screen resolution is unknown.
nullpublic final int[] getViewportResolution()
null,
if the viewport resolution is unknown.
nullpublic final java.lang.String getIpHash()
public final java.lang.String getCountry()
public final java.lang.String getPath()
public final java.lang.String getReferer()
public final java.lang.String getUserAgentString()
public final java.util.Date getRecordedDate()
Date of creation.
Datepublic final long getRecordedMillis()
public final java.lang.String getSessionId()
public final boolean isProxyRequest()
PIRecord was produced by a proxyRequest.
PIRecord was produced by a proxyRequestpublic final boolean isRecurring()
true if the stored sessionId has been previously
recorded, false otherwisepublic final void setRecurring(boolean b)
b - the value to setpublic final Duration getFullDay()
Duration representing the "full, surrounding" day of
the PIRecords recorded-time-stamp:
start: YYYY-MM-DD-00:00:00:000
end: YYYY-MM-DD-23:59:59:999.
Durationpublic final java.util.Date getProcessedDate()
Date the PIRecord has been statistically
processed by DataAggregationJoblet.
Datepublic final long getProcessedMillis()
PIRecord has been statistically
processed by DataAggregationJoblet.
public final void setProcessed(long millis)
DataAggregationJoblet to set the time-stamp the PIRecord has been statistically processed.
millis - the time-stamp to setpublic final boolean isProcessed()
PIRecord has been already statistically
processed.
true if the PIRecord has been processed by
DataAggregationJoblet, false otherwisepublic final java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||