- java.lang.Object
-
- swim.system.PartProxy
-
- All Implemented Interfaces:
CellBinding
,CellContext
,PartBinding
,PartContext
,TierBinding
,TierContext
,Log
public class PartProxy extends Object implements PartBinding, PartContext
-
-
Field Summary
Fields Modifier and Type Field Description protected PartBinding
partBinding
protected PartContext
partContext
-
Constructor Summary
Constructors Constructor Description PartProxy(PartBinding partBinding)
-
Method Summary
-
-
-
Field Detail
-
partBinding
protected final PartBinding partBinding
-
partContext
protected PartContext partContext
-
-
Constructor Detail
-
PartProxy
public PartProxy(PartBinding partBinding)
-
-
Method Detail
-
tierContext
public final TierContext tierContext()
- Specified by:
tierContext
in interfaceTierBinding
-
mesh
public final MeshBinding mesh()
- Specified by:
mesh
in interfacePartBinding
- Specified by:
mesh
in interfacePartContext
-
partWrapper
public final PartBinding partWrapper()
- Specified by:
partWrapper
in interfacePartBinding
- Specified by:
partWrapper
in interfacePartContext
-
partBinding
public final PartBinding partBinding()
-
partContext
public final PartContext partContext()
- Specified by:
partContext
in interfacePartBinding
-
setPartContext
public void setPartContext(PartContext partContext)
- Specified by:
setPartContext
in interfacePartBinding
-
unwrapPart
public <T> T unwrapPart(Class<T> partClass)
- Specified by:
unwrapPart
in interfacePartBinding
- Specified by:
unwrapPart
in interfacePartContext
-
bottomPart
public <T> T bottomPart(Class<T> partClass)
- Specified by:
bottomPart
in interfacePartBinding
- Specified by:
bottomPart
in interfacePartContext
-
cellAddress
public PartAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfacePartBinding
- Specified by:
cellAddress
in interfacePartContext
-
edgeName
public String edgeName()
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfacePartContext
-
meshUri
public Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
- Specified by:
meshUri
in interfacePartBinding
- Specified by:
meshUri
in interfacePartContext
-
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
-
partKey
public Value partKey()
- Specified by:
partKey
in interfacePartBinding
- Specified by:
partKey
in interfacePartContext
-
predicate
public PartPredicate predicate()
- Specified by:
predicate
in interfacePartBinding
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPart
in interfacePartBinding
- Specified by:
openMetaPart
in interfacePartContext
-
master
public HostBinding master()
- Specified by:
master
in interfacePartBinding
-
setMaster
public void setMaster(HostBinding master)
- Specified by:
setMaster
in interfacePartBinding
-
hosts
public HashTrieMap<Uri,HostBinding> hosts()
- Specified by:
hosts
in interfacePartBinding
-
getHost
public HostBinding getHost(Uri hostUri)
- Specified by:
getHost
in interfacePartBinding
-
openHost
public HostBinding openHost(Uri hostUri)
- Specified by:
openHost
in interfacePartBinding
-
openHost
public HostBinding openHost(Uri hostUri, HostBinding host)
- Specified by:
openHost
in interfacePartBinding
-
hostDidConnect
public void hostDidConnect(Uri hostUri)
- Specified by:
hostDidConnect
in interfacePartContext
-
hostDidDisconnect
public void hostDidDisconnect(Uri hostUri)
- Specified by:
hostDidDisconnect
in interfacePartContext
-
reopenUplinks
public void reopenUplinks()
- Specified by:
reopenUplinks
in interfacePartBinding
-
createHost
public HostBinding createHost(HostAddress hostAddress)
- Specified by:
createHost
in interfacePartContext
-
injectHost
public HostBinding injectHost(HostAddress hostAddress, HostBinding host)
- Specified by:
injectHost
in interfacePartContext
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHost
in interfacePartBinding
- Specified by:
openMetaHost
in interfacePartContext
-
createNode
public NodeBinding createNode(NodeAddress nodeAddress)
- Specified by:
createNode
in interfacePartContext
-
injectNode
public NodeBinding injectNode(NodeAddress nodeAddress, NodeBinding node)
- Specified by:
injectNode
in interfacePartContext
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfacePartBinding
- Specified by:
openMetaNode
in interfacePartContext
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLane
in interfacePartContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLane
in interfacePartContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfacePartBinding
- Specified by:
openMetaLane
in interfacePartContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfacePartBinding
- Specified by:
openMetaUplink
in interfacePartContext
-
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 interfacePartContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanes
in interfacePartContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactory
in interfacePartContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfacePartContext
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgents
in interfacePartContext
-
authenticate
public PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticate
in interfacePartContext
-
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
-
-