|
||||||||||
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. Warning - this is a singleton. Todo: fix
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<java.lang.String> |
clearAllMessages()
Fetch all outstanding messages from any of the known tunnels |
java.util.List<TunnelController> |
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<java.lang.String> |
removeController(TunnelController controller)
Stop and remove the given tunnel |
java.util.List<java.lang.String> |
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<java.lang.String> |
startAllControllers()
Start all tunnels |
java.util.List<java.lang.String> |
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<java.lang.String> removeController(TunnelController controller)
public java.util.List<java.lang.String> stopAllControllers()
public java.util.List<java.lang.String> startAllControllers()
public java.util.List<java.lang.String> restartAllControllers()
public java.util.List<java.lang.String> clearAllMessages()
public void saveConfig()
public void saveConfig(java.lang.String configFile)
public java.util.List<TunnelController> 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 |