Class ClientsStatus
- java.lang.Object
-
- org.torproject.metrics.onionoo.docs.Document
-
- org.torproject.metrics.onionoo.docs.ClientsStatus
-
public class ClientsStatus extends Document
-
-
Constructor Summary
Constructors Constructor Description ClientsStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToHistory(java.util.SortedSet<ClientsHistory> newIntervals)Adds all given clients history objects that don't overlap with existing clients history objects.voidclearDirty()voidcompressHistory(long lastSeenMillis)Compresses the history of clients objects by merging adjacent intervals, depending on how far back in the past they lie.java.util.SortedSet<ClientsHistory>getHistory()booleanisDirty()voidsetFromDocumentString(java.lang.String documentString)voidsetHistory(java.util.SortedSet<ClientsHistory> history)java.lang.StringtoDocumentString()-
Methods inherited from class org.torproject.metrics.onionoo.docs.Document
getDocumentString, setDocumentString
-
-
-
-
Method Detail
-
isDirty
public boolean isDirty()
-
clearDirty
public void clearDirty()
-
setHistory
public void setHistory(java.util.SortedSet<ClientsHistory> history)
-
getHistory
public java.util.SortedSet<ClientsHistory> getHistory()
-
setFromDocumentString
public void setFromDocumentString(java.lang.String documentString)
- Overrides:
setFromDocumentStringin classDocument
-
addToHistory
public void addToHistory(java.util.SortedSet<ClientsHistory> newIntervals)
Adds all given clients history objects that don't overlap with existing clients history objects.
-
compressHistory
public void compressHistory(long lastSeenMillis)
Compresses the history of clients objects by merging adjacent intervals, depending on how far back in the past they lie.
-
toDocumentString
public java.lang.String toDocumentString()
- Overrides:
toDocumentStringin classDocument
-
-