- java.lang.Object
- 
- swim.system.AbstractWarpRef
- 
- swim.system.AbstractTierBinding
- 
- swim.system.router.HostTable
 
 
 
- 
- All Implemented Interfaces:
- DownlinkFactory,- WarpRef,- CellBinding,- CellContext,- HostBinding,- TierBinding,- Log
 
 public class HostTable extends AbstractTierBinding implements HostBinding 
- 
- 
Field SummaryFields Modifier and Type Field Description protected HostContexthostContext- 
Fields inherited from class swim.system.AbstractTierBindingCLOSED_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 SummaryConstructors Constructor Description HostTable()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaccumulateNodeProfile(NodeProfile profile)protected voidaccumulateWarpDownlinkProfile(WarpDownlinkProfile profile)LinkBindingbindDownlink(Downlink downlink)<T> TbottomHost(Class<T> hostClass)HostAddresscellAddress()voidcloseDownlink(LinkBinding link)voidcloseNode(Uri nodeUri)voidcloseNodes()protected HostProfilecollectProfile(long dt)protected NodeContextcreateNodeContext(NodeAddress nodeAddress, NodeBinding node)protected voidcueAncestorNodes(Uri nodeUri)voiddebug(Object message)Logs a debug-level message.voiddidBecomeMaster()voiddidBecomeSlave()voiddidClose()protected voiddidCloseNode(NodeBinding node)voiddidFail(Throwable error)protected voiddidOpenNode(NodeBinding node)protected voiddidUpdateMetrics()StringedgeName()voiderror(Object message)Logs an error-level message.voidfail(Object message)Logs an fail-level message.protected voidflushMetrics()NodeBindinggetNode(Uri nodeUri)HostContexthostContext()UrihostUri()HostBindinghostWrapper()voidinfo(Object message)Logs an info-level message.booleanisConnected()booleanisMaster()booleanisPrimary()booleanisRemote()booleanisReplica()booleanisSecure()booleanisSlave()UrimeshUri()UriMapper<NodeBinding>nodes()voidopenDownlink(LinkBinding link)protected voidopenLogLanes(HostBinding host, AgentNode metaHost)voidopenMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)voidopenMetaHost(HostBinding host, NodeBinding metaHost)voidopenMetaLane(LaneBinding lane, NodeBinding metaLane)protected voidopenMetaLanes(HostBinding host, AgentNode metaHost)voidopenMetaNode(NodeBinding node, NodeBinding metaNode)voidopenMetaUplink(LinkBinding uplink, NodeBinding metaUplink)NodeBindingopenNode(Uri nodeUri)NodeBindingopenNode(Uri nodeUri, NodeBinding node)protected voidopenReflectLanes(HostBinding host, AgentNode metaHost)voidopenUplink(LinkBinding link)PartBindingpart()ValuepartKey()Policypolicy()voidpushDown(Push<?> push)voidpushUp(Push<?> push)voidreportDown(Metric metric)protected voidreportMetrics(long dt)Scheduleschedule()voidsetHostContext(HostContext hostContext)voidsetPrimary(boolean isPrimary)voidsetReplica(boolean isReplica)Stagestage()StoreBindingstore()TierContexttierContext()voidtrace(Object message)Logs a trace-level message.<T> TunwrapHost(Class<T> hostClass)voidwarn(Object message)Logs a warn-level message.protected voidwillClose()protected voidwillLoad()protected voidwillOpen()protected voidwillStart()protected voidwillStop()protected voidwillUnload()- 
Methods inherited from class swim.system.AbstractTierBindingactivate, awaitStart, close, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload
 - 
Methods inherited from class swim.system.AbstractWarpRefcommand, 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 Detail- 
hostContextprotected HostContext hostContext 
 
- 
 - 
Method Detail- 
tierContextpublic final TierContext tierContext() - Specified by:
- tierContextin interface- TierBinding
- Specified by:
- tierContextin class- AbstractTierBinding
 
 - 
partpublic final PartBinding part() - Specified by:
- partin interface- HostBinding
 
 - 
