- java.lang.Object
-
- swim.api.client.AbstractClient
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientContextcontext
-
Constructor Summary
Constructors Constructor Description AbstractClient()AbstractClient(ClientContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientContextclientContext()voidclose()voidcommand(String nodeUri, String laneUri, float prio, swim.structure.Value body)voidcommand(String hostUri, String nodeUri, String laneUri, float prio, swim.structure.Value body)voidcommand(String hostUri, String nodeUri, String laneUri, swim.structure.Value body)voidcommand(String nodeUri, String laneUri, swim.structure.Value body)voidcommand(swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, swim.structure.Value body)voidcommand(swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.structure.Value body)voidcommand(swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, swim.structure.Value body)voidcommand(swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.structure.Value body)voiddebug(Object message)voiddidFail(Throwable error)voiddidStart()voiddidStop()EventDownlink<swim.structure.Value>downlink()<T> HttpDownlink<T>downlinkHttp()ListDownlink<swim.structure.Value>downlinkList()MapDownlink<swim.structure.Value,swim.structure.Value>downlinkMap()ValueDownlink<swim.structure.Value>downlinkValue()voiderror(Object message)HostRefhostRef(String hostUri)HostRefhostRef(swim.uri.Uri hostUri)voidinfo(Object message)LaneReflaneRef(String nodeUri, String laneUri)LaneReflaneRef(String hostUri, String nodeUri, String laneUri)LaneReflaneRef(swim.uri.Uri nodeUri, swim.uri.Uri laneUri)LaneReflaneRef(swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri)NodeRefnodeRef(String nodeUri)NodeRefnodeRef(String hostUri, String nodeUri)NodeRefnodeRef(swim.uri.Uri nodeUri)NodeRefnodeRef(swim.uri.Uri hostUri, swim.uri.Uri nodeUri)Routerrouter()voidstart()voidstop()voidtrace(Object message)voidwarn(Object message)voidwillStart()voidwillStop()
-
-
-
Field Detail
-
context
protected final ClientContext context
-
-
Constructor Detail
-
AbstractClient
public AbstractClient(ClientContext context)
-
AbstractClient
public AbstractClient()
-
-
Method Detail
-
clientContext
public ClientContext clientContext()
- Specified by:
clientContextin interfaceClient
-
nodeRef
public NodeRef nodeRef(swim.uri.Uri hostUri, swim.uri.Uri nodeUri)
-
laneRef
public LaneRef laneRef(swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri)
-
laneRef
public LaneRef laneRef(swim.uri.Uri nodeUri, swim.uri.Uri laneUri)
-
command
public void command(swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, swim.structure.Value body)
-
command
public void command(String hostUri, String nodeUri, String laneUri, float prio, swim.structure.Value body)
-
command
public void command(swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.structure.Value body)
-
command
public void command(String hostUri, String nodeUri, String laneUri, swim.structure.Value body)
-
command
public void command(swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, swim.structure.Value body)
-
command
public void command(swim.uri.Uri nodeUri, swim.uri.Uri laneUri, swim.structure.Value body)
-
downlink
public EventDownlink<swim.structure.Value> downlink()
- Specified by:
downlinkin interfaceDownlinkFactory
-
downlinkList
public ListDownlink<swim.structure.Value> downlinkList()
- Specified by:
downlinkListin interfaceDownlinkFactory
-
downlinkMap
public MapDownlink<swim.structure.Value,swim.structure.Value> downlinkMap()
- Specified by:
downlinkMapin interfaceDownlinkFactory
-
downlinkValue
public ValueDownlink<swim.structure.Value> downlinkValue()
- Specified by:
downlinkValuein interfaceDownlinkFactory
-
downlinkHttp
public <T> HttpDownlink<T> downlinkHttp()
- Specified by:
downlinkHttpin interfaceDownlinkFactory
-
router
public final Router router()
-
start
public void start()
-
stop
public void stop()
-
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
-
-