Index

B C D E F G H I L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values

B

BandwidthParser - Class in org.torproject.metrics.descriptorparser.parsers
 
BandwidthParser() - Constructor for class org.torproject.metrics.descriptorparser.parsers.BandwidthParser
 
BridgedbMetricsParser - Class in org.torproject.metrics.descriptorparser.parsers
 
BridgedbMetricsParser() - Constructor for class org.torproject.metrics.descriptorparser.parsers.BridgedbMetricsParser
 
BridgeNetworkStatusParser - Class in org.torproject.metrics.descriptorparser.parsers
 
BridgeNetworkStatusParser() - Constructor for class org.torproject.metrics.descriptorparser.parsers.BridgeNetworkStatusParser
 
BridgePoolAssignmentsParser - Class in org.torproject.metrics.descriptorparser.parsers
 
BridgePoolAssignmentsParser() - Constructor for class org.torproject.metrics.descriptorparser.parsers.BridgePoolAssignmentsParser
 
BridgestrapParser - Class in org.torproject.metrics.descriptorparser.parsers
 
BridgestrapParser() - Constructor for class org.torproject.metrics.descriptorparser.parsers.BridgestrapParser
 
build() - Static method in class org.torproject.metrics.descriptorparser.utils.Gauge
Return a Builder to allow configuration of a new Gauge.
build(String, String) - Static method in class org.torproject.metrics.descriptorparser.utils.Gauge
Return a Builder to allow configuration of a new Gauge.
build(ServerDescriptor, Connection) - Method in class org.torproject.metrics.descriptorparser.builders.RouterStatusBuilder
Add a record to the server_status table.
Builder() - Constructor for class org.torproject.metrics.descriptorparser.utils.Gauge.Builder
 

C

calculateDigestSha256Base64(byte[]) - Method in class org.torproject.metrics.descriptorparser.utils.DescriptorUtils
Calculate a SHA-256 digest of a descriptor and return its representation in Base64.
Child() - Constructor for class org.torproject.metrics.descriptorparser.utils.Gauge.Child
 
close() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Timer
Equivalent to calling Gauge.Timer.setDuration().
collect() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
 
compareTo(TorVersion) - Method in class org.torproject.metrics.descriptorparser.utils.TorVersion
 
connect(String) - Method in class org.torproject.metrics.descriptorparser.utils.PsqlConnector
Connects to a DB given connection properties passed via a configuration file.
ConsensusParser - Class in org.torproject.metrics.descriptorparser.parsers
 
ConsensusParser() - Constructor for class org.torproject.metrics.descriptorparser.parsers.ConsensusParser
 
create() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Builder
 
create(String) - Method in class org.torproject.metrics.descriptorparser.utils.VictoriaMetricsHttpConnectionFactory
 

D

DATEHOUR_NOSPACE_FORMAT - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
DateTimeHelper - Class in org.torproject.metrics.descriptorparser.utils
 
dec() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Decrement the gauge by 1.
dec() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
Decrement the gauge with no labels by 1.
dec(double) - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Decrement the gauge by the given amount.
dec(double) - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
Decrement the gauge with no labels by the given amount.
describe() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
 
DescriptorUtils - Class in org.torproject.metrics.descriptorparser.utils
 
DescriptorUtils() - Constructor for class org.torproject.metrics.descriptorparser.utils.DescriptorUtils
 
determineVersionStatus(SortedSet<TorVersion>) - Method in class org.torproject.metrics.descriptorparser.utils.TorVersion
Determine the version status of this tor version in the context of the given recommended tor versions.

E

equals(Object) - Method in class org.torproject.metrics.descriptorparser.utils.TorVersion
 
ExitListParser - Class in org.torproject.metrics.descriptorparser.parsers
 
ExitListParser() - Constructor for class org.torproject.metrics.descriptorparser.parsers.ExitListParser
 
EXPERIMENTAL - Enum constant in enum class org.torproject.metrics.descriptorparser.utils.TorVersionStatus
 
ExtraInfoDescriptorParser - Class in org.torproject.metrics.descriptorparser.parsers
 
ExtraInfoDescriptorParser() - Constructor for class org.torproject.metrics.descriptorparser.parsers.ExtraInfoDescriptorParser
 

F

