- java.lang.Object
-
- swim.system.AbstractWarpRef
-
- swim.system.AbstractTierBinding
-
- swim.system.router.MeshTable
-
- All Implemented Interfaces:
DownlinkFactory
,WarpRef
,CellBinding
,CellContext
,MeshBinding
,TierBinding
,Log
public class MeshTable extends AbstractTierBinding implements MeshBinding
-
-
Field Summary
Fields Modifier and Type Field Description protected MeshContext
meshContext
-
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 Constructor Description MeshTable()
-
Method Summary
-
Methods inherited from class swim.system.AbstractTierBinding
activate, awaitStart, close, didLoad, didOpen, didStart, didStop, didUnload, 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 Detail
-
meshContext
protected MeshContext meshContext
-
-
Method Detail
-
tierContext
public final TierContext tierContext()
- Specified by:
tierContext
in interfaceTierBinding
- Specified by:
tierContext
in classAbstractTierBinding
-
edge
public final EdgeBinding edge()
- Specified by:
edge
in interfaceMeshBinding
-
meshWrapper
public final MeshBinding meshWrapper()
- Specified by:
meshWrapper
in interfaceMeshBinding
-
meshContext
public final MeshContext meshContext()
- Specified by:
meshContext
in interfaceMeshBinding
-
setMeshContext
public void setMeshContext(MeshContext meshContext)
- Specified by:
setMeshContext
in interfaceMeshBinding
-
unwrapMesh
public <T> T unwrapMesh(Class<T> meshClass)
- Specified by:
unwrapMesh
in interfaceMeshBinding
-
bottomMesh
public <T> T bottomMesh(Class<T> meshClass)
- Specified by:
bottomMesh
in interfaceMeshBinding
-
createPartContext
protected PartContext createPartContext(PartAddress partAddress, PartBinding part)
-
cellAddress
public final MeshAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceMeshBinding
-
edgeName
public final String edgeName()
- Specified by:
edgeName
in interfaceCellContext
-
meshUri
public final Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
- Specified by:
meshUri
in interfaceMeshBinding
-
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
-
openMetaMesh
public void openMetaMesh(MeshBinding mesh, NodeBinding metaMesh)
- Specified by:
openMetaMesh
in interfaceMeshBinding
-
openMetaLanes
protected void openMetaLanes(MeshBinding mesh, AgentNode metaMesh)
-
openReflectLanes
protected void openReflectLanes(MeshBinding mesh, AgentNode metaMesh)
-
openLogLanes
protected void openLogLanes(MeshBinding mesh, AgentNode metaMesh)
-
gateway
public PartBinding gateway()
- Specified by:
gateway
in interfaceMeshBinding
-
setGateway
public void setGateway(PartBinding gateway)
- Specified by:
setGateway
in interfaceMeshBinding
-
ourself
public PartBinding ourself()
- Specified by:
ourself
in interfaceMeshBinding
-
setOurself
public void setOurself(PartBinding ourself)
- Specified by:
setOurself
in interfaceMeshBinding
-
parts
public FingerTrieSeq<PartBinding> parts()
- Specified by:
parts
in interfaceMeshBinding
-
getPart
public PartBinding getPart(Uri nodeUri)
- Specified by:
getPart
in interfaceMeshBinding
-
getPart
public PartBinding getPart(Value partKey)
- Specified by:
getPart
in interfaceMeshBinding
-
openPart
public PartBinding openPart(Uri nodeUri)
- Specified by:
openPart
in interfaceMeshBinding
-
openGateway
public PartBinding openGateway()
- Specified by:
openGateway
in interfaceMeshBinding
-
addPart
public PartBinding addPart(Value partKey, PartBinding part)
- Specified by:
addPart
in interfaceMeshBinding
-
closePart
public void closePart(Value partKey)
-
didOpenPart
protected void didOpenPart(PartBinding part)
-
didClosePart
protected void didClosePart(PartBinding part)
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPart
in interfaceMeshBinding
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHost
in interfaceMeshBinding
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfaceMeshBinding
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceMeshBinding
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceMeshBinding
-
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
-
openUplink
public void openUplink(LinkBinding link)
- Specified by:
openUplink
in interfaceCellBinding
-
pushDown
public void pushDown(Push<?> push)
- Specified by:
pushDown
in interfaceCellContext
-
pushUp
public void pushUp(Push<?> push)
- Specified by:
pushUp
in interfaceCellBinding
-
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.
-
willOpen
protected void willOpen()
- Overrides:
willOpen
in classAbstractTierBinding
-
willLoad
protected void willLoad()
- Overrides:
willLoad
in classAbstractTierBinding
-
willStart
protected void willStart()
- Overrides:
willStart
in classAbstractTierBinding
-
willStop
protected void willStop()
- Overrides:
willStop
in classAbstractTierBinding
-
willUnload
protected void willUnload()
- Overrides:
willUnload
in classAbstractTierBinding
-
willClose
protected void willClose()
- Overrides:
willClose
in classAbstractTierBinding
-
didClose
public void didClose()
- Specified by:
didClose
in interfaceTierBinding
- Overrides:
didClose
in classAbstractTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFail
in interfaceTierBinding
- Overrides:
didFail
in classAbstractTierBinding
-
reportDown
public void reportDown(Metric metric)
- Specified by:
reportDown
in interfaceCellContext
-
accumulatePartProfile
protected void accumulatePartProfile(PartProfile profile)
-
accumulateWarpDownlinkProfile
protected void accumulateWarpDownlinkProfile(WarpDownlinkProfile profile)
-
didUpdateMetrics
protected void didUpdateMetrics()
-
flushMetrics
protected void flushMetrics()
-
reportMetrics
protected void reportMetrics(long dt)
-
collectProfile
protected MeshProfile collectProfile(long dt)
-
-