- java.lang.Object
-
- swim.system.AbstractWarpRef
-
- swim.system.AbstractTierBinding
-
- swim.system.router.PartTable
-
- All Implemented Interfaces:
DownlinkFactory
,WarpRef
,CellBinding
,CellContext
,PartBinding
,TierBinding
,Log
public class PartTable extends AbstractTierBinding implements PartBinding
-
-
Field Summary
Fields Modifier and Type Field Description protected PartContext
partContext
-
Fields 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 Constructor Description PartTable()
PartTable(PartPredicate predicate)
-
Method Summary
-
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 Detail
-
partContext
protected PartContext partContext
-
-
Constructor Detail
-
PartTable
public PartTable(PartPredicate predicate)
-
PartTable
public PartTable()
-
-
Method Detail
-
tierContext
public final TierContext tierContext()
- Specified by:
tierContext
in interfaceTierBinding
- Specified by:
tierContext
in classAbstractTierBinding
-
mesh
public final MeshBinding mesh()
- Specified by:
mesh
in interfacePartBinding
-
partWrapper
public final PartBinding partWrapper()
- Specified by:
partWrapper
in interfacePartBinding
-
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
-
bottomPart
public <T> T bottomPart(Class<T> partClass)
- Specified by:
bottomPart
in interfacePartBinding
-
createHostContext
protected HostContext createHostContext(HostAddress hostAddress, HostBinding host)
-
cellAddress
public final PartAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfacePartBinding
-
edgeName
public final String edgeName()
- Specified by:
edgeName
in interfaceCellContext
-
meshUri
public final Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
- Specified by:
meshUri
in interfacePartBinding
-
partKey
public final Value partKey()
- Specified by:
partKey
in interfacePartBinding
-
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
-
predicate
public PartPredicate predicate()
- Specified by:
predicate
in interfacePartBinding
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPart
in interfacePartBinding
-
openMetaLanes
protected void openMetaLanes(PartBinding part, AgentNode metaPart)
-
openReflectLanes
protected void openReflectLanes(PartBinding part, AgentNode metaPart)
-
openLogLanes
protected void openLogLanes(PartBinding part, AgentNode metaPart)
-
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
-
closeHost
public void closeHost(Uri hostUri)
-
didOpenHost
protected void didOpenHost(HostBinding host)
-
didCloseHost
protected void didCloseHost(HostBinding host)
-
hostDidConnect
public void hostDidConnect(Uri hostUri)
-
hostDidDisconnect
public void hostDidDisconnect(Uri hostUri)
-
reopenUplinks
public void reopenUplinks()
- Specified by:
reopenUplinks
in interfacePartBinding
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHost
in interfacePartBinding
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfacePartBinding
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfacePartBinding
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfacePartBinding
-
openMetaDownlink
public void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
- Specified by:
openMetaDownlink
in interfaceCellContext
-
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
-
openUplink
public void openUplink(LinkBinding link)
- Specified by:
openUplink
in interfaceCellBinding
-
pushDown
public void pushDown(Push<?> push)
- Specified by:
pushDown
in interfaceCellContext
-
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.
-
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
public void didFail(Throwable error)
- Specified by:
didFail
in interfaceTierBinding
- Overrides:
didFail
in classAbstractTierBinding
-
reportDown
public void reportDown(Metric metric)
- Specified by:
reportDown
in interfaceCellContext
-
accumulateHostProfile
protected void accumulateHostProfile(HostProfile profile)
-
accumulateWarpDownlinkProfile
protected void accumulateWarpDownlinkProfile(WarpDownlinkProfile profile)
-
didUpdateMetrics
protected void didUpdateMetrics()
-
flushMetrics
protected void flushMetrics()
-
reportMetrics
protected void reportMetrics(long dt)
-
collectProfile
protected PartProfile collectProfile(long dt)
-
-