fieldAsString(Object) - Method in class org.torproject.metrics.descriptorparser.utils.DescriptorUtils
Return a string representation of an object.
FIFTEEN_MINUTES - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
finishReverseDomainNameLookups() - Method in class org.torproject.metrics.descriptorparser.utils.ReverseDomainNameResolver
Joins all background threads performing reverse domain name lookups and returns as soon as they have all finished.
FIVE_MINUTES - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
format(long) - Static method in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
format(long, String) - Static method in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
formatBytes(long) - Static method in class org.torproject.metrics.descriptorparser.utils.FormattingUtils
Formats the given number of bytes as B, KiB, MiB, GiB, etc.
formatDecimalNumber(long) - Static method in class org.torproject.metrics.descriptorparser.utils.FormattingUtils
Formats the given decimal number with a comma as thousands separator.
formatMillis(long) - Static method in class org.torproject.metrics.descriptorparser.utils.FormattingUtils
Formats the given number of milliseconds using the format "${minutes}:${seconds}.{milliseconds} minutes".
FormattingUtils - Class in org.torproject.metrics.descriptorparser.utils
Static helper methods for string processing etc.
FOUR_HOURS - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
FOURTY_FIVE_MINUTES - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 

G

Gauge - Class in org.torproject.metrics.descriptorparser.utils
Gauge metric, to report instantaneous values.
Gauge.Builder - Class in org.torproject.metrics.descriptorparser.utils
 
Gauge.Child - Class in org.torproject.metrics.descriptorparser.utils
The value of a single Gauge.
Gauge.Timer - Class in org.torproject.metrics.descriptorparser.utils
Represents an event being timed.
get() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Get the value of the gauge.
get() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
Get the value of the gauge.
getAbbreviation() - Method in enum class org.torproject.metrics.descriptorparser.utils.TorVersionStatus
 
getAsName() - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
getAsNumber() - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
getCityName() - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
getCountryCode() - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
getCountryName() - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
getLatitude() - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
getLongitude() - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
getLookupStartMillis() - Method in class org.torproject.metrics.descriptorparser.utils.ReverseDomainNameResolver
Returns the time in milliseconds since the epoch when reverse domain lookups have been started.
getRegionName() - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
getStatsString() - Method in class org.torproject.metrics.descriptorparser.utils.LookupService
Returns a string with the number of addresses looked up and resolved.
getStatsString() - Method in class org.torproject.metrics.descriptorparser.utils.ReverseDomainNameResolver
Returns a string with the number of performed reverse domain name lookups and some simple statistics on lookup time.
getTimestampMs() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Get the optionally defined timestamp for the gauge.
getUnverifiedLookupResults() - Method in class org.torproject.metrics.descriptorparser.utils.ReverseDomainNameResolver
Returns reverse domain name unverified lookup results.
getVerifiedLookupResults() - Method in class org.torproject.metrics.descriptorparser.utils.ReverseDomainNameResolver
Returns reverse domain name verified lookup results.

H

hashCode() - Method in class org.torproject.metrics.descriptorparser.utils.TorVersion
 

I

inc() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Increment the gauge by 1.
inc() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
Increment the gauge with no labels by 1.
inc(double) - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Increment the gauge by the given amount.
inc(double) - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
Increment the gauge with no labels by the given amount.
ISO_DATETIME_FORMAT - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
ISO_DATETIME_TAB_FORMAT - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
ISO_YEARMONTH_FORMAT - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 

L

listToArray(List) - Method in class org.torproject.metrics.descriptorparser.utils.DescriptorUtils
Convert a list to array object.
lookup(SortedSet<String>) - Method in class org.torproject.metrics.descriptorparser.utils.LookupService
Looks up address strings in the configured files and returns all lookup results.
LookupResult - Class in org.torproject.metrics.descriptorparser.utils
 
LookupResult() - Constructor for class org.torproject.metrics.descriptorparser.utils.LookupResult
 
LookupService - Class in org.torproject.metrics.descriptorparser.utils
 
LookupService(File) - Constructor for class org.torproject.metrics.descriptorparser.utils.LookupService
 

M

main(String[]) - Static method in class org.torproject.metrics.descriptorparser.Main
 
Main - Class in org.torproject.metrics.descriptorparser
 
matchingPrefix(TorVersion) - Method in class org.torproject.metrics.descriptorparser.utils.TorVersion
Return whether prefixes of this version and another version match.
MicrodescriptorParser - Class in org.torproject.metrics.descriptorparser.parsers
 
MicrodescriptorParser() - Constructor for class org.torproject.metrics.descriptorparser.parsers.MicrodescriptorParser
 

N

NEW_IN_SERIES - Enum constant in enum class org.torproject.metrics.descriptorparser.utils.TorVersionStatus
 
newChild() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
 
NO_TIME_AVAILABLE - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 

O

OBSOLETE - Enum constant in enum class org.torproject.metrics.descriptorparser.utils.TorVersionStatus
 
