- java.lang.Object
-
- swim.api.plane.AbstractPlane
-
-
Field Summary
Fields Modifier and Type Field Description protected PlaneContext
context
-
Constructor Summary
Constructors Constructor Description AbstractPlane()
AbstractPlane(PlaneContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAgentRoute(String routeName, String pattern, AgentRoute<?> agentRoute)
void
addAgentRoute(String routeName, UriPattern pattern, AgentRoute<?> agentRoute)
void
close()
void
command(String nodeUri, String laneUri, float prio, Value body)
void
command(String nodeUri, String laneUri, float prio, Value body, Cont<CommandMessage> cont)
void
command(String hostUri, String nodeUri, String laneUri, float prio, Value body)
void
command(String hostUri, String nodeUri, String laneUri, float prio, Value body, Cont<CommandMessage> cont)
void
command(String hostUri, String nodeUri, String laneUri, Value body)
void
command(String hostUri, String nodeUri, String laneUri, Value body, Cont<CommandMessage> cont)
void
command(String nodeUri, String laneUri, Value body)
void
command(String nodeUri, String laneUri, Value body, Cont<CommandMessage> cont)
void
command(Uri nodeUri, Uri laneUri, float prio, Value body)
void
command(Uri nodeUri, Uri laneUri, float prio, Value body, Cont<CommandMessage> cont)
void
command(Uri nodeUri, Uri laneUri, Value body)
void
command(Uri nodeUri, Uri laneUri, Value body, Cont<CommandMessage> cont)
void
command(Uri hostUri, Uri nodeUri, Uri laneUri, float prio, Value body)
void
command(Uri hostUri, Uri nodeUri, Uri laneUri, float prio, Value body, Cont<CommandMessage> cont)
void
command(Uri hostUri, Uri nodeUri, Uri laneUri, Value body)
void
command(Uri hostUri, Uri nodeUri, Uri laneUri, Value body, Cont<CommandMessage> cont)
<A extends Agent>
AgentRoute<A>createAgentRoute(Class<? extends A> agentClass)
void
debug(Object message)
Logs a debug-level message.void
didClose()
void
didFail(Throwable error)
void
didStart()
void
didStop()
EventDownlink<Value>
downlink()
<V> HttpDownlink<V>
downlinkHttp()
ListDownlink<Value>
downlinkList()
MapDownlink<Value,Value>
downlinkMap()
ValueDownlink<Value>
downlinkValue()
<I,O>
WsDownlink<I,O>downlinkWs()
void
error(Object message)
Logs an error-level message.void
fail(Object message)
Logs an fail-level message.AgentFactory<?>
getAgentFactory(Uri nodeUri)
<A extends Agent>
AgentRoute<A>getAgentRoute(String routeName)
HostRef
hostRef(String hostUri)
HostRef
hostRef(Uri hostUri)
void
info(Object message)
Logs an info-level message.LaneRef
laneRef(String nodeUri, String laneUri)
LaneRef
laneRef(String hostUri, String nodeUri, String laneUri)
LaneRef
laneRef(Uri nodeUri, Uri laneUri)
LaneRef
laneRef(Uri hostUri, Uri nodeUri, Uri laneUri)
NodeRef
nodeRef(String nodeUri)
NodeRef
nodeRef(String hostUri, String nodeUri)
NodeRef
nodeRef(Uri nodeUri)
NodeRef
nodeRef(Uri hostUri, Uri nodeUri)
PlaneContext
planeContext()
void
removeAgentRoute(String routeName)
Schedule
schedule()
Stage
stage()
void
trace(Object message)
Logs a trace-level message.void
warn(Object message)
Logs a warn-level message.void
willClose()
void
willStart()
void
willStop()
-
-
-
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:
planeContext
in 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:
downlink
in interfaceDownlinkFactory
-
downlinkList
public ListDownlink<Value> downlinkList()
- Specified by:
downlinkList
in interfaceDownlinkFactory
-
downlinkMap
public MapDownlink<Value,Value> downlinkMap()
- Specified by:
downlinkMap
in interfaceDownlinkFactory
-
downlinkValue
public ValueDownlink<Value> downlinkValue()
- Specified by:
downlinkValue
in interfaceDownlinkFactory
-
downlinkHttp
public <V> HttpDownlink<V> downlinkHttp()
- Specified by:
downlinkHttp
in interfaceDownlinkFactory
-
downlinkWs
public <I,O> WsDownlink<I,O> downlinkWs()
- Specified by:
downlinkWs
in 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:Log
Logs a trace-level message.
-
debug
public void debug(Object message)
Description copied from interface:Log
Logs a debug-level message.
-
info
public void info(Object message)
Description copied from interface:Log
Logs an info-level message.
-
warn
public void warn(Object message)
Description copied from interface:Log
Logs a warn-level message.
-
error
public void error(Object message)
Description copied from interface:Log
Logs an error-level message.
-
fail
public void fail(Object message)
Description copied from interface:Log
Logs an fail-level message.
-
-