public class BridgeStatusGenerator
extends java.lang.Object
Constructor and Description |
---|
BridgeStatusGenerator() |
Modifier and Type | Method and Description |
---|---|
static MicroblogStatus |
generateAgeTweet(Bridge bridge)
Returns a tweet about how long the bridge has been contributing to the Tor
network.
|
static MicroblogStatus |
generateBandwidthTweet(Bridge bridge)
Returns a tweet about how much bandwidth a bridge has been contributing to
the Tor network.
|
public static MicroblogStatus generateAgeTweet(Bridge bridge) throws OnionooMissingInformationException
bridge
- A BridgeDetails object for the relay to have a tweet generated.OnionooMissingInformationException
- when information required to generate the tweet is missing from
the BridgeDetails object (probably because Onionoo did not have
it)public static MicroblogStatus generateBandwidthTweet(Bridge bridge) throws OnionooMissingInformationException
bridge
- A BridgeDetails object for the relay to have a tweet generated.OnionooMissingInformationException
- when information required to generate the tweet is missing from
the BridgeDetails object (probably because Onionoo did not have
it)