java.lang.Object
swim.system.AbstractWarpRef
swim.system.AbstractTierBinding
swim.system.agent.AgentView
- All Implemented Interfaces:
AgentContext
,DownlinkFactory
,LaneFactory
,WarpRef
,Store
,CellContext
,TierBinding
,TierContext
,Log
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Agent
protected final Value
protected final AgentModel
protected final Value
Fields inherited from class swim.system.AbstractTierBinding
CLOSED_PHASE, CLOSED_STATE, CLOSING_STATE, FAILED_STATE, FAILING_STATE, LOADED_PHASE, LOADED_STATE, LOADING_STATE, OPENED_PHASE, OPENED_STATE, OPENING_STATE, PHASE_MASK, PHASE_SHIFT, RECOVERING_STATE, STARTED_PHASE, STARTED_STATE, STARTING_STATE, STATE_MASK, status, STATUS, STOPPING_STATE, UNLOADING_STATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Agent
agent()
final Value
agentId()
agents()
The multi-threaded executionStage
on which thisAgentContext
can run asynchronous operations.bindDownlink
(Downlink downlink) <T> T
bottomNode
(Class<T> nodeClass) void
close()
void
closeAgent
(String name) void
closeAgent
(Value id) void
closeDownlink
(LinkBinding link) <V> CommandLane<V>
<A extends Agent>
AgentFactory<A>createAgentFactory
(Class<? extends A> agentClass) void
Logs a debug-level message.<V> DemandLane<V>
<K,
V> DemandMapLane<K, V> void
didClose()
void
void
didLoad()
void
didOpen()
void
didStart()
void
didStop()
void
final String
edgeName()
void
Logs an error-level message.void
Logs an fail-level message.geospatialData
(String name) geospatialData
(Value name) <K,
V> SpatialLane<K, R2Shape, V> <A extends Agent>
AReturns theLane
belonging to theAgent
managed by thisAgentContext
that is addressable bylaneUri
, ornull
if no suchLane
exists.Returns the value ofname
inAgentContext.props()
.Returns the value ofkey
inAgentContext.props()
.final Uri
hostUri()
ThehostUri
of theAgent
managed by thisAgentContext
.<V> HttpLane<V>
httpLane()
void
Logs an info-level message.<L,
K, V> JoinMapLane<L, K, V> <K,
V> JoinValueLane<K, V> lane()
Returns the currently executing lane, or null if not currently executing a lane or link callback.lanes()
link()
Returns the currently executing link, or null if not currently executing a link callback.<V> ListLane<V>
listLane()
<K,
V> MapLane<K, V> mapLane()
final Uri
meshUri()
final Uri
nodeUri()
ThenodeUri
of theAgent
managed by thisAgentContext
.<A extends Agent>
A<A extends Agent>
AopenAgent
(String name, AgentFactory<A> agentFactory) <A extends Agent>
A<A extends Agent>
AopenAgent
(Value id, AgentFactory<A> agentFactory) <A extends Agent>
A<A extends Agent>
AopenAgent
(Value id, Value props, AgentFactory<A> agentFactory) void
openDownlink
(LinkBinding link) Registerslane
withlaneUri
and returnslane
.void
openMetaDownlink
(LinkBinding downlink, NodeBinding metaDownlink) policy()
final Value
props()
ARecord
that maps every dynamic property inAgentContext.nodeUri()
, as defined byAgentRoute.pattern()
, to its value.void
void
reportDown
(Metric metric) schedule()
TheSchedule
that thisAgentContext
is bound to.<S> SpatialData<Value,
S, Value> spatialData
(String name, Z2Form<S> shapeForm) <S> SpatialData<Value,
S, Value> spatialData
(Value name, Z2Form<S> shapeForm) <K,
S, V> SpatialLane<K, S, V> spatialLane
(Z2Form<S> shapeForm) stage()
The single-threaded executionStage
on which thisAgentContext
runs its application logic.store()
<V> SupplyLane<V>
void
Logs a trace-level message.<T> T
unwrapNode
(Class<T> nodeClass) <V> ValueLane<V>
void
Logs a warn-level message.void
void
willLoad()
void
willOpen()
void
void
willStop()
void
<I,
O> WsLane<I, O> wsLane()
Methods inherited from class swim.system.AbstractTierBinding
activate, awaitStart, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload
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
-
Field Details
-
node
-
id
-
props
-
agent
-
-
Constructor Details
-
AgentView
-
-
Method Details
-
agent
-
tierContext
- Specified by:
tierContext
in interfaceTierBinding
- Specified by:
tierContext
in classAbstractTierBinding
-
unwrapNode
-
bottomNode
-
cellAddress
- Specified by:
cellAddress
in interfaceCellContext
-
edgeName
- Specified by:
edgeName
in interfaceCellContext
-
meshUri
- Specified by:
meshUri
in interfaceCellContext
-
hostUri
Description copied from interface:AgentContext
ThehostUri
of theAgent
managed by thisAgentContext
.- Specified by:
hostUri
in interfaceAgentContext
-
nodeUri
Description copied from interface:AgentContext
ThenodeUri
of theAgent
managed by thisAgentContext
.- Specified by:
nodeUri
in interfaceAgentContext
-
agentId
- Specified by:
agentId
in interfaceAgentContext
-
props
Description copied from interface:AgentContext
ARecord
that maps every dynamic property inAgentContext.nodeUri()
, as defined byAgentRoute.pattern()
, to its value. An empty result indicates thatnodeUri
contains no dynamic components.- Specified by:
props
in interfaceAgentContext
-
getProp
Description copied from interface:AgentContext
Returns the value ofkey
inAgentContext.props()
.- Specified by:
getProp
in interfaceAgentContext
-
getProp
Description copied from interface:AgentContext
Returns the value ofname
inAgentContext.props()
.- Specified by:
getProp
in interfaceAgentContext
-
policy
- Specified by:
policy
in interfaceCellContext
-
schedule
Description copied from interface:AgentContext
TheSchedule
that thisAgentContext
is bound to.- Specified by:
schedule
in interfaceAgentContext
- Specified by:
schedule
in interfaceCellContext
-
stage
Description copied from interface:AgentContext
The single-threaded executionStage
on which thisAgentContext
runs its application logic.- Specified by:
stage
in interfaceAgentContext
- Specified by:
stage
in interfaceCellContext
-
asyncStage
Description copied from interface:AgentContext
The multi-threaded executionStage
on which thisAgentContext
can run asynchronous operations.- Specified by:
asyncStage
in interfaceAgentContext
-
store
- Specified by:
store
in interfaceCellContext
-
lane
Description copied from interface:AgentContext
Returns the currently executing lane, or null if not currently executing a lane or link callback.- Specified by:
lane
in interfaceAgentContext
-
link
Description copied from interface:AgentContext
Returns the currently executing link, or null if not currently executing a link callback.- Specified by:
link
in interfaceAgentContext
-
getLane
Description copied from interface:AgentContext
Returns theLane
belonging to theAgent
managed by thisAgentContext
that is addressable bylaneUri
, ornull
if no suchLane
exists.- Specified by:
getLane
in interfaceAgentContext
-
openLane
Description copied from interface:AgentContext
Registerslane
withlaneUri
and returnslane
.- Specified by:
openLane
in interfaceAgentContext
-
agents
- Specified by:
agents
in interfaceAgentContext
-
lanes
-
getAgent
- Specified by:
getAgent
in interfaceAgentContext
-
getAgent
- Specified by:
getAgent
in interfaceAgentContext
-
getAgent
- Specified by:
getAgent
in interfaceAgentContext
-
createAgentFactory
-
openAgent
- Specified by:
openAgent
in interfaceAgentContext
-
openAgent
- Specified by:
openAgent
in interfaceAgentContext
-
openAgent
- Specified by:
openAgent
in interfaceAgentContext
-
openAgent
- Specified by:
openAgent
in interfaceAgentContext
-
openAgent
- Specified by:
openAgent
in interfaceAgentContext
-
openAgent
- Specified by:
openAgent
in interfaceAgentContext
-
closeAgent
- Specified by:
closeAgent
in interfaceAgentContext
-
closeAgent
- Specified by:
closeAgent
in interfaceAgentContext
-
close
public void close()- Specified by:
close
in interfaceTierBinding
- Specified by:
close
in interfaceTierContext
- Specified by:
close
in interfaceWarpRef
- Overrides:
close
in classAbstractTierBinding
-
commandLane
- Specified by:
commandLane
in interfaceLaneFactory
-
demandLane
- Specified by:
demandLane
in interfaceLaneFactory
-
demandMapLane
- Specified by:
demandMapLane
in interfaceLaneFactory
-
httpLane
- Specified by:
httpLane
in interfaceLaneFactory
-
joinMapLane
- Specified by:
joinMapLane
in interfaceLaneFactory
-
joinValueLane
- Specified by:
joinValueLane
in interfaceLaneFactory
-
listLane
- Specified by:
listLane
in interfaceLaneFactory
-
mapLane
- Specified by:
mapLane
in interfaceLaneFactory
-
spatialLane
- Specified by:
spatialLane
in interfaceLaneFactory
-
geospatialLane
- Specified by:
geospatialLane
in interfaceLaneFactory
-
supplyLane
- Specified by:
supplyLane
in interfaceLaneFactory
-
valueLane
- Specified by:
valueLane
in interfaceLaneFactory
-
wsLane
- Specified by:
wsLane
in interfaceLaneFactory
-
listData
-
listData
-
mapData
-
mapData
-
spatialData
- Specified by:
spatialData
in interfaceStore
-
spatialData
- Specified by:
spatialData
in interfaceStore
-
geospatialData
- Specified by:
geospatialData
in interfaceStore
-
geospatialData
- Specified by:
geospatialData
in interfaceStore
-
valueData
-
valueData
-
bindDownlink
- Specified by:
bindDownlink
in interfaceCellContext
-
openDownlink
- Specified by:
openDownlink
in interfaceCellContext
-
closeDownlink
- Specified by:
closeDownlink
in interfaceCellContext
-
pushDown
- Specified by:
pushDown
in interfaceCellContext
-
reportDown
- Specified by:
reportDown
in interfaceCellContext
-
openMetaDownlink
- Specified by:
openMetaDownlink
in interfaceCellContext
-
trace
Description copied from interface:Log
Logs a trace-level message. -
debug
Description copied from interface:Log
Logs a debug-level message. -
info
Description copied from interface:Log
Logs an info-level message. -
warn
Description copied from interface:Log
Logs a warn-level message. -
error
Description copied from interface:Log
Logs an error-level message. -
fail
Description copied from interface:Log
Logs an fail-level message. -
willOpen
public void willOpen()- Specified by:
willOpen
in interfaceTierContext
- Overrides:
willOpen
in classAbstractTierBinding
-
didOpen
public void didOpen()- Specified by:
didOpen
in interfaceTierContext
- Overrides:
didOpen
in classAbstractTierBinding
-
willLoad
public void willLoad()- Specified by:
willLoad
in interfaceTierContext
- Overrides:
willLoad
in classAbstractTierBinding
-
didLoad
public void didLoad()- Specified by:
didLoad
in interfaceTierContext
- Overrides:
didLoad
in classAbstractTierBinding
-
willStart
public void willStart()- Specified by:
willStart
in interfaceTierContext
- Overrides:
willStart
in classAbstractTierBinding
-
didStart
public void didStart()- Specified by:
didStart
in interfaceTierContext
- Overrides:
didStart
in classAbstractTierBinding
-
willStop
public void willStop()- Specified by:
willStop
in interfaceTierContext
- Overrides:
willStop
in classAbstractTierBinding
-
didStop
public void didStop()- Specified by:
didStop
in interfaceTierContext
- Overrides:
didStop
in classAbstractTierBinding
-
willUnload
public void willUnload()- Specified by:
willUnload
in interfaceTierContext
- Overrides:
willUnload
in classAbstractTierBinding
-
didUnload
public void didUnload()- Specified by:
didUnload
in interfaceTierContext
- Overrides:
didUnload
in classAbstractTierBinding
-
willClose
public void willClose()- Specified by:
willClose
in interfaceTierContext
- Overrides:
willClose
in classAbstractTierBinding
-
didClose
public void didClose()- Specified by:
didClose
in interfaceTierBinding
- Overrides:
didClose
in classAbstractTierBinding
-
didFail
- Specified by:
didFail
in interfaceTierBinding
- Overrides:
didFail
in classAbstractTierBinding
-