- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.router.PartTable
-
- All Implemented Interfaces:
DownlinkFactory
,SwimRef
,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.runtime.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.runtime.AbstractTierBinding
activate, close, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload
-
Methods inherited from class swim.runtime.AbstractSwimRef
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
-
createHostContext
protected HostContext createHostContext(HostBinding host, Uri hostUri)
-
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
-
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)
-
hostDidConnect
public void hostDidConnect(Uri hostUri)
-
hostDidDisconnect
public void hostDidDisconnect(Uri hostUri)
-
reopenUplinks
public void reopenUplinks()
- Specified by:
reopenUplinks
in interfacePartBinding
-
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(PushRequest pushRequest)
- Specified by:
pushDown
in interfaceCellContext
-
pushUp
public void pushUp(PushRequest pushRequest)
- 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.
-
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
-
-