- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.router.PartTable
-
- All Implemented Interfaces:
swim.api.downlink.DownlinkFactory,swim.api.ref.SwimRef,CellBinding,CellContext,PartBinding,TierBinding,swim.store.StoreBinding,swim.store.StoreContext,swim.util.Log
public class PartTable extends AbstractTierBinding implements PartBinding
-
-
Field Summary
Fields Modifier and Type Field Description protected PartContextpartContext-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinkBindingbindDownlink(swim.api.downlink.Downlink downlink)voidcloseData(swim.structure.Value name)voidcloseDownlink(LinkBinding link)voidcloseHost(swim.uri.Uri hostUri)protected HostContextcreateHostContext(HostBinding host, swim.uri.Uri hostUri)swim.api.data.DataFactorydata()Iterator<swim.store.DataBinding>dataBindings()voiddebug(Object message)voiddidClose()voiddidFail(Throwable error)voiderror(Object message)HostBindinggetHost(swim.uri.Uri hostUri)swim.collections.HashTrieMap<swim.uri.Uri,HostBinding>getHosts()HostBindinggetMaster()voidhostDidConnect(swim.uri.Uri hostUri)voidhostDidDisconnect(swim.uri.Uri hostUri)voidhttpDownlink(HttpBinding http)voidhttpUplink(HttpBinding http)voidinfo(Object message)swim.store.ListDataBindinginjectListData(swim.store.ListDataBinding dataBinding)swim.store.MapDataBindinginjectMapData(swim.store.MapDataBinding dataBinding)<S> swim.store.SpatialDataBinding<S>injectSpatialData(swim.store.SpatialDataBinding<S> dataBinding)swim.store.ValueDataBindinginjectValueData(swim.store.ValueDataBinding dataBinding)swim.uri.UrimeshUri()voidopenDownlink(LinkBinding link)HostBindingopenHost(swim.uri.Uri hostUri)HostBindingopenHost(swim.uri.Uri hostUri, HostBinding host)swim.store.ListDataBindingopenListData(swim.structure.Value name)swim.store.MapDataBindingopenMapData(swim.structure.Value name)<S> swim.store.SpatialDataBinding<S>openSpatialData(swim.structure.Value name, swim.math.Z2Form<S> shapeForm)voidopenUplink(LinkBinding link)swim.store.ValueDataBindingopenValueData(swim.structure.Value name)PartContextpartContext()swim.structure.ValuepartKey()swim.api.policy.Policypolicy()PartPredicatepredicate()voidpushDown(PushRequest pushRequest)voidpushUp(PushRequest pushRequest)voidreopenUplinks()swim.concurrent.Scheduleschedule()voidsetMaster(HostBinding master)voidsetPartContext(PartContext partContext)swim.concurrent.Stagestage()TierContexttierContext()voidtrace(Object message)<T> TunwrapPart(Class<T> partClass)voidwarn(Object message)protected voidwillClose()protected voidwillLoad()protected voidwillOpen()protected voidwillStart()protected voidwillStop()protected voidwillUnload()-
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, 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:
tierContextin interfaceTierBinding- Specified by:
tierContextin classAbstractTierBinding
-
partContext
public final PartContext partContext()
- Specified by:
partContextin interfacePartBinding
-
setPartContext
public void setPartContext(PartContext partContext)
- Specified by:
setPartContextin interfacePartBinding
-
unwrapPart
public <T> T unwrapPart(Class<T> partClass)
- Specified by:
unwrapPartin interfacePartBinding
-
createHostContext
protected HostContext createHostContext(HostBinding host, swim.uri.Uri hostUri)
-
meshUri
public final swim.uri.Uri meshUri()
- Specified by:
meshUriin interfaceCellContext- Specified by:
meshUriin interfacePartBinding
-
partKey
public final swim.structure.Value partKey()
- Specified by:
partKeyin interfacePartBinding
-
policy
public swim.api.policy.Policy policy()
- Specified by:
policyin interfaceCellContext
-
schedule
public swim.concurrent.Schedule schedule()
- Specified by:
schedulein interfaceCellContext
-
stage
public swim.concurrent.Stage stage()
- Specified by:
stagein interfaceCellContext
-
data
public swim.api.data.DataFactory data()
- Specified by:
datain interfaceCellContext
-
predicate
public PartPredicate predicate()
- Specified by:
predicatein interfacePartBinding
-
getMaster
public HostBinding getMaster()
- Specified by:
getMasterin interfacePartBinding
-
setMaster
public void setMaster(HostBinding master)
- Specified by:
setMasterin interfacePartBinding
-
getHosts
public swim.collections.HashTrieMap<swim.uri.Uri,HostBinding> getHosts()
- Specified by:
getHostsin interfacePartBinding
-
getHost
public HostBinding getHost(swim.uri.Uri hostUri)
- Specified by:
getHostin interfacePartBinding
-
openHost
public HostBinding openHost(swim.uri.Uri hostUri)
- Specified by:
openHostin interfacePartBinding
-
openHost
public HostBinding openHost(swim.uri.Uri hostUri, HostBinding host)
- Specified by:
openHostin interfacePartBinding
-
closeHost
public void closeHost(swim.uri.Uri hostUri)
-
hostDidConnect
public void hostDidConnect(swim.uri.Uri hostUri)
-
hostDidDisconnect
public void hostDidDisconnect(swim.uri.Uri hostUri)
-
reopenUplinks
public void reopenUplinks()
- Specified by:
reopenUplinksin interfacePartBinding
-
dataBindings
public Iterator<swim.store.DataBinding> dataBindings()
- Specified by:
dataBindingsin interfaceswim.store.StoreBinding
-
closeData
public void closeData(swim.structure.Value name)
- Specified by:
closeDatain interfaceswim.store.StoreBinding
-
openListData
public swim.store.ListDataBinding openListData(swim.structure.Value name)
- Specified by:
openListDatain interfaceswim.store.StoreContext
-
injectListData
public swim.store.ListDataBinding injectListData(swim.store.ListDataBinding dataBinding)
- Specified by:
injectListDatain interfaceswim.store.StoreContext
-
openMapData
public swim.store.MapDataBinding openMapData(swim.structure.Value name)
- Specified by:
openMapDatain interfaceswim.store.StoreContext
-
injectMapData
public swim.store.MapDataBinding injectMapData(swim.store.MapDataBinding dataBinding)
- Specified by:
injectMapDatain interfaceswim.store.StoreContext
-
openSpatialData
public <S> swim.store.SpatialDataBinding<S> openSpatialData(swim.structure.Value name, swim.math.Z2Form<S> shapeForm)- Specified by:
openSpatialDatain interfaceswim.store.StoreContext
-
injectSpatialData
public <S> swim.store.SpatialDataBinding<S> injectSpatialData(swim.store.SpatialDataBinding<S> dataBinding)
- Specified by:
injectSpatialDatain interfaceswim.store.StoreContext
-
openValueData
public swim.store.ValueDataBinding openValueData(swim.structure.Value name)
- Specified by:
openValueDatain interfaceswim.store.StoreContext
-
injectValueData
public swim.store.ValueDataBinding injectValueData(swim.store.ValueDataBinding dataBinding)
- Specified by:
injectValueDatain interfaceswim.store.StoreContext
-
bindDownlink
public LinkBinding bindDownlink(swim.api.downlink.Downlink downlink)
- Specified by:
bindDownlinkin interfaceCellContext
-
openDownlink
public void openDownlink(LinkBinding link)
- Specified by:
openDownlinkin interfaceCellContext
-
closeDownlink
public void closeDownlink(LinkBinding link)
- Specified by:
closeDownlinkin interfaceCellContext
-
openUplink
public void openUplink(LinkBinding link)
- Specified by:
openUplinkin interfaceCellBinding
-
httpDownlink
public void httpDownlink(HttpBinding http)
- Specified by:
httpDownlinkin interfaceCellContext
-
httpUplink
public void httpUplink(HttpBinding http)
- Specified by:
httpUplinkin interfaceCellBinding
-
pushDown
public void pushDown(PushRequest pushRequest)
- Specified by:
pushDownin interfaceCellContext
-
pushUp
public void pushUp(PushRequest pushRequest)
- Specified by:
pushUpin interfaceCellBinding
-
trace
public void trace(Object message)
- Specified by:
tracein interfaceswim.util.Log
-
debug
public void debug(Object message)
- Specified by:
debugin interfaceswim.util.Log
-
info
public void info(Object message)
- Specified by:
infoin interfaceswim.util.Log
-
warn
public void warn(Object message)
- Specified by:
warnin interfaceswim.util.Log
-
error
public void error(Object message)
- Specified by:
errorin interfaceswim.util.Log
-
willOpen
protected void willOpen()
- Overrides:
willOpenin classAbstractTierBinding
-
willLoad
protected void willLoad()
- Overrides:
willLoadin classAbstractTierBinding
-
willStart
protected void willStart()
- Overrides:
willStartin classAbstractTierBinding
-
willStop
protected void willStop()
- Overrides:
willStopin classAbstractTierBinding
-
willUnload
protected void willUnload()
- Overrides:
willUnloadin classAbstractTierBinding
-
willClose
protected void willClose()
- Overrides:
willClosein classAbstractTierBinding
-
didClose
public void didClose()
- Specified by:
didClosein interfaceTierBinding- Overrides:
didClosein classAbstractTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFailin interfaceTierBinding- Overrides:
didFailin classAbstractTierBinding
-
-