- java.lang.Object
-
- swim.system.agent.AgentLane
-
- All Implemented Interfaces:
CellContext
,LaneContext
,TierContext
,Log
public class AgentLane extends Object implements LaneContext
-
-
Field Summary
Fields Modifier and Type Field Description protected LaneBinding
lane
protected LaneAddress
laneAddress
protected AgentNode
node
-
Constructor Summary
Constructors Constructor Description AgentLane(AgentNode node, LaneBinding lane, LaneAddress laneAddress)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkBinding
bindDownlink(Downlink downlink)
<T> T
bottomLane(Class<T> laneClass)
LaneAddress
cellAddress()
void
close()
void
closeDownlink(LinkBinding link)
void
debug(Object message)
Logs a debug-level message.void
didLoad()
void
didOpen()
void
didStart()
void
didStop()
void
didUnload()
String
edgeName()
void
error(Object message)
Logs an error-level message.void
fail(Object message)
Logs an fail-level message.Uri
hostUri()
Identity
identity()
void
info(Object message)
Logs an info-level message.Uri
laneUri()
LaneBinding
laneWrapper()
Uri
meshUri()
NodeBinding
node()
Uri
nodeUri()
void
openDownlink(LinkBinding link)
protected void
openLogLanes(LaneBinding lane, AgentNode metaLane)
void
openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
void
openMetaLane(LaneBinding lane, NodeBinding metaLane)
protected void
openMetaLanes(LaneBinding lane, AgentNode metaLane)
void
openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
Value
partKey()
Policy
policy()
void
pushDown(Push<?> push)
void
reportDown(Metric metric)
Schedule
schedule()
Stage
stage()
StoreBinding
store()
void
trace(Object message)
Logs a trace-level message.<T> T
unwrapLane(Class<T> laneClass)
void
warn(Object message)
Logs a warn-level message.void
willClose()
void
willLoad()
void
willOpen()
void
willStart()
void
willStop()
void
willUnload()
-
-
-
Field Detail
-
node
protected final AgentNode node
-
lane
protected final LaneBinding lane
-
laneAddress
protected final LaneAddress laneAddress
-
-
Constructor Detail
-
AgentLane
public AgentLane(AgentNode node, LaneBinding lane, LaneAddress laneAddress)
-
-
Method Detail
-
node
public final NodeBinding node()
- Specified by:
node
in interfaceLaneContext
-
laneWrapper
public final LaneBinding laneWrapper()
- Specified by:
laneWrapper
in interfaceLaneContext
-
unwrapLane
public <T> T unwrapLane(Class<T> laneClass)
- Specified by:
unwrapLane
in interfaceLaneContext
-
bottomLane
public <T> T bottomLane(Class<T> laneClass)
- Specified by:
bottomLane
in interfaceLaneContext
-
cellAddress
public final LaneAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceLaneContext
-
edgeName
public final String edgeName()
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfaceLaneContext
-
meshUri
public final Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
- Specified by:
meshUri
in interfaceLaneContext
-
partKey
public final Value partKey()
- Specified by:
partKey
in interfaceLaneContext
-
hostUri
public final Uri hostUri()
- Specified by:
hostUri
in interfaceLaneContext
-
nodeUri
public final Uri nodeUri()
- Specified by:
nodeUri
in interfaceLaneContext
-
laneUri
public final Uri laneUri()
- Specified by:
laneUri
in interfaceLaneContext
-
identity
public final Identity identity()
- Specified by:
identity
in interfaceLaneContext
-
policy
public Policy policy()
- Specified by:
policy
in interfaceCellContext
-
schedule
public Schedule schedule()
- Specified by:
schedule
in interfaceCellContext
-
stage
public Stage stage()
- Specified by:
stage
in interfaceCellContext
-
store
public StoreBinding store()
- Specified by:
store
in interfaceCellContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceLaneContext
-
openMetaLanes
protected void openMetaLanes(LaneBinding lane, AgentNode metaLane)
-
openLogLanes
protected void openLogLanes(LaneBinding lane, AgentNode metaLane)
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceLaneContext
-
openMetaDownlink
public void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
- Specified by:
openMetaDownlink
in interfaceCellContext
-
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
-
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
-
-