Class JSchGatewayTunnelFactory

java.lang.Object
org.openremote.manager.gateway.JSchGatewayTunnelFactory
All Implemented Interfaces:
GatewayTunnelFactory

public class JSchGatewayTunnelFactory extends Object implements GatewayTunnelFactory
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected com.jcraft.jsch.JSch
     
    protected String
     
    protected final Map<org.openremote.model.gateway.GatewayTunnelInfo,com.jcraft.jsch.Session>
     
    protected File
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JSchGatewayTunnelFactory(File sshKeyFile, String localhostRewrite)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    startTunnel(org.openremote.model.gateway.GatewayTunnelStartRequestEvent startRequestEvent)
    Start a tunnel for the requested GatewayTunnelInfo
    void
    Terminate all known tunnel sessions; should perform try/catch to prevent any exceptions bubbling and to ensure termination of each session is attempted.
    void
    stopTunnel(org.openremote.model.gateway.GatewayTunnelInfo tunnelInfo)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • localhostRewrite

      protected String localhostRewrite
    • sshKeyFile

      protected File 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

      public JSchGatewayTunnelFactory(File sshKeyFile, String localhostRewrite)
  • Method Details