Package org.openremote.manager.gateway
Class JSchGatewayTunnelFactory
java.lang.Object
org.openremote.manager.gateway.JSchGatewayTunnelFactory
- All Implemented Interfaces:
GatewayTunnelFactory
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidstartTunnel(org.openremote.model.gateway.GatewayTunnelStartRequestEvent startRequestEvent) Start a tunnel for the requestedGatewayTunnelInfovoidstopAll()Terminate all known tunnel sessions; should perform try/catch to prevent any exceptions bubbling and to ensure termination of each session is attempted.voidstopTunnel(org.openremote.model.gateway.GatewayTunnelInfo tunnelInfo)
-
Field Details
-
localhostRewrite
-
sshKeyFile
-
jSch
protected com.jcraft.jsch.JSch jSch -
sessionMap
protected final Map<org.openremote.model.gateway.GatewayTunnelInfo,com.jcraft.jsch.Session> sessionMap
-
-
Constructor Details
-
JSchGatewayTunnelFactory
-
-
Method Details
-
startTunnel
public void startTunnel(org.openremote.model.gateway.GatewayTunnelStartRequestEvent startRequestEvent) throws Exception Description copied from interface:GatewayTunnelFactoryStart a tunnel for the requestedGatewayTunnelInfo- Specified by:
startTunnelin interfaceGatewayTunnelFactory- Throws:
Exception
-
stopTunnel
- Specified by:
stopTunnelin interfaceGatewayTunnelFactory- Throws:
Exception
-
stopAll
public void stopAll()Description copied from interface:GatewayTunnelFactoryTerminate all known tunnel sessions; should perform try/catch to prevent any exceptions bubbling and to ensure termination of each session is attempted.- Specified by:
stopAllin interfaceGatewayTunnelFactory
-