- java.lang.Object
-
- swim.system.HostProxy
-
- All Implemented Interfaces:
CellBinding
,CellContext
,HostBinding
,HostContext
,TierBinding
,TierContext
,Log
public class HostProxy extends Object implements HostBinding, HostContext
-
-
Field Summary
Fields Modifier and Type Field Description protected HostBinding
hostBinding
protected HostContext
hostContext
-
Constructor Summary
Constructors Constructor Description HostProxy(HostBinding hostBinding)
-
Method Summary
-
-
-
Field Detail
-
hostBinding
protected final HostBinding hostBinding
-
hostContext
protected HostContext hostContext
-
-
Constructor Detail
-
HostProxy
public HostProxy(HostBinding hostBinding)
-
-
Method Detail
-
tierContext
public final TierContext tierContext()
- Specified by:
tierContext
in interfaceTierBinding
-
part
public final PartBinding part()
- Specified by:
part
in interfaceHostBinding
- Specified by:
part
in interfaceHostContext
-
hostWrapper
public final HostBinding hostWrapper()
- Specified by:
hostWrapper
in interfaceHostBinding
- Specified by:
hostWrapper
in interfaceHostContext
-
hostBinding
public final HostBinding hostBinding()
-
hostContext
public final HostContext hostContext()
- Specified by:
hostContext
in interfaceHostBinding
-
setHostContext
public void setHostContext(HostContext hostContext)
- Specified by:
setHostContext
in interfaceHostBinding
-
unwrapHost
public <T> T unwrapHost(Class<T> hostClass)
- Specified by:
unwrapHost
in interfaceHostBinding
- Specified by:
unwrapHost
in interfaceHostContext
-
bottomHost
public <T> T bottomHost(Class<T> hostClass)
- Specified by:
bottomHost
in interfaceHostBinding
- Specified by:
bottomHost
in interfaceHostContext
-
cellAddress
public HostAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceHostBinding
- Specified by:
cellAddress
in interfaceHostContext
-
edgeName
public String edgeName()
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfaceHostContext
-
meshUri
public Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
- Specified by:
meshUri
in interfaceHostBinding
- Specified by:
meshUri
in interfaceHostContext
-
partKey
public Value partKey()
- Specified by:
partKey
in interfaceHostBinding
- Specified by:
partKey
in interfaceHostContext
-
hostUri
public Uri hostUri()
- Specified by:
hostUri
in interfaceHostBinding
- Specified by:
hostUri
in interfaceHostContext
-
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
-
isConnected
public boolean isConnected()
- Specified by:
isConnected
in interfaceHostBinding
-
isRemote
public boolean isRemote()
- Specified by:
isRemote
in interfaceHostBinding
-
isSecure
public boolean isSecure()
- Specified by:
isSecure
in interfaceHostBinding
-
isPrimary
public boolean isPrimary()
- Specified by:
isPrimary
in interfaceHostBinding
-
setPrimary
public void setPrimary(boolean isPrimary)
- Specified by:
setPrimary
in interfaceHostBinding
-
isReplica
public boolean isReplica()
- Specified by:
isReplica
in interfaceHostBinding
-
setReplica
public void setReplica(boolean isReplica)
- Specified by:
setReplica
in interfaceHostBinding
-
isMaster
public boolean isMaster()
- Specified by:
isMaster
in interfaceHostBinding
-
isSlave
public boolean isSlave()
- Specified by:
isSlave
in interfaceHostBinding
-
didBecomeMaster
public void didBecomeMaster()
- Specified by:
didBecomeMaster
in interfaceHostBinding
-
didBecomeSlave
public void didBecomeSlave()
- Specified by:
didBecomeSlave
in interfaceHostBinding
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHost
in interfaceHostBinding
- Specified by:
openMetaHost
in interfaceHostContext
-
nodes
public UriMapper<NodeBinding> nodes()
- Specified by:
nodes
in interfaceHostBinding
-
getNode
public NodeBinding getNode(Uri nodeUri)
- Specified by:
getNode
in interfaceHostBinding
-
openNode
public NodeBinding openNode(Uri nodeUri)
- Specified by:
openNode
in interfaceHostBinding
-
openNode
public NodeBinding openNode(Uri nodeUri, NodeBinding node)
- Specified by:
openNode
in interfaceHostBinding
-
createNode
public NodeBinding createNode(NodeAddress nodeAddress)
- Specified by:
createNode
in interfaceHostContext
-
injectNode
public NodeBinding injectNode(NodeAddress nodeAddress, NodeBinding node)
- Specified by:
injectNode
in interfaceHostContext
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfaceHostBinding
- Specified by:
openMetaNode
in interfaceHostContext
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLane
in interfaceHostContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLane
in interfaceHostContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceHostBinding
- Specified by:
openMetaLane
in interfaceHostContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceHostBinding
- Specified by:
openMetaUplink
in interfaceHostContext
-
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 interfaceHostContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanes
in interfaceHostContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactory
in interfaceHostContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfaceHostContext
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgents
in interfaceHostContext
-
authenticate
public PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticate
in interfaceHostContext
-
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
-
didConnect
public void didConnect()
- Specified by:
didConnect
in interfaceHostContext
-
didDisconnect
public void didDisconnect()
- Specified by:
didDisconnect
in interfaceHostContext
-
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
-
-