Module swim.runtime

Class NodeScope

  • All Implemented Interfaces:
    swim.api.downlink.DownlinkFactory, swim.api.ref.NodeRef, CellContext, swim.util.Log

    public class NodeScope
    extends Scope
    implements swim.api.ref.NodeRef
    • Field Detail

      • meshUri

        protected final swim.uri.Uri meshUri
      • hostUri

        protected final swim.uri.Uri hostUri
      • nodeUri

        protected final swim.uri.Uri nodeUri
    • Constructor Detail

      • NodeScope

        public NodeScope​(CellContext cellContext,
                         swim.concurrent.Stage stage,
                         swim.uri.Uri meshUri,
                         swim.uri.Uri hostUri,
                         swim.uri.Uri nodeUri)
    • Method Detail

      • meshUri

        public final swim.uri.Uri meshUri()
        Specified by:
        meshUri in interface CellContext
      • hostUri

        public final swim.uri.Uri hostUri()
        Specified by:
        hostUri in interface swim.api.ref.NodeRef
      • nodeUri

        public final swim.uri.Uri nodeUri()
        Specified by:
        nodeUri in interface swim.api.ref.NodeRef
      • laneRef

        public swim.api.ref.LaneRef laneRef​(swim.uri.Uri laneUri)
        Specified by:
        laneRef in interface swim.api.ref.NodeRef
      • laneRef

        public swim.api.ref.LaneRef laneRef​(String laneUri)
        Specified by:
        laneRef in interface swim.api.ref.NodeRef
      • downlink

        public swim.api.downlink.EventDownlink<swim.structure.Value> downlink()
        Specified by:
        downlink in interface swim.api.downlink.DownlinkFactory
      • downlinkList

        public swim.api.downlink.ListDownlink<swim.structure.Value> downlinkList()
        Specified by:
        downlinkList in interface swim.api.downlink.DownlinkFactory
      • downlinkMap

        public swim.api.downlink.MapDownlink<swim.structure.Value,​swim.structure.Value> downlinkMap()
        Specified by:
        downlinkMap in interface swim.api.downlink.DownlinkFactory
      • downlinkValue

        public swim.api.downlink.ValueDownlink<swim.structure.Value> downlinkValue()
        Specified by:
        downlinkValue in interface swim.api.downlink.DownlinkFactory
      • downlinkHttp

        public <V> swim.api.http.HttpDownlink<V> downlinkHttp()
        Specified by:
        downlinkHttp in interface swim.api.downlink.DownlinkFactory
      • downlinkWs

        public <I,​O> swim.api.ws.WsDownlink<I,​O> downlinkWs()
        Specified by:
        downlinkWs in interface swim.api.downlink.DownlinkFactory
      • command

        public void command​(swim.uri.Uri laneUri,
                            float prio,
                            swim.structure.Value body,
                            swim.concurrent.Cont<swim.warp.CommandMessage> cont)
        Specified by:
        command in interface swim.api.ref.NodeRef
      • command

        public void command​(String laneUri,
                            float prio,
                            swim.structure.Value body,
                            swim.concurrent.Cont<swim.warp.CommandMessage> cont)
        Specified by:
        command in interface swim.api.ref.NodeRef
      • command

        public void command​(swim.uri.Uri laneUri,
                            swim.structure.Value body,
                            swim.concurrent.Cont<swim.warp.CommandMessage> cont)
        Specified by:
        command in interface swim.api.ref.NodeRef
      • command

        public void command​(String laneUri,
                            swim.structure.Value body,
                            swim.concurrent.Cont<swim.warp.CommandMessage> cont)
        Specified by:
        command in interface swim.api.ref.NodeRef
      • command

        public void command​(swim.uri.Uri laneUri,
                            float prio,
                            swim.structure.Value body)
        Specified by:
        command in interface swim.api.ref.NodeRef
      • command

        public void command​(String laneUri,
                            float prio,
                            swim.structure.Value body)
        Specified by:
        command in interface swim.api.ref.NodeRef
      • command

        public void command​(swim.uri.Uri laneUri,
                            swim.structure.Value body)
        Specified by:
        command in interface swim.api.ref.NodeRef
      • command

        public void command​(String laneUri,
                            swim.structure.Value body)
        Specified by:
        command in interface swim.api.ref.NodeRef