- java.lang.Object
-
- swim.system.router.EdgeTableMesh
-
- All Implemented Interfaces:
CellContext
,MeshContext
,TierContext
,Log
public class EdgeTableMesh extends Object implements MeshContext
-
-
Field Summary
Fields Modifier and Type Field Description protected EdgeTable
edge
protected MeshBinding
mesh
protected MeshAddress
meshAddress
-
Constructor Summary
Constructors Constructor Description EdgeTableMesh(EdgeTable edge, MeshBinding mesh, MeshAddress meshAddress)
-
Method Summary
-
-
-
Field Detail
-
edge
protected final EdgeTable edge
-
mesh
protected final MeshBinding mesh
-
meshAddress
protected final MeshAddress meshAddress
-
-
Constructor Detail
-
EdgeTableMesh
public EdgeTableMesh(EdgeTable edge, MeshBinding mesh, MeshAddress meshAddress)
-
-
Method Detail
-
edge
public final EdgeBinding edge()
- Specified by:
edge
in interfaceMeshContext
-
meshWrapper
public final MeshBinding meshWrapper()
- Specified by:
meshWrapper
in interfaceMeshContext
-
unwrapMesh
public <T> T unwrapMesh(Class<T> meshClass)
- Specified by:
unwrapMesh
in interfaceMeshContext
-
bottomMesh
public <T> T bottomMesh(Class<T> meshClass)
- Specified by:
bottomMesh
in interfaceMeshContext
-
cellAddress
public final MeshAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceMeshContext
-
edgeName
public final String edgeName()
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfaceMeshContext
-
meshUri
public final Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
- Specified by:
meshUri
in interfaceMeshContext
-
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 interfaceMeshContext
-
createPart
public PartBinding createPart(PartAddress partAddress)
- Specified by:
createPart
in interfaceMeshContext
-
injectPart
public PartBinding injectPart(PartAddress partAddress, PartBinding part)
- Specified by:
injectPart
in interfaceMeshContext
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPart
in interfaceMeshContext
-
createHost
public HostBinding createHost(HostAddress hostAddress)
- Specified by:
createHost
in interfaceMeshContext
-
injectHost
public HostBinding injectHost(HostAddress hostAddress, HostBinding host)
- Specified by:
injectHost
in interfaceMeshContext
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHost
in interfaceMeshContext
-
createNode
public NodeBinding createNode(NodeAddress nodeAddress)
- Specified by:
createNode
in interfaceMeshContext
-
injectNode
public NodeBinding injectNode(NodeAddress nodeAddress, NodeBinding node)
- Specified by:
injectNode
in interfaceMeshContext
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfaceMeshContext
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLane
in interfaceMeshContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLane
in interfaceMeshContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceMeshContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceMeshContext
-
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 interfaceMeshContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanes
in interfaceMeshContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactory
in interfaceMeshContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfaceMeshContext
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgents
in interfaceMeshContext
-
authenticate
public PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticate
in interfaceMeshContext
-
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
-
-