hostWrapperpublic final HostBinding hostWrapper() - Specified by:
- hostWrapperin interface- HostBinding
 
 - 
hostContextpublic final HostContext hostContext() - Specified by:
- hostContextin interface- HostBinding
 
 - 
setHostContextpublic void setHostContext(HostContext hostContext) - Specified by:
- setHostContextin interface- HostBinding
 
 - 
unwrapHostpublic <T> T unwrapHost(Class<T> hostClass) - Specified by:
- unwrapHostin interface- HostBinding
 
 - 
bottomHostpublic <T> T bottomHost(Class<T> hostClass) - Specified by:
- bottomHostin interface- HostBinding
 
 - 
createNodeContextprotected NodeContext createNodeContext(NodeAddress nodeAddress, NodeBinding node) 
 - 
cellAddresspublic final HostAddress cellAddress() - Specified by:
- cellAddressin interface- CellContext
- Specified by:
- cellAddressin interface- HostBinding
 
 - 
edgeNamepublic final String edgeName() - Specified by:
- edgeNamein interface- CellContext
 
 - 
meshUripublic final Uri meshUri() - Specified by:
- meshUriin interface- CellContext
- Specified by:
- meshUriin interface- HostBinding
 
 - 
partKeypublic final Value partKey() - Specified by:
- partKeyin interface- HostBinding
 
 - 
hostUripublic final Uri hostUri() - Specified by:
- hostUriin interface- HostBinding
 
 - 
policypublic Policy policy() - Specified by:
- policyin interface- CellContext
 
 - 
schedulepublic Schedule schedule() - Specified by:
- schedulein interface- CellContext
 
 - 
stagepublic Stage stage() - Specified by:
- stagein interface- CellContext
 
 - 
storepublic StoreBinding store() - Specified by:
- storein interface- CellContext
 
 - 
isConnectedpublic boolean isConnected() - Specified by:
- isConnectedin interface- HostBinding
 
 - 
isRemotepublic boolean isRemote() - Specified by:
- isRemotein interface- HostBinding
 
 - 
isSecurepublic boolean isSecure() - Specified by:
- isSecurein interface- HostBinding
 
 - 
isPrimarypublic boolean isPrimary() - Specified by:
- isPrimaryin interface- HostBinding
 
 - 
setPrimarypublic void setPrimary(boolean isPrimary) - Specified by:
- setPrimaryin interface- HostBinding
 
 - 
isReplicapublic boolean isReplica() - Specified by:
- isReplicain interface- HostBinding
 
 - 
setReplicapublic void setReplica(boolean isReplica) - Specified by:
- setReplicain interface- HostBinding
 
 - 
isMasterpublic boolean isMaster() - Specified by:
- isMasterin interface- HostBinding
 
 - 
isSlavepublic boolean isSlave() - Specified by:
- isSlavein interface- HostBinding
 
 - 
didBecomeMasterpublic void didBecomeMaster() - Specified by:
- didBecomeMasterin interface- HostBinding
 
 - 
didBecomeSlavepublic void didBecomeSlave() - Specified by:
- didBecomeSlavein interface- HostBinding
 
 - 
openMetaHostpublic void openMetaHost(HostBinding host, NodeBinding metaHost) - Specified by:
- openMetaHostin interface- HostBinding
 
 - 
openMetaLanesprotected void openMetaLanes(HostBinding host, AgentNode metaHost) 
 - 
openReflectLanesprotected void openReflectLanes(HostBinding host, AgentNode metaHost) 
 - 
openLogLanesprotected void openLogLanes(HostBinding host, AgentNode metaHost) 
 - 
nodespublic UriMapper<NodeBinding> nodes() - Specified by:
- nodesin interface- HostBinding
 
 - 
getNodepublic NodeBinding getNode(Uri nodeUri) - Specified by:
- getNodein interface- HostBinding
 
 - 
openNodepublic NodeBinding openNode(Uri nodeUri) - Specified by:
- openNodein interface- HostBinding
 
 - 
