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
-
Field Summary
Fields inherited from class swim.remote.RemoteHost
hostContext, warpSocketContextFields inherited from class swim.system.AbstractTierBinding
CLOSED_PHASE, CLOSED_STATE, CLOSING_STATE, FAILED_STATE, FAILING_STATE, LOADED_PHASE, LOADED_STATE, LOADING_STATE, OPENED_PHASE, OPENED_STATE, OPENING_STATE, PHASE_MASK, PHASE_SHIFT, RECOVERING_STATE, STARTED_PHASE, STARTED_STATE, STARTING_STATE, STATE_MASK, status, STATUS, STOPPING_STATE, UNLOADING_STATE -
Constructor Summary
ConstructorsConstructorDescriptionRemoteHostClient(swim.uri.Uri baseUri, swim.io.IpInterface endpoint) RemoteHostClient(swim.uri.Uri baseUri, swim.io.IpInterface endpoint, swim.io.warp.WarpSettings warpSettings) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()protected swim.io.IpSocketRefconnectHttp(InetSocketAddress remoteAddress, swim.io.http.HttpClient client, swim.io.http.HttpSettings httpSettings) protected swim.io.IpSocketRefconnectHttps(InetSocketAddress remoteAddress, swim.io.http.HttpClient client, swim.io.http.HttpSettings httpSettings) voidvoidprotected voiddidReadClose(swim.ws.WsCloseFrame<?, ?> frame) protected voidvoidsetHostContext(swim.system.HostContext hostContext) protected voidwillOpen()Methods inherited from class swim.remote.RemoteHost
bindDownlink, bottomHost, cellAddress, cipherSuite, closeDownlink, closeDownlinks, closeUplinks, collectProfile, connectUplinks, debug, didBecome, didBecomeMaster, didBecomeSlave, didClose, didCloseDownlink, didCloseUplink, didDisconnect, didOpenDownlink, didOpenUplink, didPushMessage, didRead, didRead, didSecure, didTimeout, didUpdateMetrics, didUpgrade, didWrite, didWrite, disconnectUplinks, doRead, doWrite, edgeName, error, fail, flushMetrics, forbid, getNode, hostContext, hostUri, hostWrapper, idleTimeout, info, isConnected, isMaster, isPrimary, isRemote, isReplica, isSecure, isSlave, localAddress, localCertificates, localIdentity, localPrincipal, meshUri, nodes, onAuthedResponse, onAuthRequest, onCommandMessage, onDeauthedResponse, onDeauthRequest, onEventMessage, onLinkedResponse, onLinkRequest, onSyncedResponse, onSyncRequest, onUnknownEnvelope, onUnlinkedResponse, onUnlinkRequest, openDownlink, openMetaDownlink, openMetaHost, openMetaLane, openMetaLanes, openMetaNode, openMetaUplink, openNode, openNode, openReflectLanes, openUplink, openWarpUplink, part, partKey, policy, pushDown, pushUp, reconcileReceiveBacklog, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, reportDown, reportMetrics, resolve, routeDownlink, routeUplink, schedule, securityProtocol, setPrimary, setReplica, setWarpSocketContext, stage, store, tierContext, trace, unwrapHost, warn, warpSocketContext, willBecome, willClose, willConnect, willPushMessage, willSecureMethods inherited from class swim.system.AbstractTierBinding
activate, awaitStart, close, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload, willLoad, willStart, willStop, willUnloadMethods inherited from class swim.system.AbstractWarpRef
command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWs, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface swim.system.TierBinding
close, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload
-
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:
setHostContextin interfaceswim.system.HostBinding- Overrides:
setHostContextin classRemoteHost
-
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:
reconnectin classRemoteHost
-
didConnect
public void didConnect()- Specified by:
didConnectin interfaceswim.io.warp.WarpSocket- Overrides:
didConnectin classRemoteHost
-
willOpen
protected void willOpen()- Overrides:
willOpenin classswim.system.AbstractTierBinding
-
didReadClose
protected void didReadClose(swim.ws.WsCloseFrame<?, ?> frame) - Overrides:
didReadClosein classRemoteHost
-
didFail
- Specified by:
didFailin interfaceswim.system.TierBinding- Specified by:
didFailin interfaceswim.io.warp.WarpSocket- Overrides:
didFailin classRemoteHost
-