Module swim.api

Class AbstractPlane

java.lang.Object
swim.api.plane.AbstractPlane
All Implemented Interfaces:
DownlinkFactory, Plane, WarpRef, swim.util.Log

public class AbstractPlane extends Object implements Plane, WarpRef, swim.util.Log
  • Field Details

  • Constructor Details

    • AbstractPlane

      public AbstractPlane(PlaneContext context)
    • AbstractPlane

      public AbstractPlane()
  • Method Details

    • planeContext

      public PlaneContext planeContext()
      Specified by:
      planeContext in interface Plane
    • schedule

      public swim.concurrent.Schedule schedule()
    • stage

      public swim.concurrent.Stage stage()
    • createAgentRoute

      public <A extends Agent> AgentRoute<A> createAgentRoute(Class<? extends A> agentClass)
    • getAgentRoute

      public <A extends Agent> AgentRoute<A> getAgentRoute(String routeName)
    • addAgentRoute

      public void addAgentRoute(String routeName, swim.uri.UriPattern pattern, AgentRoute<?> agentRoute)
    • addAgentRoute

      public void addAgentRoute(String routeName, String pattern, AgentRoute<?> agentRoute)
    • removeAgentRoute

      public void removeAgentRoute(String routeName)
    • getAgentFactory

      public AgentFactory<?> getAgentFactory(swim.uri.Uri nodeUri)
    • downlink

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

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

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

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

      public <V> HttpDownlink<V> downlinkHttp()
      Specified by:
      downlinkHttp in interface DownlinkFactory
    • downlinkWs

      public <I, O> WsDownlink<I,O> downlinkWs()
      Specified by:
      downlinkWs in interface DownlinkFactory
    • hostRef

      public HostRef hostRef(swim.uri.Uri hostUri)
      Specified by:
      hostRef in interface WarpRef
    • hostRef

      public HostRef hostRef(String hostUri)
      Specified by:
      hostRef in interface WarpRef
    • nodeRef

      public NodeRef nodeRef(swim.uri.Uri hostUri, swim.uri.Uri nodeUri)
      Specified by:
      nodeRef in interface WarpRef
    • nodeRef

      public NodeRef nodeRef(String hostUri, String nodeUri)
      Specified by:
      nodeRef in interface WarpRef
    • nodeRef

      public NodeRef nodeRef(swim.uri.Uri nodeUri)
      Specified by:
      nodeRef in interface WarpRef
    • nodeRef

      public NodeRef nodeRef(String nodeUri)
      Specified by:
      nodeRef in interface WarpRef
    • laneRef

      public LaneRef laneRef(swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri)
      Specified by:
      laneRef in interface WarpRef
    • laneRef

      public LaneRef laneRef(String hostUri, String nodeUri, String laneUri)
      Specified by:
      laneRef in interface WarpRef
    • laneRef

      public LaneRef laneRef(swim.uri.Uri nodeUri, swim.uri.Uri laneUri)
      Specified by:
      laneRef in interface WarpRef
    • laneRef

      public LaneRef laneRef(String nodeUri, String laneUri)
      Specified by:
      laneRef in interface WarpRef
    • command

      public final void command(swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, swim.structure.Value body, swim.concurrent.Cont<swim.warp.CommandMessage> cont)
      Specified by:
      command in interface WarpRef
    • command

      public final void command(String hostUri, String nodeUri, String laneUri, float prio, swim.structure.Value body, swim.concurrent.Cont<swim.warp.CommandMessage> cont)
      Specified by:
      command in interface WarpRef
    • command

      public final void command(swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.structure.Value body, swim.concurrent.Cont<swim.warp.CommandMessage> cont)
      Specified by:
      command in interface WarpRef
    • command

      public final void command(String hostUri, String nodeUri, String laneUri, swim.structure.Value body, swim.concurrent.Cont<swim.warp.CommandMessage> cont)
      Specified by:
      command in interface WarpRef
    • command

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

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

      public final void command(swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.structure.Value body, swim.concurrent.Cont<swim.warp.CommandMessage> cont)
      Specified by:
      command in interface WarpRef
    • command

      public final void command(String nodeUri, String laneUri, swim.structure.Value body, swim.concurrent.Cont<swim.warp.CommandMessage> cont)
      Specified by:
      command in interface WarpRef
    • command

      public void command(swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, swim.structure.Value body)
      Specified by:
      command in interface WarpRef
    • command

      public void command(String hostUri, String nodeUri, String laneUri, float prio, swim.structure.Value body)
      Specified by:
      command in interface WarpRef
    • command

      public void command(swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.structure.Value body)
      Specified by:
      command in interface WarpRef
    • command

      public void command(String hostUri, String nodeUri, String laneUri, swim.structure.Value body)
      Specified by:
      command in interface WarpRef
    • command

      public void command(swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, swim.structure.Value body)
      Specified by:
      command in interface WarpRef
    • command

      public void command(String nodeUri, String laneUri, float prio, swim.structure.Value body)
      Specified by:
      command in interface WarpRef
    • command

      public void command(swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.structure.Value body)
      Specified by:
      command in interface WarpRef
    • command

      public void command(String nodeUri, String laneUri, swim.structure.Value body)
      Specified by:
      command in interface WarpRef
    • trace

      public void trace(Object message)
      Specified by:
      trace in interface swim.util.Log
    • debug

      public void debug(Object message)
      Specified by:
      debug in interface swim.util.Log
    • info

      public void info(Object message)
      Specified by:
      info in interface swim.util.Log
    • warn

      public void warn(Object message)
      Specified by:
      warn in interface swim.util.Log
    • error

      public void error(Object message)
      Specified by:
      error in interface swim.util.Log
    • fail

      public void fail(Object message)
      Specified by:
      fail in interface swim.util.Log
    • close

      public void close()
      Specified by:
      close in interface WarpRef
    • willStart

      public void willStart()
      Specified by:
      willStart in interface Plane
    • didStart

      public void didStart()
      Specified by:
      didStart in interface Plane
    • willStop

      public void willStop()
      Specified by:
      willStop in interface Plane
    • didStop

      public void didStop()
      Specified by:
      didStop in interface Plane
    • willClose

      public void willClose()
      Specified by:
      willClose in interface Plane
    • didClose

      public void didClose()
      Specified by:
      didClose in interface Plane
    • didFail

      public void didFail(Throwable error)
      Specified by:
      didFail in interface Plane