|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.i2ptunnel.TunnelControllerGroup
public class TunnelControllerGroup
Coordinate a set of tunnels within the JVM, loading and storing their config to disk, and building new ones as requested.
Field Summary | |
---|---|
(package private) static java.lang.String |
DEFAULT_CONFIG_FILE
|
Method Summary | |
---|---|
(package private) void |
acquire(TunnelController controller,
I2PSession session)
Note the fact that the controller is using the session so that it isn't destroyed prematurely. |
void |
addController(TunnelController controller)
Add the given tunnel to the set of known controllers (but dont add it to a config file or start it or anything) |
java.util.List |
clearAllMessages()
Fetch all outstanding messages from any of the known tunnels |
java.util.List |
getControllers()
Retrieve a list of tunnels known |
static TunnelControllerGroup |
getInstance()
|
void |
loadControllers(java.lang.String configFile)
Load up all of the tunnels configured in the given file (but do not start them) |
static void |
main(java.lang.String[] args)
|
(package private) void |
release(TunnelController controller,
I2PSession session)
Note the fact that the controller is no longer using the session, and if no other controllers are using it, destroy the session. |
void |
reloadControllers()
|
java.util.List |
removeController(TunnelController controller)
Stop and remove the given tunnel |
java.util.List |
restartAllControllers()
Restart all tunnels |
void |
saveConfig()
Save the configuration of all known tunnels to the default config file |
void |
saveConfig(java.lang.String configFile)
Save the configuration of all known tunnels to the given file |
java.util.List |
startAllControllers()
Start all tunnels |
java.util.List |
stopAllControllers()
Stop all tunnels |
void |
unloadControllers()
Stop and remove reference to all known tunnels (but dont delete any config file or do other silly things) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final java.lang.String DEFAULT_CONFIG_FILE
Method Detail |
---|
public static TunnelControllerGroup getInstance()
public static void main(java.lang.String[] args)
public void loadControllers(java.lang.String configFile)
public void reloadControllers()
public void unloadControllers()
public void addController(TunnelController controller)
public java.util.List removeController(TunnelController controller)
public java.util.List stopAllControllers()
public java.util.List startAllControllers()
public java.util.List restartAllControllers()
public java.util.List clearAllMessages()
public void saveConfig()
public void saveConfig(java.lang.String configFile)
public java.util.List getControllers()
void acquire(TunnelController controller, I2PSession session)
void release(TunnelController controller, I2PSession session)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |