Package org.openremote.manager.gateway
Interface GatewayTunnelFactory
- All Known Implementing Classes:
JSchGatewayTunnelFactory
public interface GatewayTunnelFactory
This interface is an abstraction for starting/stopping gateway tunnels and is used by edge gateway instances.
-
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)
-
Method Details
-
startTunnel
void startTunnel(org.openremote.model.gateway.GatewayTunnelStartRequestEvent startRequestEvent) throws Exception Start a tunnel for the requestedGatewayTunnelInfo- Throws:
jakarta.ws.rs.BadRequestException- IfGatewayTunnelInfois invalidjakarta.ws.rs.ServerErrorException- If theGatewayTunnelInfois valid but the tunnel could not be createdException
-
stopTunnel
- Throws:
Exception
-
stopAll
void stopAll()Terminate all known tunnel sessions; should perform try/catch to prevent any exceptions bubbling and to ensure termination of each session is attempted.
-