- java.lang.Object
-
- swim.system.MeshProxy
-
- All Implemented Interfaces:
CellBinding
,CellContext
,MeshBinding
,MeshContext
,TierBinding
,TierContext
,Log
public class MeshProxy extends Object implements MeshBinding, MeshContext
-
-
Field Summary
Fields Modifier and Type Field Description protected MeshBinding
meshBinding
protected MeshContext
meshContext
-
Constructor Summary
Constructors Constructor Description MeshProxy(MeshBinding meshBinding)
-
Method Summary
-
-
-
Field Detail
-
meshBinding
protected final MeshBinding meshBinding
-
meshContext
protected MeshContext meshContext
-
-
Constructor Detail
-
MeshProxy
public MeshProxy(MeshBinding meshBinding)
-
-
Method Detail
-
tierContext
public final TierContext tierContext()
- Specified by:
tierContext
in interfaceTierBinding
-
edge
public final EdgeBinding edge()
- Specified by:
edge
in interfaceMeshBinding
- Specified by:
edge
in interfaceMeshContext
-
meshWrapper
public final MeshBinding meshWrapper()
- Specified by:
meshWrapper
in interfaceMeshBinding
- Specified by:
meshWrapper
in interfaceMeshContext
-
meshBinding
public final MeshBinding meshBinding()
-
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
- Specified by:
unwrapMesh
in interfaceMeshContext
-
bottomMesh
public <T> T bottomMesh(Class<T> meshClass)
- Specified by:
bottomMesh
in interfaceMeshBinding
- Specified by:
bottomMesh
in interfaceMeshContext
-
cellAddress
public MeshAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceMeshBinding
- Specified by:
cellAddress
in interfaceMeshContext
-
edgeName
public String edgeName()
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfaceMeshContext
-
meshUri
public Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
- Specified by:
meshUri
in interfaceMeshBinding
- 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 interfaceMeshBinding
- Specified by:
openMetaMesh
in interfaceMeshContext
-
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
-
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 interfaceMeshBinding
- 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 interfaceMeshBinding
- 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 interfaceMeshBinding
- 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 interfaceMeshBinding
- Specified by:
openMetaLane
in interfaceMeshContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceMeshBinding
- 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
-
openUplink
public void openUplink(LinkBinding link)
- Specified by:
openUplink
in interfaceCellBinding
-
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.
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceTierBinding
-
isOpened
public boolean isOpened()
- Specified by:
isOpened
in interfaceTierBinding
-
isLoaded
public boolean isLoaded()
- Specified by:
isLoaded
in interfaceTierBinding
-
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interfaceTierBinding
-
open
public void open()
- Specified by:
open
in interfaceTierBinding
-
load
public void load()
- Specified by:
load
in interfaceTierBinding
-
start
public void start()
- Specified by:
start
in interfaceTierBinding
-
stop
public void stop()
- Specified by:
stop
in interfaceTierBinding
-
unload
public void unload()
- Specified by:
unload
in interfaceTierBinding
-
close
public void close()
- Specified by:
close
in interfaceTierBinding
- 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
-
didClose
public void didClose()
- Specified by:
didClose
in interfaceTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFail
in interfaceTierBinding
-
-