Package org.ametys.plugins.agent
Class BlueMindAgentServerLauncher
- java.lang.Object
-
- org.ametys.plugins.agent.BlueMindAgentServerLauncher
-
- All Implemented Interfaces:
Init
public class BlueMindAgentServerLauncher extends Object implements Init
Launch the bluemind agent server, with port forwarding plugin
-
-
Field Summary
Fields Modifier and Type Field Description private static Set<net.bluemind.agent.server.Command>
_activeCommandlist
private static org.slf4j.Logger
LOGGER
static String
ROLE
Avalon Role
-
Constructor Summary
Constructors Constructor Description BlueMindAgentServerLauncher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
cancelAllCommands()
private static net.bluemind.agent.server.Command
getPortForwardingCommand(String agentName, String localPort, String host, String targetPort)
void
init()
Method to be implemented by user Init class.private static void
startPortForwarding()
private static CompletableFuture<Void>
startServer(String listenAddress, int listenPort)
-
-
-
Field Detail
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
_activeCommandlist
private static Set<net.bluemind.agent.server.Command> _activeCommandlist
-
-
Constructor Detail
-
BlueMindAgentServerLauncher
public BlueMindAgentServerLauncher()
-
-
Method Detail
-
init
public void init() throws Exception
Description copied from interface:Init
Method to be implemented by user Init class. Here you should manage the business part of your application init. As an Avalon component, class extending this interface have access to all Cocoon-managed components, all plugins, ...
-
cancelAllCommands
private void cancelAllCommands()
-
startServer
private static CompletableFuture<Void> startServer(String listenAddress, int listenPort)
-
startPortForwarding
private static void startPortForwarding()
-
getPortForwardingCommand
private static net.bluemind.agent.server.Command getPortForwardingCommand(String agentName, String localPort, String host, String targetPort)
-
-