java.lang.Object
swim.system.AbstractWarpRef
swim.system.AbstractTierBinding
swim.system.agent.AgentNode
swim.system.agent.AgentModel
- All Implemented Interfaces:
Executor
,DownlinkFactory
,LaneFactory
,WarpRef
,Schedule
,Stage
,Task
,TaskFunction
,CellBinding
,CellContext
,NodeBinding
,TierBinding
,Log
-
Field Summary
Fields inherited from class swim.system.agent.AgentNode
nodeContext, taskContext
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
accumulateExecTime
(long agentExecDelta) protected void
protected void
accumulateWarpLaneProfile
(WarpLaneProfile profile) addAgentView
(AgentView view) agentIds()
agents()
protected NodeProfile
collectProfile
(long dt) createAgent
(AgentFactory<?> agentFactory, Value id, Value props) void
Logs a debug-level message.void
didClose()
protected void
didCloseAgentView
(AgentView view) protected void
didCloseLane
(LaneBinding lane) void
protected void
didLoad()
protected void
didOpen()
protected void
didOpenAgent
(AgentView view) protected void
didOpenLane
(LaneBinding lane) protected void
didStart()
protected void
didStop()
protected void
protected void
void
Logs an error-level message.void
Logs an fail-level message.protected void
<S extends Agent>
SgetAgentView
(Value id) void
Logs an info-level message.<S extends Agent>
SopenAgent
(Value id, Value props, AgentFactory<S> agentFactory) protected void
openLogLanes
(NodeBinding node, AgentNode metaNode) protected void
openMetaLanes
(NodeBinding node, AgentNode metaNode) void
openMetaNode
(NodeBinding node, NodeBinding metaNode) protected void
openReflectLanes
(NodeBinding node, AgentNode metaNode) props()
void
void
removeAgentView
(AgentView view) void
reportDown
(Metric metric) protected void
reportMetrics
(long dt) void
setNodeContext
(NodeContext nodeContext) void
Logs a trace-level message.void
Logs a warn-level message.void
protected void
willLoad()
protected void
willOpen()
protected void
protected void
willStop()
protected void
Methods inherited from class swim.system.agent.AgentNode
asyncStage, bindDownlink, bottomNode, call, cellAddress, closeDownlink, closeLane, commandLane, createAgentFactory, createAgentFactory, createdTime, createLaneContext, demandLane, demandMapLane, edgeName, execute, geospatialLane, getLane, host, hostUri, httpLane, identity, joinMapLane, joinValueLane, lanes, listLane, mapLane, meshUri, nodeContext, nodeUri, nodeWrapper, normalizedLaneUri, openAgents, openDownlink, openLane, openLane, openLane, openLanes, openLaneView, openMetaDownlink, openMetaLane, openMetaUplink, openUnknownUplink, openUplink, partKey, policy, pushDown, runTask, schedule, setTaskContext, setTimer, spatialLane, stage, store, supplyLane, task, taskContext, taskDidCancel, taskWillBlock, taskWillCue, tierContext, timer, unwrapNode, valueLane, wsLane
Methods inherited from class swim.system.AbstractTierBinding
activate, awaitStart, close, 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
-
Field Details
-
props
-
-
Constructor Details
-
AgentModel
-
-
Method Details
-
setNodeContext
- Specified by:
setNodeContext
in interfaceNodeBinding
- Overrides:
setNodeContext
in classAgentNode
-
props
-
openMetaNode
- Specified by:
openMetaNode
in interfaceNodeBinding
- Overrides:
openMetaNode
in classAgentNode
-
openMetaLanes
-
openReflectLanes
-
openLogLanes
-
agentIds
- Specified by:
agentIds
in interfaceNodeBinding
- Overrides:
agentIds
in classAgentNode
-
agents
- Specified by:
agents
in interfaceNodeBinding
- Overrides:
agents
in classAgentNode
-
getAgentView
-
getAgent
-
addAgentView
-
createAgent
-
openAgent
-
removeAgentView
-
didOpenLane
- Overrides:
didOpenLane
in classAgentNode
-
didCloseLane
- Overrides:
didCloseLane
in classAgentNode
-
pushUp
- Specified by:
pushUp
in interfaceCellBinding
- Overrides:
pushUp
in classAgentNode
-
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. -
didOpenAgent
-
didCloseAgentView
-
willOpen
protected void willOpen() -
didOpen
protected void didOpen()- Overrides:
didOpen
in classAbstractTierBinding
-
willLoad
protected void willLoad() -
didLoad
protected void didLoad()- Overrides:
didLoad
in classAbstractTierBinding
-
willStart
protected void willStart() -
didStart
protected void didStart()- Overrides:
didStart
in classAbstractTierBinding
-
willStop
protected void willStop() -
didStop
protected void didStop()- Overrides:
didStop
in classAbstractTierBinding
-
willUnload
protected void willUnload()- Overrides:
willUnload
in classAgentNode
-
didUnload
protected void didUnload()- Overrides:
didUnload
in classAbstractTierBinding
-
willClose
public void willClose() -
didClose
public void didClose()- Specified by:
didClose
in interfaceTierBinding
- Overrides:
didClose
in classAgentNode
-
didFail
- Specified by:
didFail
in interfaceTierBinding
- Overrides:
didFail
in classAgentNode
-
reportDown
- Specified by:
reportDown
in interfaceCellContext
- Overrides:
reportDown
in classAgentNode
-
accumulateExecTime
public void accumulateExecTime(long agentExecDelta) -
accumulateWarpLaneProfile
-
accumulateWarpDownlinkProfile
-
didUpdateMetrics
protected void didUpdateMetrics() -
flushMetrics
protected void flushMetrics() -
reportMetrics
protected void reportMetrics(long dt) -
collectProfile
-