- java.lang.Object
-
- swim.system.router.HostTableNode
-
- All Implemented Interfaces:
CellContext
,NodeContext
,TierContext
,Log
public class HostTableNode extends Object implements NodeContext
-
-
Field Summary
Fields Modifier and Type Field Description protected HostTable
host
protected NodeBinding
node
protected NodeAddress
nodeAddress
-
Constructor Summary
Constructors Constructor Description HostTableNode(HostTable host, NodeBinding node, NodeAddress nodeAddress)
-
Method Summary
-
-
-
Field Detail
-
host
protected final HostTable host
-
node
protected final NodeBinding node
-
nodeAddress
protected final NodeAddress nodeAddress
-
-
Constructor Detail
-
HostTableNode
public HostTableNode(HostTable host, NodeBinding node, NodeAddress nodeAddress)
-
-
Method Detail
-
host
public final HostBinding host()
- Specified by:
host
in interfaceNodeContext
-
nodeWrapper
public final NodeBinding nodeWrapper()
- Specified by:
nodeWrapper
in interfaceNodeContext
-
unwrapNode
public <T> T unwrapNode(Class<T> nodeClass)
- Specified by:
unwrapNode
in interfaceNodeContext
-
bottomNode
public <T> T bottomNode(Class<T> nodeClass)
- Specified by:
bottomNode
in interfaceNodeContext
-
cellAddress
public final NodeAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceNodeContext
-
edgeName
public final String edgeName()
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfaceNodeContext
-
meshUri
public final Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
- Specified by:
meshUri
in interfaceNodeContext
-
partKey
public final Value partKey()
- Specified by:
partKey
in interfaceNodeContext
-
hostUri
public final Uri hostUri()
- Specified by:
hostUri
in interfaceNodeContext
-
nodeUri
public final Uri nodeUri()
- Specified by:
nodeUri
in interfaceNodeContext
-
createdTime
public long createdTime()
- Specified by:
createdTime
in interfaceNodeContext
-
identity
public final Identity identity()
- Specified by:
identity
in interfaceNodeContext
-
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
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfaceNodeContext
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLane
in interfaceNodeContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLane
in interfaceNodeContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceNodeContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceNodeContext
-
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 interfaceNodeContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanes
in interfaceNodeContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactory
in interfaceNodeContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfaceNodeContext
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgents
in interfaceNodeContext
-
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
-
-