Package | Description |
---|---|
org.torproject.metrics.bot.microblog |
Generic microblogging interfaces and utilities.
|
org.torproject.metrics.bot.tor |
This package contains classes representing Tor network concepts (relays,
bridges, flags, etc.).
|
Modifier and Type | Method and Description |
---|---|
static MicroblogStatus |
RelayStatusGenerator.generateAgeTweet(Relay relay)
Returns a tweet about how long the relay has been contributing to the Tor
network.
|
static MicroblogStatus |
RelayStatusGenerator.generateBandwidthTweet(Relay relay)
Returns a tweet about how much bandwidth a relay is contributing to the Tor
network.
|
Modifier and Type | Method and Description |
---|---|
static MicroblogStatus |
RelayLocationStatusGenerator.generateAsBandwidthTweet(java.util.List<Relay> relays)
Returns a tweet about how much bandwidth relays in a certain AS are
contributing to the Tor network.
|
static MicroblogStatus |
RelayLocationStatusGenerator.generateCountryBandwidthTweet(java.util.List<Relay> relays)
Returns a tweet about how much bandwidth relays in a certain country are
contributing to the Tor network.
|
static java.lang.String |
RelayLocationStatusGenerator.generateLocationTweetText(java.lang.String location,
java.util.List<Relay> relays,
java.lang.String searchQuery)
Helper to produce bandwidth contribution tweets for locations.
|
static MicroblogStatus |
NetworkStatusGenerator.generateMapTweet(java.util.List<Relay> relays)
Generates a tweet about the total bandwidth being made available by Tor
relays.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<Relay> |
RelayAggregateImpl.relays |
Modifier and Type | Method and Description |
---|---|
Relay |
Network.getRandomRunningRelay()
Get a random relay from the Tor network.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Relay> |
Network.getRunningRelays() |
java.util.List<Relay> |
Network.getRunningRelaysForAs()
Returns a list of running relay details for a random AS.
|
java.util.List<Relay> |
Network.getRunningRelaysForAs(java.lang.String as)
Returns a list of running relays details for a chosen AS.
|
java.util.List<Relay> |
Network.getRunningRelaysForCountry()
Returns a list of relay details for a random country.
|
java.util.List<Relay> |
Network.getRunningRelaysForCountry(java.lang.String country)
Returns a list of relay details for a chosen country.
|
Constructor and Description |
---|
CountryImpl(java.util.List<Relay> relays) |