Interface PortForwardable<H,​L,​I,​O>

All Known Subinterfaces:
PodResource<T,​D>, ServiceResource<T,​D>
All Known Implementing Classes:
PodOperationsImpl, ServiceOperationsImpl

public interface PortForwardable<H,​L,​I,​O>
  • Method Summary

    Modifier and Type Method Description
    L portForward​(int port)
    Create a server socket on a random local port.
    L portForward​(int port, int localPort)
    Create a server socket on a specified local port.
    H portForward​(int port, I in, O out)
    Connects directly the remote port to the given input and output channels.
  • Method Details

    • portForward

      H portForward​(int port, I in, O out)
      Connects directly the remote port to the given input and output channels.
      Parameters:
      port - port as integer
      in - input channel
      out - output channel
      Returns:
      returns port forward interface
    • portForward

      L portForward​(int port, int localPort)
      Create a server socket on a specified local port. Every connection to the local port will be forwarded to the remote port on the resource.
      Parameters:
      port - port in integer
      localPort - local port in integer
      Returns:
      returns local port forward interface
    • portForward

      L portForward​(int port)
      Create a server socket on a random local port. Every connection to the local port will be forwarded to the remote port on the resource. The random local port can be retrieved from the returned object.
      Parameters:
      port - port as integer
      Returns:
      returns local port