|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.i2ptunnel.TunnelController
public class TunnelController
Coordinate the runtime operation and configuration of a tunnel. These objects are bundled together under a TunnelControllerGroup where the entire group is stored / loaded from a single config file.
Constructor Summary | |
---|---|
TunnelController(Properties config,
String prefix)
Create a new controller for a tunnel out of the specific config options. |
|
TunnelController(Properties config,
String prefix,
boolean createKey)
|
Method Summary | |
---|---|
List<String> |
clearMessages()
Pull off any messages that the I2PTunnel has produced |
String |
getClientOptions()
|
Properties |
getConfig(String prefix)
|
String |
getDescription()
|
String |
getI2CPHost()
|
String |
getI2CPPort()
|
boolean |
getIsRunning()
|
boolean |
getIsStandby()
if running but no open sessions, we are in standby |
boolean |
getIsStarting()
|
String |
getListenOnInterface()
|
String |
getListenPort()
|
String |
getMyDestHashBase32()
|
String |
getMyDestination()
|
String |
getName()
|
boolean |
getPersistentClientKey()
|
String |
getPrivKeyFile()
|
String |
getProxyList()
|
String |
getSharedClient()
default true |
String |
getSpoofedHost()
|
boolean |
getStartOnLoad()
default true |
void |
getSummary(StringBuilder buf)
|
String |
getTargetDestination()
|
String |
getTargetHost()
|
String |
getTargetPort()
|
String |
getType()
|
void |
log(String s)
|
void |
restartTunnel()
|
void |
setConfig(Properties config,
String prefix)
|
void |
startTunnel()
Start up the tunnel (if it isn't already running) |
void |
startTunnelBackground()
|
void |
stopTunnel()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TunnelController(Properties config, String prefix)
config
- original key=value mappingprefix
- beginning of key values that are relevent to this tunnelpublic TunnelController(Properties config, String prefix, boolean createKey)
createKey
- for servers, whether we want to create a brand new destination
with private keys at the location specified or not (does not
overwrite existing ones)Method Detail |
---|
public void startTunnelBackground()
public void startTunnel()
public void stopTunnel()
public void restartTunnel()
public void setConfig(Properties config, String prefix)
public Properties getConfig(String prefix)
public String getType()
public String getName()
public String getDescription()
public String getI2CPHost()
public String getI2CPPort()
public String getClientOptions()
public String getListenOnInterface()
public String getTargetHost()
public String getTargetPort()
public String getSpoofedHost()
public String getPrivKeyFile()
public String getListenPort()
public String getTargetDestination()
public String getProxyList()
public String getSharedClient()
public boolean getStartOnLoad()
public boolean getPersistentClientKey()
public String getMyDestination()
public String getMyDestHashBase32()
public boolean getIsRunning()
public boolean getIsStarting()
public boolean getIsStandby()
public void getSummary(StringBuilder buf)
public void log(String s)
log
in interface Logging
public List<String> clearMessages()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |