net.i2p.i2ptunnel
public class TunnelControllerGroup extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static String |
DEFAULT_CONFIG_FILE |
Modifier and Type | Method and Description |
---|---|
(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)
|
List<String> |
clearAllMessages()
Fetch all outstanding messages from any of the known tunnels
|
List<TunnelController> |
getControllers()
Retrieve a list of tunnels known
|
static TunnelControllerGroup |
getInstance() |
void |
loadControllers(String configFile)
Load up all of the tunnels configured in the given file (but do not start
them)
|
static void |
main(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() |
List<String> |
removeController(TunnelController controller)
Stop and remove the given tunnel
|
List<String> |
restartAllControllers()
Restart all tunnels
|
void |
saveConfig()
Save the configuration of all known tunnels to the default config
file
|
void |
saveConfig(String configFile)
Save the configuration of all known tunnels to the given file
|
List<String> |
startAllControllers()
Start all tunnels
|
List<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)
|
static final String DEFAULT_CONFIG_FILE
public static TunnelControllerGroup getInstance()
public static void main(String[] args)
public void loadControllers(String configFile)
public void reloadControllers()
public void unloadControllers()
public void addController(TunnelController controller)
public List<String> removeController(TunnelController controller)
public List<String> stopAllControllers()
public List<String> startAllControllers()
public List<String> restartAllControllers()
public List<String> clearAllMessages()
public void saveConfig() throws IOException
IOException
public void saveConfig(String configFile) throws IOException
IOException
public List<TunnelController> getControllers()
void acquire(TunnelController controller, I2PSession session)
void release(TunnelController controller, I2PSession session)