openNodepublic NodeBinding openNode(Uri nodeUri, NodeBinding node) - Specified by:
- openNodein interface- HostBinding
 
 - 
closeNodepublic void closeNode(Uri nodeUri) 
 - 
closeNodespublic void closeNodes() 
 - 
didOpenNodeprotected void didOpenNode(NodeBinding node) 
 - 
didCloseNodeprotected void didCloseNode(NodeBinding node) 
 - 
cueAncestorNodesprotected void cueAncestorNodes(Uri nodeUri) 
 - 
openMetaNodepublic void openMetaNode(NodeBinding node, NodeBinding metaNode) - Specified by:
- openMetaNodein interface- HostBinding
 
 - 
openMetaLanepublic void openMetaLane(LaneBinding lane, NodeBinding metaLane) - Specified by:
- openMetaLanein interface- HostBinding
 
 - 
openMetaUplinkpublic void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink) - Specified by:
- openMetaUplinkin interface- HostBinding
 
 - 
openMetaDownlinkpublic void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink) - Specified by:
- openMetaDownlinkin interface- CellContext
 
 - 
bindDownlinkpublic LinkBinding bindDownlink(Downlink downlink) - Specified by:
- bindDownlinkin interface- CellContext
 
 - 
openDownlinkpublic void openDownlink(LinkBinding link) - Specified by:
- openDownlinkin interface- CellContext
 
 - 
closeDownlinkpublic void closeDownlink(LinkBinding link) - Specified by:
- closeDownlinkin interface- CellContext
 
 - 
pushDownpublic void pushDown(Push<?> push) - Specified by:
- pushDownin interface- CellContext
 
 - 
openUplinkpublic void openUplink(LinkBinding link) - Specified by:
- openUplinkin interface- CellBinding
 
 - 
pushUppublic void pushUp(Push<?> push) - Specified by:
- pushUpin interface- CellBinding
 
 - 
tracepublic void trace(Object message) Description copied from interface:LogLogs a trace-level message.
 - 
debugpublic void debug(Object message) Description copied from interface:LogLogs a debug-level message.
 - 
infopublic void info(Object message) Description copied from interface:LogLogs an info-level message.
 - 
warnpublic void warn(Object message) Description copied from interface:LogLogs a warn-level message.
 - 
errorpublic void error(Object message) Description copied from interface:LogLogs an error-level message.
 - 
failpublic void fail(Object message) Description copied from interface:LogLogs an fail-level message.
 - 
willOpenprotected void willOpen() - Overrides:
- willOpenin class- AbstractTierBinding
 
 - 
willLoadprotected void willLoad() - Overrides:
- willLoadin class- AbstractTierBinding
 
 - 
willStartprotected void willStart() - Overrides:
- willStartin class- AbstractTierBinding
 
 - 
willStopprotected void willStop() - Overrides:
- willStopin class- AbstractTierBinding
 
 - 
willUnloadprotected void willUnload() - Overrides:
- willUnloadin class- AbstractTierBinding
 
 - 
willCloseprotected void willClose() - Overrides:
- willClosein class- AbstractTierBinding
 
 - 
didClosepublic void didClose() - Specified by:
- didClosein interface- TierBinding
- Overrides:
- didClosein class- AbstractTierBinding
 
 - 
didFailpublic void didFail(Throwable error) - Specified by:
- didFailin interface- TierBinding
- Overrides:
- didFailin class- AbstractTierBinding
 
 - 
reportDownpublic void reportDown(Metric metric) - Specified by:
- reportDownin interface- CellContext
 
 - 
accumulateNodeProfileprotected void accumulateNodeProfile(NodeProfile profile) 
 - 
accumulateWarpDownlinkProfileprotected void accumulateWarpDownlinkProfile(WarpDownlinkProfile profile) 
 - 
didUpdateMetricsprotected void didUpdateMetrics() 
 - 
flushMetricsprotected void flushMetrics() 
 - 
reportMetricsprotected void reportMetrics(long dt) 
 - 
collectProfileprotected HostProfile collectProfile(long dt) 
 
- 
 
-