- java.lang.Object
-
- swim.system.EdgeProxy
-
- All Implemented Interfaces:
CellBinding
,CellContext
,EdgeBinding
,EdgeContext
,TierBinding
,TierContext
,Log
public class EdgeProxy extends Object implements EdgeBinding, EdgeContext
-
-
Field Summary
Fields Modifier and Type Field Description protected EdgeBinding
edgeBinding
protected EdgeContext
edgeContext
-
Constructor Summary
Constructors Constructor Description EdgeProxy(EdgeBinding edgeBinding)
-
Method Summary
-
-
-
Field Detail
-
edgeBinding
protected final EdgeBinding edgeBinding
-
edgeContext
protected EdgeContext edgeContext
-
-
Constructor Detail
-
EdgeProxy
public EdgeProxy(EdgeBinding edgeBinding)
-
-
Method Detail
-
tierContext
public final TierContext tierContext()
- Specified by:
tierContext
in interfaceTierBinding
-
edgeWrapper
public final EdgeBinding edgeWrapper()
- Specified by:
edgeWrapper
in interfaceEdgeBinding
- Specified by:
edgeWrapper
in interfaceEdgeContext
-
edgeBinding
public final EdgeBinding edgeBinding()
-
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
- Specified by:
unwrapEdge
in interfaceEdgeContext
-
bottomEdge
public <T> T bottomEdge(Class<T> edgeClass)
- Specified by:
bottomEdge
in interfaceEdgeBinding
- Specified by:
bottomEdge
in interfaceEdgeContext
-
cellAddress
public EdgeAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceEdgeBinding
- Specified by:
cellAddress
in interfaceEdgeContext
-
edgeName
public String edgeName()
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfaceEdgeBinding
- Specified by:
edgeName
in interfaceEdgeContext
-
meshUri
public 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
- Specified by:
openMetaEdge
in interfaceEdgeContext
-
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
-
createMesh
public MeshBinding createMesh(MeshAddress meshAddress)
- Specified by:
createMesh
in interfaceEdgeContext
-
injectMesh
public MeshBinding injectMesh(MeshAddress meshAddress, MeshBinding mesh)
- Specified by:
injectMesh
in interfaceEdgeContext
-
openMetaMesh
public void openMetaMesh(MeshBinding mesh, NodeBinding metaMesh)
- Specified by:
openMetaMesh
in interfaceEdgeBinding
- Specified by:
openMetaMesh
in interfaceEdgeContext
-
createPart
public PartBinding createPart(PartAddress partAddress)
- Specified by:
createPart
in interfaceEdgeContext
-
injectPart
public PartBinding injectPart(PartAddress partAddress, PartBinding part)
- Specified by:
injectPart
in interfaceEdgeContext
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPart
in interfaceEdgeBinding
- Specified by:
openMetaPart
in interfaceEdgeContext
-
createHost
public HostBinding createHost(HostAddress hostAddress)
- Specified by:
createHost
in interfaceEdgeContext
-
injectHost
public HostBinding injectHost(HostAddress hostAddress, HostBinding host)
- Specified by:
injectHost
in interfaceEdgeContext
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHost
in interfaceEdgeBinding
- Specified by:
openMetaHost
in interfaceEdgeContext
-
createNode
public NodeBinding createNode(NodeAddress nodeAddress)
- Specified by:
createNode
in interfaceEdgeContext
-
injectNode
public NodeBinding injectNode(NodeAddress nodeAddress, NodeBinding node)
- Specified by:
injectNode
in interfaceEdgeContext
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfaceEdgeBinding
- Specified by:
openMetaNode
in interfaceEdgeContext
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLane
in interfaceEdgeContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLane
in interfaceEdgeContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceEdgeBinding
- Specified by:
openMetaLane
in interfaceEdgeContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceEdgeBinding
- Specified by:
openMetaUplink
in interfaceEdgeContext
-
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 interfaceEdgeContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanes
in interfaceEdgeContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactory
in interfaceEdgeContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfaceEdgeContext
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgents
in interfaceEdgeContext
-
authenticate
public PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticate
in interfaceEdgeContext
-
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
-
-