Package | Description |
---|---|
org.torproject.metrics.onionoo.docs |
Documents managed by this service, including internal status files and
pre-written response objects.
|
Modifier and Type | Class and Description |
---|---|
class |
BandwidthDocument |
class |
BandwidthStatus |
class |
ClientsDocument |
class |
ClientsStatus |
class |
DetailsDocument |
class |
DetailsStatus |
class |
NodeStatus
NodeStatus documents contain persistent state for data about relays.
|
class |
SummaryDocument |
class |
UpdateStatus |
class |
UptimeDocument |
class |
UptimeStatus |
class |
WeightsDocument |
class |
WeightsStatus |
Modifier and Type | Method and Description |
---|---|
<T extends Document> |
DocumentStore.list(java.lang.Class<T> documentType) |
<T extends Document> |
DocumentStore.list(java.lang.Class<T> documentType,
long updatedAfter)
Returns all fingerprints of documents of the given type that have
been updated after the given time in milliseconds since the epoch.
|
<T extends Document> |
DocumentStore.remove(java.lang.Class<T> documentType) |
<T extends Document> |
DocumentStore.remove(java.lang.Class<T> documentType,
java.lang.String fingerprint)
Removes the document with given type and identified by the given
fingerprint.
|
<T extends Document> |
DocumentStore.retrieve(java.lang.Class<T> documentType,
boolean parse) |
<T extends Document> |
DocumentStore.retrieve(java.lang.Class<T> documentType,
boolean parse,
java.lang.String fingerprint)
Retrieves the document with given type and identified by the given
fingerprint, and either parses it or returns it unparsed.
|
<T extends Document> |
DocumentStore.store(T document) |
<T extends Document> |
DocumentStore.store(T document,
java.lang.String fingerprint)
Stores the given document using the given fingerprint as
identifier.
|