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 booleanequals(java.lang.Object otherObject)java.lang.String[]format()Returns an array of two strings with a string representation of this document.longgetDirOnionsSeen()java.lang.StringgetFingerprint()longgetRendRelayedCells()longgetStatsEndMillis()longgetStatsIntervalSeconds()inthashCode()booleanparse(java.lang.String[] formattedStrings)Initializes an object using the given array of two strings.voidsetDirOnionsSeen(long dirOnionsSeen)voidsetRendRelayedCells(long rendRelayedCells)voidsetStatsIntervalSeconds(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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
format
public java.lang.String[] format()
Description copied from interface:DocumentReturns 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.
-
-