- java.lang.Object
-
- swim.system.NodeProxy
-
- All Implemented Interfaces:
CellBinding
,CellContext
,NodeBinding
,NodeContext
,TierBinding
,TierContext
,Log
public class NodeProxy extends Object implements NodeBinding, NodeContext
-
-
Field Summary
Fields Modifier and Type Field Description protected NodeBinding
nodeBinding
protected NodeContext
nodeContext
-
Constructor Summary
Constructors Constructor Description NodeProxy(NodeBinding nodeBinding)
-
Method Summary
-
-
-
Field Detail
-
nodeBinding
protected final NodeBinding nodeBinding
-
nodeContext
protected NodeContext nodeContext
-
-
Constructor Detail
-
NodeProxy
public NodeProxy(NodeBinding nodeBinding)
-
-
Method Detail
-
tierContext
public final TierContext tierContext()
- Specified by:
tierContext
in interfaceTierBinding
-
host
public final HostBinding host()
- Specified by:
host
in interfaceNodeBinding
- Specified by:
host
in interfaceNodeContext
-
nodeWrapper
public final NodeBinding nodeWrapper()
- Specified by:
nodeWrapper
in interfaceNodeBinding
- Specified by:
nodeWrapper
in interfaceNodeContext
-
nodeBinding
public final NodeBinding nodeBinding()
-
nodeContext
public final NodeContext nodeContext()
- Specified by:
nodeContext
in interfaceNodeBinding
-
setNodeContext
public void setNodeContext(NodeContext nodeContext)
- Specified by:
setNodeContext
in interfaceNodeBinding
-
unwrapNode
public <T> T unwrapNode(Class<T> nodeClass)
- Specified by:
unwrapNode
in interfaceNodeBinding
- Specified by:
unwrapNode
in interfaceNodeContext
-
bottomNode
public <T> T bottomNode(Class<T> nodeClass)
- Specified by:
bottomNode
in interfaceNodeBinding
- Specified by:
bottomNode
in interfaceNodeContext
-
cellAddress
public NodeAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceNodeBinding
- Specified by:
cellAddress
in interfaceNodeContext
-
edgeName
public String edgeName()
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfaceNodeContext
-
meshUri
public Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
- Specified by:
meshUri
in interfaceNodeBinding
- Specified by:
meshUri
in interfaceNodeContext
-
partKey
public Value partKey()
- Specified by:
partKey
in interfaceNodeBinding
- Specified by:
partKey
in interfaceNodeContext
-
hostUri
public Uri hostUri()
- Specified by:
hostUri
in interfaceNodeBinding
- Specified by:
hostUri
in interfaceNodeContext
-
nodeUri
public Uri nodeUri()
- Specified by:
nodeUri
in interfaceNodeBinding
- Specified by:
nodeUri
in interfaceNodeContext
-
createdTime
public long createdTime()
- Specified by:
createdTime
in interfaceNodeBinding
- Specified by:
createdTime
in interfaceNodeContext
-
identity
public Identity identity()
- Specified by:
identity
in interfaceNodeContext
-
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
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfaceNodeBinding
- Specified by:
openMetaNode
in interfaceNodeContext
-
lanes
public HashTrieMap<Uri,LaneBinding> lanes()
- Specified by:
lanes
in interfaceNodeBinding
-
getLane
public LaneBinding getLane(Uri laneUri)
- Specified by:
getLane
in interfaceNodeBinding
-
openLane
public LaneBinding openLane(Uri laneUri)
- Specified by:
openLane
in interfaceNodeBinding
-
openLane
public LaneBinding openLane(Uri laneUri, LaneBinding lane)
- Specified by:
openLane
in interfaceNodeBinding
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLane
in interfaceNodeContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLane
in interfaceNodeContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceNodeBinding
- Specified by:
openMetaLane
in interfaceNodeContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceNodeBinding
- Specified by:
openMetaUplink
in interfaceNodeContext
-
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 interfaceNodeContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanes
in interfaceNodeBinding
- Specified by:
openLanes
in interfaceNodeContext
-
agentIds
public FingerTrieSeq<Value> agentIds()
- Specified by:
agentIds
in interfaceNodeBinding
-
agents
public FingerTrieSeq<Agent> agents()
- Specified by:
agents
in interfaceNodeBinding
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactory
in interfaceNodeBinding
- Specified by:
createAgentFactory
in interfaceNodeContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfaceNodeBinding
- Specified by:
createAgentFactory
in interfaceNodeContext
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgents
in interfaceNodeBinding
- Specified by:
openAgents
in interfaceNodeContext
-
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
-
-