Class ReportedHidServStats
- java.lang.Object
-
- org.torproject.metrics.stats.hidserv.ReportedHidServStats
-
-
Constructor Summary
Constructors Constructor Description ReportedHidServStats(java.lang.String fingerprint, long statsEndMillis)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object otherObject)
java.lang.String[]
format()
Returns an array of two strings with a string representation of this document.long
getDirOnionsSeen()
java.lang.String
getFingerprint()
long
getRendRelayedCells()
long
getStatsEndMillis()
long
getStatsIntervalSeconds()
int
hashCode()
boolean
parse(java.lang.String[] formattedStrings)
Initializes an object using the given array of two strings.void
setDirOnionsSeen(long dirOnionsSeen)
void
setRendRelayedCells(long rendRelayedCells)
void
setStatsIntervalSeconds(long statsIntervalSeconds)
-
-
-
Method Detail
-
getFingerprint
public java.lang.String getFingerprint()
-
getStatsEndMillis
public long getStatsEndMillis()
-
setStatsIntervalSeconds
public void setStatsIntervalSeconds(long statsIntervalSeconds)
-
getStatsIntervalSeconds
public long getStatsIntervalSeconds()
-
setRendRelayedCells
public void setRendRelayedCells(long rendRelayedCells)
-
getRendRelayedCells
public long getRendRelayedCells()
-
setDirOnionsSeen
public void setDirOnionsSeen(long dirOnionsSeen)
-
getDirOnionsSeen
public long getDirOnionsSeen()
-
equals
public boolean equals(java.lang.Object otherObject)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
format
public java.lang.String[] format()
Description copied from interface:Document
Returns an array of two strings with a string representation of this document.The first string will be used to start a group of documents, the second string will be used to represent a single document in that group. Ideally, the first string is equivalent for many documents stored in the same file, and the second string is different for those documents.
-
-