- java.lang.Object
-
- swim.system.AbstractWarpRef
-
- swim.client.ClientRuntime
-
- All Implemented Interfaces:
Client
,DownlinkFactory
,WarpRef
,CellContext
,EdgeContext
,TierContext
,Log
public class ClientRuntime extends AbstractWarpRef implements Client, EdgeContext
-
-
Constructor Summary
Constructors Constructor Description ClientRuntime()
ClientRuntime(Stage stage)
ClientRuntime(Stage stage, WarpSettings warpSettings)
-
Method Summary
-
Methods inherited from class swim.system.AbstractWarpRef
command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWs, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRef
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.api.downlink.DownlinkFactory
downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWs
-
-
-
-
Constructor Detail
-
ClientRuntime
public ClientRuntime(Stage stage, WarpSettings warpSettings)
-
ClientRuntime
public ClientRuntime(Stage stage)
-
ClientRuntime
public ClientRuntime()
-
-
Method Detail
-
edgeWrapper
public final EdgeBinding edgeWrapper()
- Specified by:
edgeWrapper
in interfaceEdgeContext
-
unwrapEdge
public <T> T unwrapEdge(Class<T> edgeClass)
- Specified by:
unwrapEdge
in interfaceEdgeContext
-
bottomEdge
public <T> T bottomEdge(Class<T> edgeClass)
- Specified by:
bottomEdge
in interfaceEdgeContext
-
cellAddress
public EdgeAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceEdgeContext
-
edgeName
public String edgeName()
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfaceEdgeContext
-
meshUri
public Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
-
policy
public Policy policy()
- Specified by:
policy
in interfaceCellContext
-
schedule
public Schedule schedule()
- Specified by:
schedule
in interfaceCellContext
-
stage
public final Stage stage()
- Specified by:
stage
in interfaceCellContext
-
store
public final StoreBinding store()
- Specified by:
store
in interfaceCellContext
-
endpoint
public final HttpEndpoint endpoint()
-
openMetaEdge
public void openMetaEdge(EdgeBinding edge, NodeBinding metaEdge)
- Specified by:
openMetaEdge
in interfaceEdgeContext
-
createMesh
public MeshBinding createMesh(MeshAddress meshAddress)
- Specified by:
createMesh
in interfaceEdgeContext
-
injectMesh
public MeshBinding injectMesh(MeshAddress meshAddress, MeshBinding mesh)
- Specified by:
injectMesh
in interfaceEdgeContext
-
openMetaMesh
public void openMetaMesh(MeshBinding mesh, NodeBinding metaMesh)
- Specified by:
openMetaMesh
in interfaceEdgeContext
-
createPart
public PartBinding createPart(PartAddress partAddress)
- Specified by:
createPart
in interfaceEdgeContext
-
injectPart
public PartBinding injectPart(PartAddress partAddress, PartBinding part)
- Specified by:
injectPart
in interfaceEdgeContext
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPart
in interfaceEdgeContext
-
createHost
public HostBinding createHost(HostAddress hostAddress)
- Specified by:
createHost
in interfaceEdgeContext
-
injectHost
public HostBinding injectHost(HostAddress hostAddress, HostBinding host)
- Specified by:
injectHost
in interfaceEdgeContext
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHost
in interfaceEdgeContext
-
createNode
public NodeBinding createNode(NodeAddress nodeAddress)
- Specified by:
createNode
in interfaceEdgeContext
-
injectNode
public NodeBinding injectNode(NodeAddress nodeAddress, NodeBinding node)
- Specified by:
injectNode
in interfaceEdgeContext
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfaceEdgeContext
-
createLane
public LaneBinding createLane(LaneAddress lane)
- Specified by:
createLane
in interfaceEdgeContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLane
in interfaceEdgeContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceEdgeContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceEdgeContext
-
openMetaDownlink
public void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
- Specified by:
openMetaDownlink
in interfaceCellContext
-
createLane
public LaneBinding createLane(NodeBinding node, LaneDef laneDef)
- Specified by:
createLane
in interfaceEdgeContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanes
in interfaceEdgeContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactory
in interfaceEdgeContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfaceEdgeContext
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgents
in interfaceEdgeContext
-
authenticate
public PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticate
in interfaceEdgeContext
-
bindDownlink
public LinkBinding bindDownlink(Downlink downlink)
- Specified by:
bindDownlink
in interfaceCellContext
-
openDownlink
public void openDownlink(LinkBinding link)
- Specified by:
openDownlink
in interfaceCellContext
-
closeDownlink
public void closeDownlink(LinkBinding link)
- Specified by:
closeDownlink
in interfaceCellContext
-
pushDown
public void pushDown(Push<?> push)
- Specified by:
pushDown
in interfaceCellContext
-
reportDown
public void reportDown(Metric metric)
- Specified by:
reportDown
in interfaceCellContext
-
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.
-
close
public void close()
- Specified by:
close
in interfaceTierContext
- Specified by:
close
in interfaceWarpRef
- Specified by:
close
in classAbstractWarpRef
-
willOpen
public void willOpen()
- Specified by:
willOpen
in interfaceTierContext
-
didOpen
public void didOpen()
- Specified by:
didOpen
in interfaceTierContext
-
willLoad
public void willLoad()
- Specified by:
willLoad
in interfaceTierContext
-
didLoad
public void didLoad()
- Specified by:
didLoad
in interfaceTierContext
-
willStart
public void willStart()
- Specified by:
willStart
in interfaceTierContext
-
didStart
public void didStart()
- Specified by:
didStart
in interfaceTierContext
-
willStop
public void willStop()
- Specified by:
willStop
in interfaceTierContext
-
didStop
public void didStop()
- Specified by:
didStop
in interfaceTierContext
-
willUnload
public void willUnload()
- Specified by:
willUnload
in interfaceTierContext
-
didUnload
public void didUnload()
- Specified by:
didUnload
in interfaceTierContext
-
willClose
public void willClose()
- Specified by:
willClose
in interfaceTierContext
-
-