java.lang.Object
swim.system.AbstractWarpRef
swim.system.AbstractTierBinding
swim.system.router.HostTable
- All Implemented Interfaces:
DownlinkFactory
,WarpRef
,CellBinding
,CellContext
,HostBinding
,TierBinding
,Log
-
Field Summary
FieldsFields inherited from class swim.system.AbstractTierBinding
CLOSED_PHASE, CLOSED_STATE, CLOSING_STATE, FAILED_STATE, FAILING_STATE, LOADED_PHASE, LOADED_STATE, LOADING_STATE, OPENED_PHASE, OPENED_STATE, OPENING_STATE, PHASE_MASK, PHASE_SHIFT, RECOVERING_STATE, STARTED_PHASE, STARTED_STATE, STARTING_STATE, STATE_MASK, status, STATUS, STOPPING_STATE, UNLOADING_STATE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
accumulateNodeProfile
(NodeProfile profile) protected void
bindDownlink
(Downlink downlink) <T> T
bottomHost
(Class<T> hostClass) final HostAddress
void
closeDownlink
(LinkBinding link) void
void
protected HostProfile
collectProfile
(long dt) protected NodeContext
createNodeContext
(NodeAddress nodeAddress, NodeBinding node) protected void
cueAncestorNodes
(Uri nodeUri) void
Logs a debug-level message.void
void
void
didClose()
protected void
didCloseNode
(NodeBinding node) void
protected void
didOpenNode
(NodeBinding node) protected void
final String
edgeName()
void
Logs an error-level message.void
Logs an fail-level message.protected void
final HostContext
final Uri
hostUri()
final HostBinding
void
Logs an info-level message.boolean
boolean
isMaster()
boolean
boolean
isRemote()
boolean
boolean
isSecure()
boolean
isSlave()
final Uri
meshUri()
nodes()
void
openDownlink
(LinkBinding link) protected void
openLogLanes
(HostBinding host, AgentNode metaHost) void
openMetaDownlink
(LinkBinding downlink, NodeBinding metaDownlink) void
openMetaHost
(HostBinding host, NodeBinding metaHost) void
openMetaLane
(LaneBinding lane, NodeBinding metaLane) protected void
openMetaLanes
(HostBinding host, AgentNode metaHost) void
openMetaNode
(NodeBinding node, NodeBinding metaNode) void
openMetaUplink
(LinkBinding uplink, NodeBinding metaUplink) openNode
(Uri nodeUri, NodeBinding node) protected void
openReflectLanes
(HostBinding host, AgentNode metaHost) void
openUplink
(LinkBinding link) final PartBinding
part()
final Value
partKey()
policy()
void
void
void
reportDown
(Metric metric) protected void
reportMetrics
(long dt) schedule()
void
setHostContext
(HostContext hostContext) void
setPrimary
(boolean isPrimary) void
setReplica
(boolean isReplica) stage()
store()
final TierContext
void
Logs a trace-level message.<T> T
unwrapHost
(Class<T> hostClass) void
Logs a warn-level message.protected void
protected void
willLoad()
protected void
willOpen()
protected void
protected void
willStop()
protected void
Methods inherited from class swim.system.AbstractTierBinding
activate, awaitStart, close, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload
Methods inherited from class swim.system.AbstractWarpRef
command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, command, downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWs, hostRef, hostRef, laneRef, laneRef, laneRef, laneRef, nodeRef, nodeRef, nodeRef, nodeRef
-
Field Details
-
hostContext
-
-
Constructor Details
-
HostTable
public HostTable()
-
-
Method Details
-
tierContext
- Specified by:
tierContext
in interfaceTierBinding
- Specified by:
tierContext
in classAbstractTierBinding
-
part
- Specified by:
part
in interfaceHostBinding
-
hostWrapper
- Specified by:
hostWrapper
in interfaceHostBinding
-
hostContext
- Specified by:
hostContext
in interfaceHostBinding
-
setHostContext
- Specified by:
setHostContext
in interfaceHostBinding
-
unwrapHost
- Specified by:
unwrapHost
in interfaceHostBinding
-
bottomHost
- Specified by:
bottomHost
in interfaceHostBinding
-
createNodeContext
-
cellAddress
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceHostBinding
-
edgeName
- Specified by:
edgeName
in interfaceCellContext
-
meshUri
- Specified by:
meshUri
in interfaceCellContext
- Specified by:
meshUri
in interfaceHostBinding
-
partKey
- Specified by:
partKey
in interfaceHostBinding
-
hostUri
- Specified by:
hostUri
in interfaceHostBinding
-
policy
- Specified by:
policy
in interfaceCellContext
-
schedule
- Specified by:
schedule
in interfaceCellContext
-
stage
- Specified by:
stage
in interfaceCellContext
-
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
- Specified by:
openMetaHost
in interfaceHostBinding
-
openMetaLanes
-
openReflectLanes
-
openLogLanes
-
nodes
- Specified by:
nodes
in interfaceHostBinding
-
getNode
- Specified by:
getNode
in interfaceHostBinding
-
openNode
- Specified by:
openNode
in interfaceHostBinding
-
openNode
- Specified by:
openNode
in interfaceHostBinding
-
closeNode
-
closeNodes
public void closeNodes() -
didOpenNode
-
didCloseNode
-
cueAncestorNodes
-
openMetaNode
- Specified by:
openMetaNode
in interfaceHostBinding
-
openMetaLane
- Specified by:
openMetaLane
in interfaceHostBinding
-
openMetaUplink
- Specified by:
openMetaUplink
in interfaceHostBinding
-
openMetaDownlink
- Specified by:
openMetaDownlink
in interfaceCellContext
-
bindDownlink
- Specified by:
bindDownlink
in interfaceCellContext
-
openDownlink
- Specified by:
openDownlink
in interfaceCellContext
-
closeDownlink
- Specified by:
closeDownlink
in interfaceCellContext
-
pushDown
- Specified by:
pushDown
in interfaceCellContext
-
openUplink
- Specified by:
openUplink
in interfaceCellBinding
-
pushUp
- Specified by:
pushUp
in interfaceCellBinding
-
trace
Description copied from interface:Log
Logs a trace-level message. -
debug
Description copied from interface:Log
Logs a debug-level message. -
info
Description copied from interface:Log
Logs an info-level message. -
warn
Description copied from interface:Log
Logs a warn-level message. -
error
Description copied from interface:Log
Logs an error-level message. -
fail
Description copied from interface:Log
Logs an fail-level message. -
willOpen
protected void willOpen()- Overrides:
willOpen
in classAbstractTierBinding
-
willLoad
protected void willLoad()- Overrides:
willLoad
in classAbstractTierBinding
-
willStart
protected void willStart()- Overrides:
willStart
in classAbstractTierBinding
-
willStop
protected void willStop()- Overrides:
willStop
in classAbstractTierBinding
-
willUnload
protected void willUnload()- Overrides:
willUnload
in classAbstractTierBinding
-
willClose
protected void willClose()- Overrides:
willClose
in classAbstractTierBinding
-
didClose
public void didClose()- Specified by:
didClose
in interfaceTierBinding
- Overrides:
didClose
in classAbstractTierBinding
-
didFail
- Specified by:
didFail
in interfaceTierBinding
- Overrides:
didFail
in classAbstractTierBinding
-
reportDown
- Specified by:
reportDown
in interfaceCellContext
-
accumulateNodeProfile
-
accumulateWarpDownlinkProfile
-
didUpdateMetrics
protected void didUpdateMetrics() -
flushMetrics
protected void flushMetrics() -
reportMetrics
protected void reportMetrics(long dt) -
collectProfile
-