Module swim.remote
Package swim.remote

Class RemoteHostClient

java.lang.Object
swim.system.AbstractWarpRef
swim.system.AbstractTierBinding
swim.remote.RemoteHost
swim.remote.RemoteHostClient
All Implemented Interfaces:
swim.api.downlink.DownlinkFactory, swim.api.ref.WarpRef, swim.concurrent.StayContext, swim.io.warp.WarpSocket, swim.system.CellBinding, swim.system.CellContext, swim.system.HostBinding, swim.system.TierBinding, swim.util.Log

public class RemoteHostClient extends RemoteHost
  • Constructor Details

    • RemoteHostClient

      public RemoteHostClient(swim.uri.Uri baseUri, swim.io.IpInterface endpoint, swim.io.warp.WarpSettings warpSettings)
    • RemoteHostClient

      public RemoteHostClient(swim.uri.Uri baseUri, swim.io.IpInterface endpoint)
  • Method Details

    • setHostContext

      public void setHostContext(swim.system.HostContext hostContext)
      Specified by:
      setHostContext in interface swim.system.HostBinding
      Overrides:
      setHostContext in class RemoteHost
    • connect

      public void connect()
    • connectHttp

      protected swim.io.IpSocketRef connectHttp(InetSocketAddress remoteAddress, swim.io.http.HttpClient client, swim.io.http.HttpSettings httpSettings)
    • connectHttps

      protected swim.io.IpSocketRef connectHttps(InetSocketAddress remoteAddress, swim.io.http.HttpClient client, swim.io.http.HttpSettings httpSettings)
    • reconnect

      protected void reconnect()
      Overrides:
      reconnect in class RemoteHost
    • didConnect

      public void didConnect()
      Specified by:
      didConnect in interface swim.io.warp.WarpSocket
      Overrides:
      didConnect in class RemoteHost
    • willOpen

      protected void willOpen()
      Overrides:
      willOpen in class swim.system.AbstractTierBinding
    • didReadClose

      protected void didReadClose(swim.ws.WsCloseFrame<?,?> frame)
      Overrides:
      didReadClose in class RemoteHost
    • didFail

      public void didFail(Throwable error)
      Specified by:
      didFail in interface swim.system.TierBinding
      Specified by:
      didFail in interface swim.io.warp.WarpSocket
      Overrides:
      didFail in class RemoteHost