anon.tor
Class TorAnonServerDescription

java.lang.Object
  extended by anon.tor.TorAnonServerDescription
All Implemented Interfaces:
AnonServerDescription

public class TorAnonServerDescription
extends java.lang.Object
implements AnonServerDescription


Field Summary
private  boolean m_bStartCircuitsAtStartup
           
private  boolean m_bUseInfoService
           
private  int m_iMaxConnectionsPerRoute
           
private  int m_iMaxRouteLen
           
private  int m_iMinRouteLen
           
private  int m_iTorDirServerPort
           
private  java.lang.String m_strTorDirServerAddr
           
 
Constructor Summary
TorAnonServerDescription()
          Constructor
TorAnonServerDescription(boolean bUseInfoService)
          Constructor
TorAnonServerDescription(boolean bUseInfoService, boolean bStartCircuitsAtStartup)
          Constructor
TorAnonServerDescription(java.lang.String torDirServerAddr, int torDirServerPort, boolean bStartCircuitsAtStartup)
          Constructor
 
Method Summary
 int getMaxConnectionsPerRoute()
           
 int getMaxRouteLen()
           
 int getMinRouteLen()
           
 java.lang.String getTorDirServerAddr()
          gets the address of the tor directory server
 int getTorDirServerPort()
          gets the port of the tor directory server
 void setMaxConnectionsPerRoute(int i)
           
 void setMaxRouteLen(int i)
           
 void setMinRouteLen(int i)
           
 void setTorDirServer(java.lang.String hostname, int port)
           
 boolean startCircuitsAtStartup()
          gets if all circuits are created on startup
 boolean useInfoService()
          gets if the infoservice is used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_iTorDirServerPort

private int m_iTorDirServerPort

m_strTorDirServerAddr

private java.lang.String m_strTorDirServerAddr

m_bUseInfoService

private final boolean m_bUseInfoService

m_bStartCircuitsAtStartup

private final boolean m_bStartCircuitsAtStartup

m_iMaxRouteLen

private int m_iMaxRouteLen

m_iMinRouteLen

private int m_iMinRouteLen

m_iMaxConnectionsPerRoute

private int m_iMaxConnectionsPerRoute
Constructor Detail

TorAnonServerDescription

public TorAnonServerDescription()
Constructor


TorAnonServerDescription

public TorAnonServerDescription(boolean bUseInfoService)
Constructor

Parameters:
bUseInfoService - use the info service

TorAnonServerDescription

public TorAnonServerDescription(boolean bUseInfoService,
                                boolean bStartCircuitsAtStartup)
Constructor

Parameters:
bUseInfoService - use the info service
bStartCircuitsAtStartup - start all circuits at startup

TorAnonServerDescription

public TorAnonServerDescription(java.lang.String torDirServerAddr,
                                int torDirServerPort,
                                boolean bStartCircuitsAtStartup)
Constructor

Parameters:
torDirServerAddr - address of a tor directory server
torDirServerPort - port of the tor directory server
bStartCircuitsAtStartup - start all circuits at startup
Method Detail

setTorDirServer

public void setTorDirServer(java.lang.String hostname,
                            int port)

getTorDirServerAddr

public java.lang.String getTorDirServerAddr()
gets the address of the tor directory server

Returns:
IP address

getTorDirServerPort

public int getTorDirServerPort()
gets the port of the tor directory server

Returns:
port

useInfoService

public boolean useInfoService()
gets if the infoservice is used

Returns:

startCircuitsAtStartup

public boolean startCircuitsAtStartup()
gets if all circuits are created on startup

Returns:

setMaxRouteLen

public void setMaxRouteLen(int i)

getMaxRouteLen

public int getMaxRouteLen()

setMinRouteLen

public void setMinRouteLen(int i)

getMinRouteLen

public int getMinRouteLen()

setMaxConnectionsPerRoute

public void setMaxConnectionsPerRoute(int i)

getMaxConnectionsPerRoute

public int getMaxConnectionsPerRoute()