of(String) - Static method in class org.torproject.metrics.descriptorparser.utils.TorVersion
Return a TorVersion instance from the given tor version string that can be compared to other tor version strings, or null if the given string is not a valid tor version.
ofAbbreviation(String) - Static method in enum class org.torproject.metrics.descriptorparser.utils.TorVersionStatus
 
ONE_DAY - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
ONE_HOUR - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
ONE_MINUTE - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
ONE_SECOND - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
ONE_WEEK - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
OpenMetricsWriter - Class in org.torproject.metrics.descriptorparser.utils
 
OpenMetricsWriter() - Constructor for class org.torproject.metrics.descriptorparser.utils.OpenMetricsWriter
 
org.torproject.metrics.descriptorparser - package org.torproject.metrics.descriptorparser
Root package for this service.
org.torproject.metrics.descriptorparser.builders - package org.torproject.metrics.descriptorparser.builders
 
org.torproject.metrics.descriptorparser.parsers - package org.torproject.metrics.descriptorparser.parsers
 
org.torproject.metrics.descriptorparser.utils - package org.torproject.metrics.descriptorparser.utils
 

P

parse(String) - Static method in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
Parses the given string using DateTimeHelper.ISO_DATETIME_FORMAT as format and return the time in milliseconds since the epoch or DateTimeHelper.NO_TIME_AVAILABLE if the string cannot be parsed.
parse(String, String) - Static method in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
Parses the given string using the given format and return the time in milliseconds since the epoch or DateTimeHelper.NO_TIME_AVAILABLE if the string cannot be parsed.
processNetworkTotal(Gauge, Long, double) - Method in class org.torproject.metrics.descriptorparser.utils.OpenMetricsWriter
Process network totals instead of node metrics.
processRelayReqCountry(Gauge, String, String, String, Long, double) - Method in class org.torproject.metrics.descriptorparser.utils.OpenMetricsWriter
Process dirreq requests per Country.
processRequest(Gauge, String, String, String, Long, double) - Method in class org.torproject.metrics.descriptorparser.utils.OpenMetricsWriter
Process generic node metrics that use only fingerprint nickname and (optional) node type.
processRouterLabelmetrics(Gauge, String, String, String, String, String, String, Long, double) - Method in class org.torproject.metrics.descriptorparser.utils.OpenMetricsWriter
Process router dirreq request per country version and transport.
PsqlConnector - Class in org.torproject.metrics.descriptorparser.utils
 
PsqlConnector() - Constructor for class org.torproject.metrics.descriptorparser.utils.PsqlConnector
 
pushToGateway(CollectorRegistry) - Method in class org.torproject.metrics.descriptorparser.utils.OpenMetricsWriter
Push metrics to a push gateway.

R

RECOMMENDED - Enum constant in enum class org.torproject.metrics.descriptorparser.utils.TorVersionStatus
 
replaceValidUtf(String) - Static method in class org.torproject.metrics.descriptorparser.utils.FormattingUtils
De-escape only valid UTF and leave anything else escaped.
ReverseDomainNameResolver - Class in org.torproject.metrics.descriptorparser.utils
 
ReverseDomainNameResolver() - Constructor for class org.torproject.metrics.descriptorparser.utils.ReverseDomainNameResolver
 
ROUGHLY_FIVE_YEARS - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
ROUGHLY_ONE_MONTH - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
ROUGHLY_ONE_YEAR - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
ROUGHLY_SIX_MONTHS - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
ROUGHLY_THREE_MONTHS - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
RouterStatusBuilder - Class in org.torproject.metrics.descriptorparser.builders
 
RouterStatusBuilder() - Constructor for class org.torproject.metrics.descriptorparser.builders.RouterStatusBuilder
 
run() - Method in class org.torproject.metrics.descriptorparser.Main
 
