- java.lang.Object
-
- swim.system.AbstractWarpRef
-
- swim.system.AbstractTierBinding
-
- swim.system.router.EdgeTable
-
- All Implemented Interfaces:
DownlinkFactory
,WarpRef
,CellBinding
,CellContext
,EdgeBinding
,TierBinding
,Log
public class EdgeTable extends AbstractTierBinding implements EdgeBinding
-
-
Field Summary
Fields Modifier and Type Field Description protected EdgeContext
edgeContext
-
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 EdgeTable()
-
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
-
edgeContext
protected EdgeContext edgeContext
-
-
Method Detail
-
tierContext
public final TierContext tierContext()
- Specified by:
tierContext
in interfaceTierBinding
- Specified by:
tierContext
in classAbstractTierBinding
-
edgeWrapper
public final EdgeBinding edgeWrapper()
- Specified by:
edgeWrapper
in interfaceEdgeBinding
-
edgeContext
public final EdgeContext edgeContext()
- Specified by:
edgeContext
in interfaceEdgeBinding
-
setEdgeContext
public void setEdgeContext(EdgeContext edgeContext)
- Specified by:
setEdgeContext
in interfaceEdgeBinding
-
unwrapEdge
public <T> T unwrapEdge(Class<T> edgeClass)
- Specified by:
unwrapEdge
in interfaceEdgeBinding
-
bottomEdge
public <T> T bottomEdge(Class<T> edgeClass)
- Specified by:
bottomEdge
in interfaceEdgeBinding
-
createMeshContext
protected MeshContext createMeshContext(MeshAddress meshAddress, MeshBinding mesh)
-
cellAddress
public final EdgeAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceEdgeBinding
-
edgeName
public final String edgeName()
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfaceEdgeBinding
-
meshUri
public final Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
-
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
-
openMetaEdge
public void openMetaEdge(EdgeBinding edge, NodeBinding metaEdge)
- Specified by:
openMetaEdge
in 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:
network
in interfaceEdgeBinding
-
setNetwork
public void setNetwork(MeshBinding network)
- Specified by:
setNetwork
in interfaceEdgeBinding
-
meshes
public HashTrieMap<Uri,MeshBinding> meshes()
- Specified by:
meshes
in interfaceEdgeBinding
-
getMesh
public MeshBinding getMesh(Uri meshUri)
- Specified by:
getMesh
in interfaceEdgeBinding
-
openMesh
public MeshBinding openMesh(Uri meshUri)
- Specified by:
openMesh
in interfaceEdgeBinding
-
openMesh
public MeshBinding openMesh(Uri meshUri, MeshBinding mesh)
- Specified by:
openMesh
in interfaceEdgeBinding
-
closeMesh
public void closeMesh(Uri meshUri)
-
didOpenMesh
protected void didOpenMesh(MeshBinding mesh)
-
didCloseMesh
protected void didCloseMesh(MeshBinding mesh)
-
openMetaMesh
public void openMetaMesh(MeshBinding mesh, NodeBinding metaMesh)
- Specified by:
openMetaMesh
in interfaceEdgeBinding
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPart
in interfaceEdgeBinding
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHost
in interfaceEdgeBinding
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfaceEdgeBinding
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceEdgeBinding
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceEdgeBinding
-
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
-
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)
-
-