net.i2p.router
public class TunnelPoolSettings extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
DEFAULT_ALLOW_ZERO_HOP |
static int |
DEFAULT_BACKUP_QUANTITY |
static int |
DEFAULT_DURATION |
static int |
DEFAULT_IP_RESTRICTION |
static int |
DEFAULT_LENGTH |
static int |
DEFAULT_LENGTH_VARIANCE |
static int |
DEFAULT_QUANTITY |
static String |
PREFIX_DEFAULT
prefix used to override the router's defaults for clients
|
static String |
PREFIX_INBOUND_EXPLORATORY
prefix used to configure the inbound exploratory pool
|
static String |
PREFIX_OUTBOUND_EXPLORATORY
prefix used to configure the outbound exploratory pool
|
static String |
PROP_ALLOW_ZERO_HOP |
static String |
PROP_BACKUP_QUANTITY |
static String |
PROP_DURATION |
static String |
PROP_IP_RESTRICTION |
static String |
PROP_LENGTH |
static String |
PROP_LENGTH_VARIANCE |
static String |
PROP_NICKNAME |
static String |
PROP_QUANTITY |
Constructor and Description |
---|
TunnelPoolSettings() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowZeroHop()
if there are no tunnels to build with, will this pool allow 0 hop tunnels?
|
int |
getBackupQuantity()
how many backup tunnels should be kept waiting in the wings
|
Hash |
getDestination()
what destination is this a tunnel for (or null if none)
|
String |
getDestinationNickname()
what user supplied name was given to the client connected (can be null)
|
int |
getIPRestriction()
How many bytes to match to determine if a router's IP is too close to another's
to be in the same tunnel
(1-4, 0 to disable)
|
int |
getLength()
how many remote hops should be in the tunnel
|
int |
getLengthOverride() |
int |
getLengthVariance()
how should the length be varied.
|
int |
getQuantity()
how many tunnels should be available at all times
|
Hash |
getRandomKey()
random key used for peer ordering
|
Properties |
getUnknownOptions() |
boolean |
isExploratory()
is this an exploratory tunnel (or a client tunnel)
|
boolean |
isInbound()
is this an inbound tunnel?
|
void |
readFromProperties(String prefix,
Properties props) |
void |
setAllowZeroHop(boolean ok) |
void |
setBackupQuantity(int quantity) |
void |
setDestination(Hash dest) |
void |
setDestinationNickname(String name) |
void |
setIPRestriction(int b) |
void |
setIsExploratory(boolean isExploratory) |
void |
setIsInbound(boolean isInbound) |
void |
setLength(int length) |
void |
setLengthOverride(int variance) |
void |
setLengthVariance(int variance) |
void |
setQuantity(int quantity) |
String |
toString() |
void |
writeToProperties(String prefix,
Properties props) |
public static final String PREFIX_DEFAULT
public static final String PREFIX_INBOUND_EXPLORATORY
public static final String PREFIX_OUTBOUND_EXPLORATORY
public static final String PROP_NICKNAME
public static final String PROP_QUANTITY
public static final String PROP_BACKUP_QUANTITY
public static final String PROP_DURATION
public static final String PROP_LENGTH
public static final String PROP_LENGTH_VARIANCE
public static final String PROP_ALLOW_ZERO_HOP
public static final String PROP_IP_RESTRICTION
public static final int DEFAULT_QUANTITY
public static final int DEFAULT_BACKUP_QUANTITY
public static final int DEFAULT_DURATION
public static final int DEFAULT_LENGTH
public static final int DEFAULT_LENGTH_VARIANCE
public static final boolean DEFAULT_ALLOW_ZERO_HOP
public static final int DEFAULT_IP_RESTRICTION
public int getQuantity()
public void setQuantity(int quantity)
public int getBackupQuantity()
public void setBackupQuantity(int quantity)
public int getLength()
public void setLength(int length)
public boolean getAllowZeroHop()
public void setAllowZeroHop(boolean ok)
public int getLengthVariance()
public void setLengthVariance(int variance)
public int getLengthOverride()
public void setLengthOverride(int variance)
public boolean isInbound()
public void setIsInbound(boolean isInbound)
public boolean isExploratory()
public void setIsExploratory(boolean isExploratory)
public Hash getDestination()
public void setDestination(Hash dest)
public Hash getRandomKey()
public String getDestinationNickname()
public void setDestinationNickname(String name)
public int getIPRestriction()
public void setIPRestriction(int b)
public Properties getUnknownOptions()
public void readFromProperties(String prefix, Properties props)
public void writeToProperties(String prefix, Properties props)