- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.client.ClientRuntime
-
- All Implemented Interfaces:
swim.api.client.ClientContext,swim.api.downlink.DownlinkFactory,swim.api.ref.SwimRef,swim.runtime.CellContext,swim.runtime.RootContext,swim.runtime.TierContext,swim.store.StoreContext,swim.util.Log
public class ClientRuntime extends swim.runtime.AbstractSwimRef implements swim.api.client.ClientContext, swim.runtime.RootContext
-
-
Constructor Summary
Constructors Constructor Description ClientRuntime()ClientRuntime(swim.concurrent.Theater stage)ClientRuntime(swim.concurrent.Theater stage, swim.io.http.HttpSettings settings)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description swim.api.policy.PolicyDirective<swim.api.auth.Identity>authenticate(swim.api.auth.Credentials credentials)swim.runtime.LinkBindingbindDownlink(swim.api.downlink.Downlink downlink)voidclose()voidcloseDownlink(swim.runtime.LinkBinding link)swim.runtime.HostBindingcreateHost(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri)swim.runtime.MeshBindingcreateMesh(swim.uri.Uri meshUri)swim.runtime.NodeBindingcreateNode(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri)swim.runtime.PartBindingcreatePart(swim.uri.Uri meshUri, swim.structure.Value partKey)swim.api.data.DataFactorydata()voiddebug(Object message)voiddidLoad()voiddidOpen()voiddidStart()voiddidStop()voiddidUnload()swim.io.http.HttpEndpointendpoint()voiderror(Object message)voidhttpDownlink(swim.runtime.HttpBinding http)voidinfo(Object message)swim.runtime.HostBindinginjectHost(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.runtime.HostBinding host)swim.runtime.LaneBindinginjectLane(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.runtime.LaneBinding lane)swim.store.ListDataBindinginjectListData(swim.store.ListDataBinding dataBinding)swim.store.MapDataBindinginjectMapData(swim.store.MapDataBinding dataBinding)swim.runtime.MeshBindinginjectMesh(swim.uri.Uri meshUri, swim.runtime.MeshBinding mesh)swim.runtime.NodeBindinginjectNode(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.runtime.NodeBinding node)swim.runtime.PartBindinginjectPart(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.runtime.PartBinding part)<S> swim.store.SpatialDataBinding<S>injectSpatialData(swim.store.SpatialDataBinding<S> dataBinding)swim.store.ValueDataBindinginjectValueData(swim.store.ValueDataBinding dataBinding)swim.uri.UrimeshUri()voidopenDownlink(swim.runtime.LinkBinding link)swim.store.ListDataBindingopenListData(swim.structure.Value name)swim.store.MapDataBindingopenMapData(swim.structure.Value name)<S> swim.store.SpatialDataBinding<S>openSpatialData(swim.structure.Value name, swim.math.Z2Form<S> shapeForm)swim.store.ValueDataBindingopenValueData(swim.structure.Value name)swim.api.policy.Policypolicy()voidpushDown(swim.runtime.PushRequest pushRequest)swim.runtime.RouterContextrouter()swim.concurrent.Scheduleschedule()voidsetRouter(swim.api.router.Router router)swim.concurrent.Stagestage()voidstart()voidstop()voidtrace(Object message)voidwarn(Object message)voidwillClose()voidwillLoad()voidwillOpen()voidwillStart()voidwillStop()voidwillUnload()-
Methods inherited from class swim.runtime.AbstractSwimRef
command, command, command, command, command, command, command, command, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRef
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
router
public final swim.runtime.RouterContext router()
- Specified by:
routerin interfaceswim.api.client.ClientContext
-
setRouter
public void setRouter(swim.api.router.Router router)
- Specified by:
setRouterin interfaceswim.api.client.ClientContext
-
start
public void start()
- Specified by:
startin interfaceswim.api.client.ClientContext
-
stop
public void stop()
- Specified by:
stopin interfaceswim.api.client.ClientContext
-
meshUri
public swim.uri.Uri meshUri()
- Specified by:
meshUriin interfaceswim.runtime.CellContext
-
policy
public swim.api.policy.Policy policy()
- Specified by:
policyin interfaceswim.runtime.CellContext
-
schedule
public swim.concurrent.Schedule schedule()
- Specified by:
schedulein interfaceswim.runtime.CellContext
-
stage
public final swim.concurrent.Stage stage()
- Specified by:
stagein interfaceswim.runtime.CellContext
-
endpoint
public final swim.io.http.HttpEndpoint endpoint()
-
data
public swim.api.data.DataFactory data()
- Specified by:
datain interfaceswim.runtime.CellContext
-
createMesh
public swim.runtime.MeshBinding createMesh(swim.uri.Uri meshUri)
- Specified by:
createMeshin interfaceswim.runtime.RootContext
-
injectMesh
public swim.runtime.MeshBinding injectMesh(swim.uri.Uri meshUri, swim.runtime.MeshBinding mesh)- Specified by:
injectMeshin interfaceswim.runtime.RootContext
-
createPart
public swim.runtime.PartBinding createPart(swim.uri.Uri meshUri, swim.structure.Value partKey)- Specified by:
createPartin interfaceswim.runtime.RootContext
-
injectPart
public swim.runtime.PartBinding injectPart(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.runtime.PartBinding part)- Specified by:
injectPartin interfaceswim.runtime.RootContext
-
createHost
public swim.runtime.HostBinding createHost(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri)- Specified by:
createHostin interfaceswim.runtime.RootContext
-
injectHost
public swim.runtime.HostBinding injectHost(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.runtime.HostBinding host)- Specified by:
injectHostin interfaceswim.runtime.RootContext
-
createNode
public swim.runtime.NodeBinding createNode(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri)- Specified by:
createNodein interfaceswim.runtime.RootContext
-
injectNode
public swim.runtime.NodeBinding injectNode(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.runtime.NodeBinding node)- Specified by:
injectNodein interfaceswim.runtime.RootContext
-
injectLane
public swim.runtime.LaneBinding injectLane(swim.uri.Uri meshUri, swim.structure.Value partKey, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.runtime.LaneBinding lane)- Specified by:
injectLanein interfaceswim.runtime.RootContext
-
authenticate
public swim.api.policy.PolicyDirective<swim.api.auth.Identity> authenticate(swim.api.auth.Credentials credentials)
- Specified by:
authenticatein interfaceswim.runtime.RootContext
-
openListData
public swim.store.ListDataBinding openListData(swim.structure.Value name)
- Specified by:
openListDatain interfaceswim.store.StoreContext
-
injectListData
public swim.store.ListDataBinding injectListData(swim.store.ListDataBinding dataBinding)
- Specified by:
injectListDatain interfaceswim.store.StoreContext
-
openMapData
public swim.store.MapDataBinding openMapData(swim.structure.Value name)
- Specified by:
openMapDatain interfaceswim.store.StoreContext
-
injectMapData
public swim.store.MapDataBinding injectMapData(swim.store.MapDataBinding dataBinding)
- Specified by:
injectMapDatain interfaceswim.store.StoreContext
-
openSpatialData
public <S> swim.store.SpatialDataBinding<S> openSpatialData(swim.structure.Value name, swim.math.Z2Form<S> shapeForm)- Specified by:
openSpatialDatain interfaceswim.store.StoreContext
-
injectSpatialData
public <S> swim.store.SpatialDataBinding<S> injectSpatialData(swim.store.SpatialDataBinding<S> dataBinding)
- Specified by:
injectSpatialDatain interfaceswim.store.StoreContext
-
openValueData
public swim.store.ValueDataBinding openValueData(swim.structure.Value name)
- Specified by:
openValueDatain interfaceswim.store.StoreContext
-
injectValueData
public swim.store.ValueDataBinding injectValueData(swim.store.ValueDataBinding dataBinding)
- Specified by:
injectValueDatain interfaceswim.store.StoreContext
-
bindDownlink
public swim.runtime.LinkBinding bindDownlink(swim.api.downlink.Downlink downlink)
- Specified by:
bindDownlinkin interfaceswim.runtime.CellContext
-
openDownlink
public void openDownlink(swim.runtime.LinkBinding link)
- Specified by:
openDownlinkin interfaceswim.runtime.CellContext
-
closeDownlink
public void closeDownlink(swim.runtime.LinkBinding link)
- Specified by:
closeDownlinkin interfaceswim.runtime.CellContext
-
httpDownlink
public void httpDownlink(swim.runtime.HttpBinding http)
- Specified by:
httpDownlinkin interfaceswim.runtime.CellContext
-
pushDown
public void pushDown(swim.runtime.PushRequest pushRequest)
- Specified by:
pushDownin interfaceswim.runtime.CellContext
-
trace
public void trace(Object message)
- Specified by:
tracein interfaceswim.util.Log
-
debug
public void debug(Object message)
- Specified by:
debugin interfaceswim.util.Log
-
info
public void info(Object message)
- Specified by:
infoin interfaceswim.util.Log
-
warn
public void warn(Object message)
- Specified by:
warnin interfaceswim.util.Log
-
error
public void error(Object message)
- Specified by:
errorin interfaceswim.util.Log
-
close
public void close()
- Specified by:
closein interfaceswim.api.ref.SwimRef- Specified by:
closein interfaceswim.runtime.TierContext- Specified by:
closein classswim.runtime.AbstractSwimRef
-
willOpen
public void willOpen()
- Specified by:
willOpenin interfaceswim.runtime.TierContext
-
didOpen
public void didOpen()
- Specified by:
didOpenin interfaceswim.runtime.TierContext
-
willLoad
public void willLoad()
- Specified by:
willLoadin interfaceswim.runtime.TierContext
-
didLoad
public void didLoad()
- Specified by:
didLoadin interfaceswim.runtime.TierContext
-
willStart
public void willStart()
- Specified by:
willStartin interfaceswim.runtime.TierContext
-
didStart
public void didStart()
- Specified by:
didStartin interfaceswim.runtime.TierContext
-
willStop
public void willStop()
- Specified by:
willStopin interfaceswim.runtime.TierContext
-
didStop
public void didStop()
- Specified by:
didStopin interfaceswim.runtime.TierContext
-
willUnload
public void willUnload()
- Specified by:
willUnloadin interfaceswim.runtime.TierContext
-
didUnload
public void didUnload()
- Specified by:
didUnloadin interfaceswim.runtime.TierContext
-
willClose
public void willClose()
- Specified by:
willClosein interfaceswim.runtime.TierContext
-
-