|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.base.stats.ReadStatSession
com.jivesoftware.forum.stats.NNTPReadStatSession
public class NNTPReadStatSession
Encapsulates a series of NNTP read stat occurrences.
It is assumed the NNTP session is created when the client connects and ends when the client disconnects.
Constructor Summary | |
---|---|
NNTPReadStatSession()
|
|
NNTPReadStatSession(java.lang.String visitorID,
java.util.Date creationDate,
java.util.Date endDate,
java.lang.String ip,
java.lang.String country)
|
|
NNTPReadStatSession(java.lang.String visitorID,
java.util.Date creationDate,
java.lang.String ip,
java.lang.String country)
|
Method Summary | |
---|---|
long |
getBytesReceived()
Returns the total bytes transferred during the session or -1 if it is unknown. |
long |
getBytesSent()
Returns the total bytes sent during the session or -1 if it is unknown. |
java.lang.String |
getCountry()
The country code (2 letter standard code, ie US, UK, FR, DE, etc) or null if it is unknown. |
java.util.Date |
getEndDate()
Returns the date the NNTP read stat session ended (this would be when the client disconnects). |
java.lang.String |
getIP()
Returns the IP this session was created under or null if the IP could not be determined. |
void |
setEndDate(java.util.Date endDate)
|
void |
updateBytesReceived(long newBytesReceived)
Updates the total bytes transferred in this session. |
void |
updateBytesSent(long newBytesSent)
Updates the total bytes sent in this session. |
Methods inherited from class com.jivesoftware.base.stats.ReadStatSession |
---|
getCreationDate, getSessionID, getVisitorID, setSessionID, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public NNTPReadStatSession()
public NNTPReadStatSession(java.lang.String visitorID, java.util.Date creationDate, java.lang.String ip, java.lang.String country)
public NNTPReadStatSession(java.lang.String visitorID, java.util.Date creationDate, java.util.Date endDate, java.lang.String ip, java.lang.String country)
Method Detail |
---|
public java.util.Date getEndDate()
public void setEndDate(java.util.Date endDate)
public long getBytesReceived()
public java.lang.String getIP()
public java.lang.String getCountry()
public void updateBytesReceived(long newBytesReceived)
newBytesReceived
- the new amount of bytes transferred.public long getBytesSent()
public void updateBytesSent(long newBytesSent)
newBytesSent
- the new amount of bytes sent.
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |