- java.lang.Object
-
- swim.api.plane.AbstractPlane
-
-
Field Summary
Fields Modifier and Type Field Description protected PlaneContextcontext
-
Constructor Summary
Constructors Constructor Description AbstractPlane()AbstractPlane(PlaneContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAgentRoute(String routeName, String pattern, AgentRoute<?> agentRoute)voidaddAgentRoute(String routeName, UriPattern pattern, AgentRoute<?> agentRoute)voidclose()voidcommand(String nodeUri, String laneUri, float prio, Value body)voidcommand(String nodeUri, String laneUri, float prio, Value body, Cont<CommandMessage> cont)voidcommand(String hostUri, String nodeUri, String laneUri, float prio, Value body)voidcommand(String hostUri, String nodeUri, String laneUri, float prio, Value body, Cont<CommandMessage> cont)voidcommand(String hostUri, String nodeUri, String laneUri, Value body)voidcommand(String hostUri, String nodeUri, String laneUri, Value body, Cont<CommandMessage> cont)voidcommand(String nodeUri, String laneUri, Value body)voidcommand(String nodeUri, String laneUri, Value body, Cont<CommandMessage> cont)voidcommand(Uri nodeUri, Uri laneUri, float prio, Value body)voidcommand(Uri nodeUri, Uri laneUri, float prio, Value body, Cont<CommandMessage> cont)voidcommand(Uri nodeUri, Uri laneUri, Value body)voidcommand(Uri nodeUri, Uri laneUri, Value body, Cont<CommandMessage> cont)voidcommand(Uri hostUri, Uri nodeUri, Uri laneUri, float prio, Value body)voidcommand(Uri hostUri, Uri nodeUri, Uri laneUri, float prio, Value body, Cont<CommandMessage> cont)voidcommand(Uri hostUri, Uri nodeUri, Uri laneUri, Value body)voidcommand(Uri hostUri, Uri nodeUri, Uri laneUri, Value body, Cont<CommandMessage> cont)<A extends Agent>
AgentRoute<A>createAgentRoute(Class<? extends A> agentClass)voiddebug(Object message)Logs a debug-level message.voiddidClose()voiddidFail(Throwable error)voiddidStart()voiddidStop()EventDownlink<Value>downlink()<V> HttpDownlink<V>downlinkHttp()ListDownlink<Value>downlinkList()MapDownlink<Value,Value>downlinkMap()ValueDownlink<Value>downlinkValue()<I,O>
WsDownlink<I,O>downlinkWs()voiderror(Object message)Logs an error-level message.voidfail(Object message)Logs an fail-level message.AgentFactory<?>getAgentFactory(Uri nodeUri)<A extends Agent>
AgentRoute<A>getAgentRoute(String routeName)HostRefhostRef(String hostUri)HostRefhostRef(Uri hostUri)voidinfo(Object message)Logs an info-level message.LaneReflaneRef(String nodeUri, String laneUri)LaneReflaneRef(String hostUri, String nodeUri, String laneUri)LaneReflaneRef(Uri nodeUri, Uri laneUri)LaneReflaneRef(Uri hostUri, Uri nodeUri, Uri laneUri)NodeRefnodeRef(String nodeUri)NodeRefnodeRef(String hostUri, String nodeUri)NodeRefnodeRef(Uri nodeUri)NodeRefnodeRef(Uri hostUri, Uri nodeUri)PlaneContextplaneContext()voidremoveAgentRoute(String routeName)Scheduleschedule()Stagestage()voidtrace(Object message)Logs a trace-level message.voidwarn(Object message)Logs a warn-level message.voidwillClose()voidwillStart()voidwillStop()
-
-
-
Field Detail
-
context
protected final PlaneContext context
-
-
Constructor Detail
-
AbstractPlane
public AbstractPlane(PlaneContext context)
-
AbstractPlane
public AbstractPlane()
-
-
Method Detail
-
planeContext
public PlaneContext planeContext()
- Specified by:
planeContextin interfacePlane
-
schedule
public Schedule schedule()
-
stage
public 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, UriPattern pattern, AgentRoute<?> agentRoute)
-
addAgentRoute
public void addAgentRoute(String routeName, String pattern, AgentRoute<?> agentRoute)
-
removeAgentRoute
public void removeAgentRoute(String routeName)
-
getAgentFactory
public AgentFactory<?> getAgentFactory(Uri nodeUri)
-
downlink
public EventDownlink<Value> downlink()
- Specified by:
downlinkin interfaceDownlinkFactory
-
downlinkList
public ListDownlink<Value> downlinkList()
- Specified by:
downlinkListin interfaceDownlinkFactory
-
downlinkMap
public MapDownlink<Value,Value> downlinkMap()
- Specified by:
downlinkMapin interfaceDownlinkFactory
-
downlinkValue
public ValueDownlink<Value> downlinkValue()
- Specified by:
downlinkValuein interfaceDownlinkFactory
-
downlinkHttp
public <V> HttpDownlink<V> downlinkHttp()
- Specified by:
downlinkHttpin interfaceDownlinkFactory
-
downlinkWs
public <I,O> WsDownlink<I,O> downlinkWs()
- Specified by:
downlinkWsin interfaceDownlinkFactory
-
command
public final void command(Uri hostUri, Uri nodeUri, Uri laneUri, float prio, Value body, Cont<CommandMessage> cont)
-
command
public final void command(String hostUri, String nodeUri, String laneUri, float prio, Value body, Cont<CommandMessage> cont)
-
command
public final void command(Uri hostUri, Uri nodeUri, Uri laneUri, Value body, Cont<CommandMessage> cont)
-
command
public final void command(String hostUri, String nodeUri, String laneUri, Value body, Cont<CommandMessage> cont)
-
command
public final void command(Uri nodeUri, Uri laneUri, float prio, Value body, Cont<CommandMessage> cont)
-
command
public final void command(String nodeUri, String laneUri, float prio, Value body, Cont<CommandMessage> cont)
-
command
public final void command(Uri nodeUri, Uri laneUri, Value body, Cont<CommandMessage> cont)
-
command
public final void command(String nodeUri, String laneUri, Value body, Cont<CommandMessage> cont)
-
command
public void command(String hostUri, String nodeUri, String laneUri, float prio, Value body)
-
trace
public void trace(Object message)
Description copied from interface:LogLogs a trace-level message.
-
debug
public void debug(Object message)
Description copied from interface:LogLogs a debug-level message.
-
info
public void info(Object message)
Description copied from interface:LogLogs an info-level message.
-
warn
public void warn(Object message)
Description copied from interface:LogLogs a warn-level message.
-
error
public void error(Object message)
Description copied from interface:LogLogs an error-level message.
-
fail
public void fail(Object message)
Description copied from interface:LogLogs an fail-level message.
-
-