- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.router.EdgeTable
-
- All Implemented Interfaces:
swim.api.downlink.DownlinkFactory,swim.api.ref.SwimRef,CellBinding,CellContext,EdgeBinding,TierBinding,swim.util.Log
public class EdgeTable extends AbstractTierBinding implements EdgeBinding
-
-
Field Summary
Fields Modifier and Type Field Description protected EdgeContextedgeContext-
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 EdgeTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccumulateMeshProfile(MeshProfile profile)protected voidaccumulateWarpDownlinkProfile(WarpDownlinkProfile profile)LinkBindingbindDownlink(swim.api.Downlink downlink)<T> TbottomEdge(Class<T> edgeClass)EdgeAddresscellAddress()voidcloseDownlink(LinkBinding link)voidcloseMesh(swim.uri.Uri meshUri)protected EdgeProfilecollectProfile(long dt)protected MeshContextcreateMeshContext(MeshAddress meshAddress, MeshBinding mesh)voiddebug(Object message)voiddidClose()protected voiddidCloseMesh(MeshBinding mesh)voiddidFail(Throwable error)protected voiddidOpenMesh(MeshBinding mesh)protected voiddidUpdateMetrics()EdgeContextedgeContext()StringedgeName()EdgeBindingedgeWrapper()voiderror(Object message)voidfail(Object message)protected voidflushMetrics()MeshBindinggetMesh(swim.uri.Uri meshUri)voidinfo(Object message)swim.collections.HashTrieMap<swim.uri.Uri,MeshBinding>meshes()swim.uri.UrimeshUri()MeshBindingnetwork()voidopenDownlink(LinkBinding link)protected voidopenLogLanes(EdgeBinding edge, AgentNode metaEdge)MeshBindingopenMesh(swim.uri.Uri meshUri)MeshBindingopenMesh(swim.uri.Uri meshUri, MeshBinding mesh)voidopenMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)voidopenMetaEdge(EdgeBinding edge, NodeBinding metaEdge)voidopenMetaHost(HostBinding host, NodeBinding metaHost)voidopenMetaLane(LaneBinding lane, NodeBinding metaLane)protected voidopenMetaLanes(EdgeBinding edge, AgentNode metaEdge)voidopenMetaMesh(MeshBinding mesh, NodeBinding metaMesh)voidopenMetaNode(NodeBinding node, NodeBinding metaNode)voidopenMetaPart(PartBinding part, NodeBinding metaPart)voidopenMetaUplink(LinkBinding uplink, NodeBinding metaUplink)protected voidopenReflectLanes(EdgeBinding edge, AgentNode metaEdge)voidopenUplink(LinkBinding link)swim.api.policy.Policypolicy()voidpushDown(Push<?> push)voidpushUp(Push<?> push)voidreportDown(Metric metric)protected voidreportMetrics(long dt)swim.concurrent.Scheduleschedule()voidsetEdgeContext(EdgeContext edgeContext)voidsetNetwork(MeshBinding network)swim.concurrent.Stagestage()swim.store.StoreBindingstore()TierContexttierContext()voidtrace(Object message)<T> TunwrapEdge(Class<T> edgeClass)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
-
edgeContext
protected EdgeContext edgeContext
-
-
Method Detail
-
tierContext
public final TierContext tierContext()
- Specified by:
tierContextin interfaceTierBinding- Specified by:
tierContextin classAbstractTierBinding
-
edgeWrapper
public final EdgeBinding edgeWrapper()
- Specified by:
edgeWrapperin interfaceEdgeBinding
-
edgeContext
public final EdgeContext edgeContext()
- Specified by:
edgeContextin interfaceEdgeBinding
-
setEdgeContext
public void setEdgeContext(EdgeContext edgeContext)
- Specified by:
setEdgeContextin interfaceEdgeBinding
-
unwrapEdge
public <T> T unwrapEdge(Class<T> edgeClass)
- Specified by:
unwrapEdgein interfaceEdgeBinding
-
bottomEdge
public <T> T bottomEdge(Class<T> edgeClass)
- Specified by:
bottomEdgein interfaceEdgeBinding
-
createMeshContext
protected MeshContext createMeshContext(MeshAddress meshAddress, MeshBinding mesh)
-
cellAddress
public final EdgeAddress cellAddress()
- Specified by:
cellAddressin interfaceCellContext- Specified by:
cellAddressin interfaceEdgeBinding
-
edgeName
public final String edgeName()
- Specified by:
edgeNamein interfaceCellContext- Specified by:
edgeNamein interfaceEdgeBinding
-
meshUri
public final swim.uri.Uri meshUri()
- Specified by:
meshUriin interfaceCellContext
-
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
-
openMetaEdge
public void openMetaEdge(EdgeBinding edge, NodeBinding metaEdge)
- Specified by:
openMetaEdgein interfaceEdgeBinding
-
openMetaLanes
protected void openMetaLanes(EdgeBinding edge, AgentNode metaEdge)
-
openReflectLanes
protected void openReflectLanes(EdgeBinding edge, AgentNode metaEdge)
-
openLogLanes
protected void openLogLanes(EdgeBinding edge, AgentNode metaEdge)
-
network
public MeshBinding network()
- Specified by:
networkin interfaceEdgeBinding
-
setNetwork
public void setNetwork(MeshBinding network)
- Specified by:
setNetworkin interfaceEdgeBinding
-
meshes
public swim.collections.HashTrieMap<swim.uri.Uri,MeshBinding> meshes()
- Specified by:
meshesin interfaceEdgeBinding
-
getMesh
public MeshBinding getMesh(swim.uri.Uri meshUri)
- Specified by:
getMeshin interfaceEdgeBinding
-
openMesh
public MeshBinding openMesh(swim.uri.Uri meshUri)
- Specified by:
openMeshin interfaceEdgeBinding
-
openMesh
public MeshBinding openMesh(swim.uri.Uri meshUri, MeshBinding mesh)
- Specified by:
openMeshin interfaceEdgeBinding
-
closeMesh
public void closeMesh(swim.uri.Uri meshUri)
-
didOpenMesh
protected void didOpenMesh(MeshBinding mesh)
-
didCloseMesh
protected void didCloseMesh(MeshBinding mesh)
-
openMetaMesh
public void openMetaMesh(MeshBinding mesh, NodeBinding metaMesh)
- Specified by:
openMetaMeshin interfaceEdgeBinding
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPartin interfaceEdgeBinding
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHostin interfaceEdgeBinding
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNodein interfaceEdgeBinding
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLanein interfaceEdgeBinding
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplinkin interfaceEdgeBinding
-
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
-
accumulateMeshProfile
protected void accumulateMeshProfile(MeshProfile profile)
-
accumulateWarpDownlinkProfile
protected void accumulateWarpDownlinkProfile(WarpDownlinkProfile profile)
-
didUpdateMetrics
protected void didUpdateMetrics()
-
flushMetrics
protected void flushMetrics()
-
reportMetrics
protected void reportMetrics(long dt)
-
collectProfile
protected EdgeProfile collectProfile(long dt)
-
-