- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.router.MeshTable
-
- All Implemented Interfaces:
swim.api.downlink.DownlinkFactory,swim.api.ref.SwimRef,CellBinding,CellContext,MeshBinding,TierBinding,swim.util.Log
public class MeshTable extends AbstractTierBinding implements MeshBinding
-
-
Field Summary
Fields Modifier and Type Field Description protected MeshContextmeshContext-
Fields inherited from class swim.runtime.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccumulatePartProfile(PartProfile profile)protected voidaccumulateWarpDownlinkProfile(WarpDownlinkProfile profile)PartBindingaddPart(swim.structure.Value partKey, PartBinding part)LinkBindingbindDownlink(swim.api.Downlink downlink)<T> TbottomMesh(Class<T> meshClass)MeshAddresscellAddress()voidcloseDownlink(LinkBinding link)voidclosePart(swim.structure.Value partKey)protected MeshProfilecollectProfile(long dt)protected PartContextcreatePartContext(PartAddress partAddress, PartBinding part)voiddebug(Object message)voiddidClose()protected voiddidClosePart(PartBinding part)voiddidFail(Throwable error)protected voiddidOpenPart(PartBinding part)protected voiddidUpdateMetrics()EdgeBindingedge()StringedgeName()voiderror(Object message)voidfail(Object message)protected voidflushMetrics()PartBindinggateway()PartBindinggetPart(swim.structure.Value partKey)PartBindinggetPart(swim.uri.Uri nodeUri)voidinfo(Object message)MeshContextmeshContext()swim.uri.UrimeshUri()MeshBindingmeshWrapper()voidopenDownlink(LinkBinding link)PartBindingopenGateway()protected voidopenLogLanes(MeshBinding mesh, AgentNode metaMesh)voidopenMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)voidopenMetaHost(HostBinding host, NodeBinding metaHost)voidopenMetaLane(LaneBinding lane, NodeBinding metaLane)protected voidopenMetaLanes(MeshBinding mesh, AgentNode metaMesh)voidopenMetaMesh(MeshBinding mesh, NodeBinding metaMesh)voidopenMetaNode(NodeBinding node, NodeBinding metaNode)voidopenMetaPart(PartBinding part, NodeBinding metaPart)voidopenMetaUplink(LinkBinding uplink, NodeBinding metaUplink)PartBindingopenPart(swim.uri.Uri nodeUri)protected voidopenReflectLanes(MeshBinding mesh, AgentNode metaMesh)voidopenUplink(LinkBinding link)PartBindingourself()swim.collections.FingerTrieSeq<PartBinding>parts()swim.api.policy.Policypolicy()voidpushDown(Push<?> push)voidpushUp(Push<?> push)voidreportDown(Metric metric)protected voidreportMetrics(long dt)swim.concurrent.Scheduleschedule()voidsetGateway(PartBinding gateway)voidsetMeshContext(MeshContext meshContext)voidsetOurself(PartBinding ourself)swim.concurrent.Stagestage()swim.store.StoreBindingstore()TierContexttierContext()voidtrace(Object message)<T> TunwrapMesh(Class<T> meshClass)voidwarn(Object message)protected voidwillClose()protected voidwillLoad()protected voidwillOpen()protected voidwillStart()protected voidwillStop()protected voidwillUnload()-
Methods inherited from class swim.runtime.AbstractTierBinding
activate, close, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload
-
Methods inherited from class swim.runtime.AbstractSwimRef
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:
tierContextin interfaceTierBinding- Specified by:
tierContextin classAbstractTierBinding
-
edge
public final EdgeBinding edge()
- Specified by:
edgein interfaceMeshBinding
-
meshWrapper
public final MeshBinding meshWrapper()
- Specified by:
meshWrapperin interfaceMeshBinding
-
meshContext
public final MeshContext meshContext()
- Specified by:
meshContextin interfaceMeshBinding
-
setMeshContext
public void setMeshContext(MeshContext meshContext)
- Specified by:
setMeshContextin interfaceMeshBinding
-
unwrapMesh
public <T> T unwrapMesh(Class<T> meshClass)
- Specified by:
unwrapMeshin interfaceMeshBinding
-
bottomMesh
public <T> T bottomMesh(Class<T> meshClass)
- Specified by:
bottomMeshin interfaceMeshBinding
-
createPartContext
protected PartContext createPartContext(PartAddress partAddress, PartBinding part)
-
cellAddress
public final MeshAddress cellAddress()
- Specified by:
cellAddressin interfaceCellContext- Specified by:
cellAddressin interfaceMeshBinding
-
edgeName
public final String edgeName()
- Specified by:
edgeNamein interfaceCellContext
-
meshUri
public final swim.uri.Uri meshUri()
- Specified by:
meshUriin interfaceCellContext- Specified by:
meshUriin interfaceMeshBinding
-
policy
public swim.api.policy.Policy policy()
- Specified by:
policyin interfaceCellContext
-
schedule
public swim.concurrent.Schedule schedule()
- Specified by:
schedulein interfaceCellContext
-
stage
public swim.concurrent.Stage stage()
- Specified by:
stagein interfaceCellContext
-
store
public swim.store.StoreBinding store()
- Specified by:
storein interfaceCellContext
-
openMetaMesh
public void openMetaMesh(MeshBinding mesh, NodeBinding metaMesh)
- Specified by:
openMetaMeshin 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:
gatewayin interfaceMeshBinding
-
setGateway
public void setGateway(PartBinding gateway)
- Specified by:
setGatewayin interfaceMeshBinding
-
ourself
public PartBinding ourself()
- Specified by:
ourselfin interfaceMeshBinding
-
setOurself
public void setOurself(PartBinding ourself)
- Specified by:
setOurselfin interfaceMeshBinding
-
parts
public swim.collections.FingerTrieSeq<PartBinding> parts()
- Specified by:
partsin interfaceMeshBinding
-
getPart
public PartBinding getPart(swim.uri.Uri nodeUri)
- Specified by:
getPartin interfaceMeshBinding
-
getPart
public PartBinding getPart(swim.structure.Value partKey)
- Specified by:
getPartin interfaceMeshBinding
-
openPart
public PartBinding openPart(swim.uri.Uri nodeUri)
- Specified by:
openPartin interfaceMeshBinding
-
openGateway
public PartBinding openGateway()
- Specified by:
openGatewayin interfaceMeshBinding
-
addPart
public PartBinding addPart(swim.structure.Value partKey, PartBinding part)
- Specified by:
addPartin interfaceMeshBinding
-
closePart
public void closePart(swim.structure.Value partKey)
-
didOpenPart
protected void didOpenPart(PartBinding part)
-
didClosePart
protected void didClosePart(PartBinding part)
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPartin interfaceMeshBinding
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHostin interfaceMeshBinding
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNodein interfaceMeshBinding
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLanein interfaceMeshBinding
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplinkin interfaceMeshBinding
-
openMetaDownlink
public void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
- Specified by:
openMetaDownlinkin interfaceCellContext
-
bindDownlink
public LinkBinding bindDownlink(swim.api.Downlink downlink)
- Specified by:
bindDownlinkin interfaceCellContext
-
openDownlink
public void openDownlink(LinkBinding link)
- Specified by:
openDownlinkin interfaceCellContext
-
closeDownlink
public void closeDownlink(LinkBinding link)
- Specified by:
closeDownlinkin interfaceCellContext
-
openUplink
public void openUplink(LinkBinding link)
- Specified by:
openUplinkin interfaceCellBinding
-
pushDown
public void pushDown(Push<?> push)
- Specified by:
pushDownin interfaceCellContext
-
pushUp
public void pushUp(Push<?> push)
- Specified by:
pushUpin interfaceCellBinding
-
trace
public void trace(Object message)
- Specified by:
tracein interfaceswim.util.Log
-
debug
public void debug(Object message)
- Specified by:
debugin interfaceswim.util.Log
-
info
public void info(Object message)
- Specified by:
infoin interfaceswim.util.Log
-
warn
public void warn(Object message)
- Specified by:
warnin interfaceswim.util.Log
-
error
public void error(Object message)
- Specified by:
errorin interfaceswim.util.Log
-
fail
public void fail(Object message)
- Specified by:
failin interfaceswim.util.Log
-
willOpen
protected void willOpen()
- Overrides:
willOpenin classAbstractTierBinding
-
willLoad
protected void willLoad()
- Overrides:
willLoadin classAbstractTierBinding
-
willStart
protected void willStart()
- Overrides:
willStartin classAbstractTierBinding
-
willStop
protected void willStop()
- Overrides:
willStopin classAbstractTierBinding
-
willUnload
protected void willUnload()
- Overrides:
willUnloadin classAbstractTierBinding
-
willClose
protected void willClose()
- Overrides:
willClosein classAbstractTierBinding
-
didClose
public void didClose()
- Specified by:
didClosein interfaceTierBinding- Overrides:
didClosein classAbstractTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFailin interfaceTierBinding- Overrides:
didFailin classAbstractTierBinding
-
reportDown
public void reportDown(Metric metric)
- Specified by:
reportDownin 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)
-
-