run(String, Connection) - Method in class org.torproject.metrics.descriptorparser.parsers.BandwidthParser
Parse bandwidth files and add fields to the database.
run(String, Connection) - Method in class org.torproject.metrics.descriptorparser.parsers.BridgedbMetricsParser
Parse brdigedb metrics and add fields to the database.
run(String, Connection) - Method in class org.torproject.metrics.descriptorparser.parsers.BridgeNetworkStatusParser
Parse bridge network statuses and add fields to the database.
run(String, Connection) - Method in class org.torproject.metrics.descriptorparser.parsers.BridgePoolAssignmentsParser
Parse bridge pool assignments and add fields to the database.
run(String, Connection) - Method in class org.torproject.metrics.descriptorparser.parsers.BridgestrapParser
Parse bridgestrap statistics and add fields to the database.
run(String, Connection) - Method in class org.torproject.metrics.descriptorparser.parsers.ConsensusParser
Parse consensus files and add fields to the database.
run(String, Connection) - Method in class org.torproject.metrics.descriptorparser.parsers.ExitListParser
Parse exit lists and add fields to the database.
run(String, Connection) - Method in class org.torproject.metrics.descriptorparser.parsers.ExtraInfoDescriptorParser
Parse extra info descriptors and add fields to the database.
run(String, Connection) - Method in class org.torproject.metrics.descriptorparser.parsers.MicrodescriptorParser
Parse microdescriptors and add fields to the database.
run(String, Connection) - Method in class org.torproject.metrics.descriptorparser.parsers.ServerDescriptorParser
Parse server descriptors and add fields to the database.
run(String, Connection) - Method in class org.torproject.metrics.descriptorparser.parsers.VoteParser
Read votes from disk and add data to the DB.

S

ServerDescriptorParser - Class in org.torproject.metrics.descriptorparser.parsers
 
ServerDescriptorParser() - Constructor for class org.torproject.metrics.descriptorparser.parsers.ServerDescriptorParser
 
set(double) - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Set the gauge to the given value.
set(double) - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
Set the gauge with no labels to the given value.
setAddresses(Map<String, Long>) - Method in class org.torproject.metrics.descriptorparser.utils.ReverseDomainNameResolver
 
setAsName(String) - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
setAsNumber(String) - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
setCityName(String) - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
setCountryCode(String) - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
setCountryName(String) - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
setDuration() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Timer
Set the amount of time in seconds since Gauge.Child.startTimer() was called.
setLatitude(Float) - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
setLongitude(Float) - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
setRegionName(String) - Method in class org.torproject.metrics.descriptorparser.utils.LookupResult
 
setTimestampMs(Long) - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Optionally sets an external timestamp for the gauge.
setToCurrentTime() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Set the gauge to the current unixtime.
setToCurrentTime() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
Set the gauge with no labels to the current unixtime.
setToTime(Runnable) - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Executes runnable code (e.g.
setToTime(Runnable) - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
Executes runnable code (e.g.
setToTime(Callable<E>) - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Executes callable code (e.g.
setToTime(Callable<E>) - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
Executes callable code (e.g.
SIX_HOURS - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
startReverseDomainNameLookups() - Method in class org.torproject.metrics.descriptorparser.utils.ReverseDomainNameResolver
Starts reverse domain name lookups in one or more background threads and returns immediately.
startTimer() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge.Child
Start a timer to track a duration.
startTimer() - Method in class org.torproject.metrics.descriptorparser.utils.Gauge
Start a timer to track a duration, for the gauge with no labels.

T

TEN_DAYS - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
TEN_SECONDS - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
THREE_DAYS - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
TorVersion - Class in org.torproject.metrics.descriptorparser.utils
Helper class to compare Tor versions.
TorVersionStatus - Enum Class in org.torproject.metrics.descriptorparser.utils
 
toString() - Method in class org.torproject.metrics.descriptorparser.utils.TorVersion
 
toString() - Method in enum class org.torproject.metrics.descriptorparser.utils.TorVersionStatus
 
TWELVE_HOURS - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 
TWO_DAYS - Static variable in class org.torproject.metrics.descriptorparser.utils.DateTimeHelper
 

U

UNRECOMMENDED - Enum constant in enum class org.torproject.metrics.descriptorparser.utils.TorVersionStatus
 

V

valueOf(String) - Static method in enum class org.torproject.metrics.descriptorparser.utils.TorVersionStatus
Returns the enum constant of this class with the specified name.
values() - Static method in enum class org.torproject.metrics.descriptorparser.utils.TorVersionStatus
Returns an array containing the constants of this enum class, in the order they are declared.
VictoriaMetricsHttpConnectionFactory - Class in org.torproject.metrics.descriptorparser.utils
Redefine the connection to prometheus because we are using VictoriaMetrics so the URL strcture is hijacked.
VictoriaMetricsHttpConnectionFactory() - Constructor for class org.torproject.metrics.descriptorparser.utils.VictoriaMetricsHttpConnectionFactory
 
VoteParser - Class in org.torproject.metrics.descriptorparser.parsers
 
VoteParser() - Constructor for class org.torproject.metrics.descriptorparser.parsers.VoteParser
 
B C D E F G H I L M N O P R S T U V 
All Classes and Interfaces|All Packages|Constant Field Values