public class RouterImpl extends Object implements Router
| Modifier and Type | Field and Description |
|---|---|
protected RouterStatus |
status |
| Modifier | Constructor and Description |
|---|---|
protected |
RouterImpl(Directory directory,
RouterStatus status) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
exitPolicyAccepts(int port) |
boolean |
exitPolicyAccepts(IPv4Address address,
int port) |
IPv4Address |
getAddress() |
int |
getAverageBandwidth() |
int |
getBurstBandwidth() |
String |
getCountryCode() |
Descriptor |
getCurrentDescriptor() |
HexDigest |
getDescriptorDigest() |
int |
getDirectoryPort() |
int |
getEstimatedBandwidth() |
Set<String> |
getFamilyMembers() |
HexDigest |
getIdentityHash() |
TorPublicKey |
getIdentityKey() |
int |
getMeasuredBandwidth() |
HexDigest |
getMicrodescriptorDigest() |
String |
getNickname() |
byte[] |
getNTorOnionKey() |
int |
getObservedBandwidth() |
TorPublicKey |
getOnionKey() |
int |
getOnionPort() |
String |
getVersion() |
boolean |
hasBandwidth() |
boolean |
hasFlag(String flag) |
boolean |
isBadExit() |
boolean |
isDescriptorDownloadable() |
boolean |
isExit() |
boolean |
isFast() |
boolean |
isHibernating() |
boolean |
isHSDirectory() |
boolean |
isPossibleGuard() |
boolean |
isRunning() |
boolean |
isStable() |
boolean |
isValid() |
String |
toString() |
protected RouterStatus status
protected RouterImpl(Directory directory, RouterStatus status)
public boolean isDescriptorDownloadable()
isDescriptorDownloadable in interface Routerpublic String getVersion()
getVersion in interface Routerpublic HexDigest getDescriptorDigest()
getDescriptorDigest in interface Routerpublic IPv4Address getAddress()
getAddress in interface Routerpublic Descriptor getCurrentDescriptor()
getCurrentDescriptor in interface Routerpublic HexDigest getMicrodescriptorDigest()
getMicrodescriptorDigest in interface Routerpublic boolean hasFlag(String flag)
public boolean isHibernating()
isHibernating in interface Routerpublic boolean isPossibleGuard()
isPossibleGuard in interface Routerpublic boolean isHSDirectory()
isHSDirectory in interface Routerpublic int getDirectoryPort()
getDirectoryPort in interface Routerpublic HexDigest getIdentityHash()
getIdentityHash in interface Routerpublic TorPublicKey getIdentityKey()
getIdentityKey in interface Routerpublic String getNickname()
getNickname in interface Routerpublic int getOnionPort()
getOnionPort in interface Routerpublic TorPublicKey getOnionKey()
getOnionKey in interface Routerpublic byte[] getNTorOnionKey()
getNTorOnionKey in interface Routerpublic boolean hasBandwidth()
hasBandwidth in interface Routerpublic int getEstimatedBandwidth()
getEstimatedBandwidth in interface Routerpublic int getMeasuredBandwidth()
getMeasuredBandwidth in interface Routerpublic Set<String> getFamilyMembers()
getFamilyMembers in interface Routerpublic int getAverageBandwidth()
getAverageBandwidth in interface Routerpublic int getBurstBandwidth()
getBurstBandwidth in interface Routerpublic int getObservedBandwidth()
getObservedBandwidth in interface Routerpublic boolean exitPolicyAccepts(IPv4Address address, int port)
exitPolicyAccepts in interface Routerpublic boolean exitPolicyAccepts(int port)
exitPolicyAccepts in interface Routerpublic String getCountryCode()
getCountryCode in interface RouterCopyright © 2015. All rights reserved.