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 Agentprotected final Valueprotected final AgentModelprotected final ValueFields 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 Agentagent()final ValueagentId()agents()The multi-threaded executionStageon which thisAgentContextcan run asynchronous operations.bindDownlink(Downlink downlink) <T> TbottomNode(Class<T> nodeClass) voidclose()voidcloseAgent(String name) voidcloseAgent(Value id) voidcloseDownlink(LinkBinding link) <V> CommandLane<V><A extends Agent>
AgentFactory<A>createAgentFactory(Class<? extends A> agentClass) voidLogs a debug-level message.<V> DemandLane<V><K,V> DemandMapLane<K, V> voiddidClose()voidvoiddidLoad()voiddidOpen()voiddidStart()voiddidStop()voidfinal StringedgeName()voidLogs an error-level message.voidLogs an fail-level message.geospatialData(String name) geospatialData(Value name) <K,V> SpatialLane<K, R2Shape, V> <A extends Agent>
AReturns theLanebelonging to theAgentmanaged by thisAgentContextthat is addressable bylaneUri, ornullif no suchLaneexists.Returns the value ofnameinAgentContext.props().Returns the value ofkeyinAgentContext.props().final UrihostUri()ThehostUriof theAgentmanaged by thisAgentContext.<V> HttpLane<V>httpLane()voidLogs 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 UrimeshUri()final UrinodeUri()ThenodeUriof theAgentmanaged 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) voidopenDownlink(LinkBinding link) RegisterslanewithlaneUriand returnslane.voidopenMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink) policy()final Valueprops()ARecordthat maps every dynamic property inAgentContext.nodeUri(), as defined byAgentRoute.pattern(), to its value.voidvoidreportDown(Metric metric) schedule()TheSchedulethat thisAgentContextis 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 executionStageon which thisAgentContextruns its application logic.store()<V> SupplyLane<V>voidLogs a trace-level message.<T> TunwrapNode(Class<T> nodeClass) <V> ValueLane<V>voidLogs a warn-level message.voidvoidwillLoad()voidwillOpen()voidvoidwillStop()void<I,O> WsLane<I, O> wsLane()Methods inherited from class swim.system.AbstractTierBinding
activate, awaitStart, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unloadMethods 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, nodeRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
tierContextin interfaceTierBinding- Specified by:
tierContextin classAbstractTierBinding
-
unwrapNode
-
bottomNode
-
cellAddress
- Specified by:
cellAddressin interfaceCellContext
-
edgeName
- Specified by:
edgeNamein interfaceCellContext
-
meshUri
- Specified by:
meshUriin interfaceCellContext
-
hostUri
Description copied from interface:AgentContextThehostUriof theAgentmanaged by thisAgentContext.- Specified by:
hostUriin interfaceAgentContext
-
nodeUri
Description copied from interface:AgentContextThenodeUriof theAgentmanaged by thisAgentContext.- Specified by:
nodeUriin interfaceAgentContext
-
agentId
- Specified by:
agentIdin interfaceAgentContext
-
props
Description copied from interface:AgentContextARecordthat maps every dynamic property inAgentContext.nodeUri(), as defined byAgentRoute.pattern(), to its value. An empty result indicates thatnodeUricontains no dynamic components.- Specified by:
propsin interfaceAgentContext
-
getProp
Description copied from interface:AgentContextReturns the value ofkeyinAgentContext.props().- Specified by:
getPropin interfaceAgentContext
-
getProp
Description copied from interface:AgentContextReturns the value ofnameinAgentContext.props().- Specified by:
getPropin interfaceAgentContext
-
policy
- Specified by:
policyin interfaceCellContext
-
schedule
Description copied from interface:AgentContextTheSchedulethat thisAgentContextis bound to.- Specified by:
schedulein interfaceAgentContext- Specified by:
schedulein interfaceCellContext
-
stage
Description copied from interface:AgentContextThe single-threaded executionStageon which thisAgentContextruns its application logic.- Specified by:
stagein interfaceAgentContext- Specified by:
stagein interfaceCellContext
-
asyncStage
Description copied from interface:AgentContextThe multi-threaded executionStageon which thisAgentContextcan run asynchronous operations.- Specified by:
asyncStagein interfaceAgentContext
-
store
- Specified by:
storein interfaceCellContext
-
lane
Description copied from interface:AgentContextReturns the currently executing lane, or null if not currently executing a lane or link callback.- Specified by:
lanein interfaceAgentContext
-
link
Description copied from interface:AgentContextReturns the currently executing link, or null if not currently executing a link callback.- Specified by:
linkin interfaceAgentContext
-
getLane
Description copied from interface:AgentContextReturns theLanebelonging to theAgentmanaged by thisAgentContextthat is addressable bylaneUri, ornullif no suchLaneexists.- Specified by:
getLanein interfaceAgentContext
-
openLane
Description copied from interface:AgentContextRegisterslanewithlaneUriand returnslane.- Specified by:
openLanein interfaceAgentContext
-
agents
- Specified by:
agentsin interfaceAgentContext
-
lanes
-
getAgent
- Specified by:
getAgentin interfaceAgentContext
-
getAgent
- Specified by:
getAgentin interfaceAgentContext
-
getAgent
- Specified by:
getAgentin interfaceAgentContext
-
createAgentFactory
-
openAgent
- Specified by:
openAgentin interfaceAgentContext
-
openAgent
- Specified by:
openAgentin interfaceAgentContext
-
openAgent
- Specified by:
openAgentin interfaceAgentContext
-
openAgent
- Specified by:
openAgentin interfaceAgentContext
-
openAgent
- Specified by:
openAgentin interfaceAgentContext
-
openAgent
- Specified by:
openAgentin interfaceAgentContext
-
closeAgent
- Specified by:
closeAgentin interfaceAgentContext
-
closeAgent
- Specified by:
closeAgentin interfaceAgentContext
-
close
public void close()- Specified by:
closein interfaceTierBinding- Specified by:
closein interfaceTierContext- Specified by:
closein interfaceWarpRef- Overrides:
closein classAbstractTierBinding
-
commandLane
- Specified by:
commandLanein interfaceLaneFactory
-
demandLane
- Specified by:
demandLanein interfaceLaneFactory
-
demandMapLane
- Specified by:
demandMapLanein interfaceLaneFactory
-
httpLane
- Specified by:
httpLanein interfaceLaneFactory
-
joinMapLane
- Specified by:
joinMapLanein interfaceLaneFactory
-
joinValueLane
- Specified by:
joinValueLanein interfaceLaneFactory
-
listLane
- Specified by:
listLanein interfaceLaneFactory
-
mapLane
- Specified by:
mapLanein interfaceLaneFactory
-
spatialLane
- Specified by:
spatialLanein interfaceLaneFactory
-
geospatialLane
- Specified by:
geospatialLanein interfaceLaneFactory
-
supplyLane
- Specified by:
supplyLanein interfaceLaneFactory
-
valueLane
- Specified by:
valueLanein interfaceLaneFactory
-
wsLane
- Specified by:
wsLanein interfaceLaneFactory
-
listData
-
listData
-
mapData
-
mapData
-
spatialData
- Specified by:
spatialDatain interfaceStore
-
spatialData
- Specified by:
spatialDatain interfaceStore
-
geospatialData
- Specified by:
geospatialDatain interfaceStore
-
geospatialData
- Specified by:
geospatialDatain interfaceStore
-
valueData
-
valueData
-
bindDownlink
- Specified by:
bindDownlinkin interfaceCellContext
-
openDownlink
- Specified by:
openDownlinkin interfaceCellContext
-
closeDownlink
- Specified by:
closeDownlinkin interfaceCellContext
-
pushDown
- Specified by:
pushDownin interfaceCellContext
-
reportDown
- Specified by:
reportDownin interfaceCellContext
-
openMetaDownlink
- Specified by:
openMetaDownlinkin interfaceCellContext
-
trace
Description copied from interface:LogLogs a trace-level message. -
debug
Description copied from interface:LogLogs a debug-level message. -
info
Description copied from interface:LogLogs an info-level message. -
warn
Description copied from interface:LogLogs a warn-level message. -
error
Description copied from interface:LogLogs an error-level message. -
fail
Description copied from interface:LogLogs an fail-level message. -
willOpen
public void willOpen()- Specified by:
willOpenin interfaceTierContext- Overrides:
willOpenin classAbstractTierBinding
-
didOpen
public void didOpen()- Specified by:
didOpenin interfaceTierContext- Overrides:
didOpenin classAbstractTierBinding
-
willLoad
public void willLoad()- Specified by:
willLoadin interfaceTierContext- Overrides:
willLoadin classAbstractTierBinding
-
didLoad
public void didLoad()- Specified by:
didLoadin interfaceTierContext- Overrides:
didLoadin classAbstractTierBinding
-
willStart
public void willStart()- Specified by:
willStartin interfaceTierContext- Overrides:
willStartin classAbstractTierBinding
-
didStart
public void didStart()- Specified by:
didStartin interfaceTierContext- Overrides:
didStartin classAbstractTierBinding
-
willStop
public void willStop()- Specified by:
willStopin interfaceTierContext- Overrides:
willStopin classAbstractTierBinding
-
didStop
public void didStop()- Specified by:
didStopin interfaceTierContext- Overrides:
didStopin classAbstractTierBinding
-
willUnload
public void willUnload()- Specified by:
willUnloadin interfaceTierContext- Overrides:
willUnloadin classAbstractTierBinding
-
didUnload
public void didUnload()- Specified by:
didUnloadin interfaceTierContext- Overrides:
didUnloadin classAbstractTierBinding
-
willClose
public void willClose()- Specified by:
willClosein interfaceTierContext- Overrides:
willClosein classAbstractTierBinding
-
didClose
public void didClose()- Specified by:
didClosein interfaceTierBinding- Overrides:
didClosein classAbstractTierBinding
-
didFail
- Specified by:
didFailin interfaceTierBinding- Overrides:
didFailin classAbstractTierBinding
-