public interface RouterDescriptor extends Descriptor
Descriptor.CacheLocation| Modifier and Type | Method and Description |
|---|---|
boolean |
allowsSingleHopExits()
Return true if this router allows single-hop circuits to make exit connections.
|
boolean |
cachesExtraInfo()
Returns true if this router is a directory cache that provides extra-info
documents.
|
int |
getAverageBandwidth()
Returns the volume of traffic in bytes per second that this router
is willing to sustain over long periods.
|
int |
getBurstBandwidth()
Returns the volume of traffic in bytes per second that this router
is willing to sustain in very short intervals.
|
String |
getContact()
Return a string which describes how to contact the server's administrator.
|
int |
getDirectoryPort()
Return the port on which this router provides directory related
HTTP connections, or 0 if this node does not provide directory
services.
|
ExitPolicy |
getExitPolicy() |
HexDigest |
getExtraInfoDigest()
Return a digest of this router's extra-info document, or null if not
available.
|
HexDigest |
getFingerprint()
Return a fingerprint of the public key of this router.
|
TorPublicKey |
getIdentityKey()
Return the long-term identity and signing public key for this
router.
|
String |
getNickname()
Returns the nickname of this router.
|
int |
getObservedBandwidth()
Returns the volume of traffic in bytes per second that this router
is estimated to be able to sustain.
|
String |
getPlatform()
Return a human-readable string describing the system on which this router
is running, including possibly the operating system version and Tor
implementation version.
|
Timestamp |
getPublishedTime()
Return the time this descriptor was generated.
|
int |
getUptime()
Return the number of seconds this router has been running.
|
boolean |
isHibernating()
Return true if this router is currently hibernating and not suitable for
building new circuits.
|
boolean |
isHiddenServiceDirectory()
Returns true if this router stores and serves hidden service descriptors.
|
boolean |
isNewerThan(RouterDescriptor other)
Compare two router descriptors and return true if this router descriptor was published
at a later time than the
other descriptor. |
boolean |
supportsEventDNS()
Return true if this router is running a version of Tor which supports the
newer enhanced DNS logic.
|
exitPolicyAccepts, exitPolicyAccepts, getAddress, getBodyLength, getCacheLocation, getDescriptorDigest, getFamilyMembers, getLastListed, getNTorOnionKey, getOnionKey, getRouterPort, setCacheLocation, setLastListedgetRawDocumentBytes, getRawDocumentData, isValidDocumentString getNickname()
int getDirectoryPort()
int getAverageBandwidth()
int getBurstBandwidth()
int getObservedBandwidth()
String getPlatform()
Timestamp getPublishedTime()
HexDigest getFingerprint()
int getUptime()
TorPublicKey getIdentityKey()
String getContact()
boolean isHibernating()
boolean isHiddenServiceDirectory()
boolean supportsEventDNS()
boolean cachesExtraInfo()
HexDigest getExtraInfoDigest()
boolean allowsSingleHopExits()
boolean isNewerThan(RouterDescriptor other)
other descriptor.other - Another router descriptor to compare.otherExitPolicy getExitPolicy()
Copyright © 2015. All rights reserved.