- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.runtime.router.MeshTable
-
- All Implemented Interfaces:
swim.api.downlink.DownlinkFactory,swim.api.ref.SwimRef,CellBinding,CellContext,MeshBinding,TierBinding,swim.store.StoreBinding,swim.store.StoreContext,swim.util.Log
public class MeshTable extends AbstractTierBinding implements MeshBinding
-
-
Field Summary
Fields Modifier and Type Field Description protected MeshContextmeshContext-
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 MeshTable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartBindingaddPart(swim.structure.Value partKey, PartBinding part)LinkBindingbindDownlink(swim.api.downlink.Downlink downlink)voidcloseData(swim.structure.Value name)voidcloseDownlink(LinkBinding link)voidclosePart(swim.structure.Value partKey)protected PartContextcreatePartContext(PartBinding part, swim.structure.Value partKey)swim.api.data.DataFactorydata()Iterator<swim.store.DataBinding>dataBindings()voiddebug(Object message)voiddidClose()voiddidFail(Throwable error)voiderror(Object message)PartBindinggetGateway()PartBindinggetOurself()PartBindinggetPart(swim.structure.Value partKey)PartBindinggetPart(swim.uri.Uri nodeUri)swim.collections.FingerTrieSeq<PartBinding>getParts()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)MeshContextmeshContext()swim.uri.UrimeshUri()voidopenDownlink(LinkBinding link)PartBindingopenGateway()swim.store.ListDataBindingopenListData(swim.structure.Value name)swim.store.MapDataBindingopenMapData(swim.structure.Value name)PartBindingopenPart(swim.uri.Uri nodeUri)<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)swim.api.policy.Policypolicy()voidpushDown(PushRequest pushRequest)voidpushUp(PushRequest pushRequest)swim.concurrent.Scheduleschedule()voidsetGateway(PartBinding gateway)voidsetMeshContext(MeshContext meshContext)voidsetOurself(PartBinding ourself)swim.concurrent.Stagestage()TierContexttierContext()voidtrace(Object message)<T> TunwrapMesh(Class<T> meshClass)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
-
meshContext
protected MeshContext meshContext
-
-
Method Detail
-
tierContext
public final TierContext tierContext()
- Specified by:
tierContextin interfaceTierBinding- Specified by:
tierContextin classAbstractTierBinding
-
meshContext
public final MeshContext meshContext()
- Specified by:
meshContextin interfaceMeshBinding
-
setMeshContext
public void setMeshContext(MeshContext meshContext)
- Specified by:
setMeshContextin interfaceMeshBinding
-
unwrapMesh
public <T> T unwrapMesh(Class<T> meshClass)
- Specified by:
unwrapMeshin interfaceMeshBinding
-
createPartContext
protected PartContext createPartContext(PartBinding part, swim.structure.Value partKey)
-
meshUri
public final swim.uri.Uri meshUri()
- Specified by:
meshUriin interfaceCellContext- Specified by:
meshUriin interfaceMeshBinding
-
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
-
getGateway
public PartBinding getGateway()
- Specified by:
getGatewayin interfaceMeshBinding
-
setGateway
public void setGateway(PartBinding gateway)
- Specified by:
setGatewayin interfaceMeshBinding
-
getOurself
public PartBinding getOurself()
- Specified by:
getOurselfin interfaceMeshBinding
-
setOurself
public void setOurself(PartBinding ourself)
- Specified by:
setOurselfin interfaceMeshBinding
-
getParts
public swim.collections.FingerTrieSeq<PartBinding> getParts()
- Specified by:
getPartsin interfaceMeshBinding
-
getPart
public PartBinding getPart(swim.uri.Uri nodeUri)
- Specified by:
getPartin interfaceMeshBinding
-
getPart
public PartBinding getPart(swim.structure.Value partKey)
- Specified by:
getPartin interfaceMeshBinding
-
openPart
public PartBinding openPart(swim.uri.Uri nodeUri)
- Specified by:
openPartin interfaceMeshBinding
-
openGateway
public PartBinding openGateway()
- Specified by:
openGatewayin interfaceMeshBinding
-
addPart
public PartBinding addPart(swim.structure.Value partKey, PartBinding part)
- Specified by:
addPartin interfaceMeshBinding
-
closePart
public void closePart(swim.structure.Value partKey)
-
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
-
-