- java.lang.Object
-
- swim.runtime.AbstractDownlinkBinding
-
- swim.runtime.DownlinkModel<View>
-
- swim.runtime.warp.WarpDownlinkModem<View>
-
- All Implemented Interfaces:
LinkBinding,WarpBinding,Log
- Direct Known Subclasses:
WarpDownlinkModel
public abstract class WarpDownlinkModem<View extends DownlinkView> extends DownlinkModel<View> implements WarpBinding
-
-
Field Summary
Fields Modifier and Type Field Description protected Valuebodyprotected CellContextcellContextprotected static AtomicLongFieldUpdater<WarpDownlinkModem<?>>EXEC_DELTAprotected static AtomicLongFieldUpdater<WarpDownlinkModem<?>>EXEC_TIMEprotected WarpContextlinkContextprotected floatprioprotected floatrateprotected intstatus-
Fields inherited from class swim.runtime.DownlinkModel
views
-
Fields inherited from class swim.runtime.AbstractDownlinkBinding
hostUri, laneUri, meshUri, nodeUri
-
-
Method Summary
Modifier and Type Method Description voidaccumulateExecTime(long execDelta)Valuebody()CellContextcellContext()voidcloseDown()protected WarpDownlinkProfilecollectProfile(long dt)voidcommand(float prio, Value body)voidcommand(float prio, Value body, Cont<CommandMessage> cont)voidcommand(Value body)voidcommand(Value body, Cont<CommandMessage> cont)voidcueDown()voidcueUp()protected voiddidAddDownlink(View view)protected voiddidClose()voiddidCloseUp()voiddidConnect()voiddidDisconnect()voiddidFail(Throwable error)protected voiddidLink(LinkedResponse response)protected voiddidOpen()protected voiddidRemoveDownlink(View view)protected voiddidSync(SyncedResponse response)protected voiddidUnlink(UnlinkedResponse response)protected voiddidUpdateMetrics()voidfeedDown()protected voidfeedUp()protected voidflushMetrics()abstract booleankeepLinked()abstract booleankeepSynced()voidlink()WarpContextlinkContext()protected LinkRequestlinkRequest()WarpBindinglinkWrapper()protected Push<CommandMessage>nextUpCue()protected Push<CommandMessage>nextUpQueue()protected voidonCommand(CommandMessage message)protected voidonEvent(EventMessage message)voidopenDown()voidopenMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)floatprio()voidpullUp()protected voidpullUpCommand(CommandMessage message)protected voidpullUpLink(LinkRequest request)protected voidpullUpSync(SyncRequest request)protected voidpullUpUnlink(UnlinkRequest request)voidpushDown(Push<?> push)protected voidpushDownEvent(Push<EventMessage> push)protected voidpushDownLinked(Push<LinkedResponse> push)protected voidpushDownSynced(Push<SyncedResponse> push)protected voidpushDownUnknown(Push<?> push)protected voidpushDownUnlinked(Push<UnlinkedResponse> push)voidpushUp(Value body)protected voidpushUp(Envelope envelope)protected voidqueueUp(Value body, Cont<CommandMessage> cont)floatrate()voidreopen()protected voidreportMetrics(long dt)voidsetCellContext(CellContext cellContext)voidsetLinkContext(LinkContext linkContext)voidskipDown()voidsync()protected SyncRequestsyncRequest()voidunlink()protected UnlinkRequestunlinkRequest()protected booleanupQueueIsEmpty()protected voidwillLink(LinkRequest request)protected voidwillSync(SyncRequest request)protected voidwillUnlink(UnlinkRequest request)-
Methods inherited from class swim.runtime.DownlinkModel
addDownlink, removeDownlink, removeDownlinks
-
Methods inherited from class swim.runtime.AbstractDownlinkBinding
cellAddressDown, cipherSuite, cipherSuiteDown, debug, debugDown, error, errorDown, fail, failDown, hostUri, info, infoDown, isConnected, isConnectedDown, isRemote, isRemoteDown, isSecure, isSecureDown, laneUri, linkKey, localAddress, localAddressDown, localCertificates, localCertificatesDown, localIdentity, localIdentityDown, localPrincipal, localPrincipalDown, meshUri, nodeUri, remoteAddress, remoteAddressDown, remoteCertificates, remoteCertificatesDown, remoteIdentity, remoteIdentityDown, remotePrincipal, remotePrincipalDown, securityProtocol, securityProtocolDown, trace, traceDown, unwrapLink, warn, warnDown
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.runtime.LinkBinding
cellAddressDown, cipherSuiteDown, debugDown, errorDown, failDown, hostUri, infoDown, isConnectedDown, isRemoteDown, isSecureDown, laneUri, linkKey, localAddressDown, localCertificatesDown, localIdentityDown, localPrincipalDown, meshUri, nodeUri, remoteAddressDown, remoteCertificatesDown, remoteIdentityDown, remotePrincipalDown, securityProtocolDown, traceDown, unwrapLink, warnDown
-
-
-
-
Field Detail
-
EXEC_DELTA
protected static final AtomicLongFieldUpdater<WarpDownlinkModem<?>> EXEC_DELTA
-
EXEC_TIME
protected static final AtomicLongFieldUpdater<WarpDownlinkModem<?>> EXEC_TIME
-
prio
protected final float prio
-
rate
protected final float rate
-
body
protected final Value body
-
linkContext
protected WarpContext linkContext
-
cellContext
protected CellContext cellContext
-
status
protected volatile int status
-
-
Method Detail
-
linkWrapper
public final WarpBinding linkWrapper()
- Specified by:
linkWrapperin interfaceLinkBinding- Specified by:
linkWrapperin interfaceWarpBinding- Specified by:
linkWrapperin classAbstractDownlinkBinding
-
linkContext
public final WarpContext linkContext()
- Specified by:
linkContextin interfaceLinkBinding- Specified by:
linkContextin interfaceWarpBinding- Specified by:
linkContextin classAbstractDownlinkBinding
-
setLinkContext
public void setLinkContext(LinkContext linkContext)
- Specified by:
setLinkContextin interfaceLinkBinding
-
cellContext
public final CellContext cellContext()
- Specified by:
cellContextin interfaceLinkBinding- Specified by:
cellContextin classAbstractDownlinkBinding
-
setCellContext
public void setCellContext(CellContext cellContext)
- Specified by:
setCellContextin interfaceLinkBinding
-
prio
public final float prio()
- Specified by:
prioin interfaceWarpBinding
-
rate
public final float rate()
- Specified by:
ratein interfaceWarpBinding
-
body
public final Value body()
- Specified by:
bodyin interfaceWarpBinding
-
keepLinked
public abstract boolean keepLinked()
- Specified by:
keepLinkedin interfaceWarpBinding
-
keepSynced
public abstract boolean keepSynced()
- Specified by:
keepSyncedin interfaceWarpBinding
-
cueDown
public void cueDown()
-
feedDown
public void feedDown()
- Specified by:
feedDownin interfaceWarpBinding
-
pushDown
public void pushDown(Push<?> push)
- Specified by:
pushDownin interfaceWarpBinding
-
pushDownEvent
protected void pushDownEvent(Push<EventMessage> push)
-
pushDownLinked
protected void pushDownLinked(Push<LinkedResponse> push)
-
pushDownSynced
protected void pushDownSynced(Push<SyncedResponse> push)
-
pushDownUnlinked
protected void pushDownUnlinked(Push<UnlinkedResponse> push)
-
pushDownUnknown
protected void pushDownUnknown(Push<?> push)
-
skipDown
public void skipDown()
- Specified by:
skipDownin interfaceWarpBinding
-
upQueueIsEmpty
protected boolean upQueueIsEmpty()
-
queueUp
protected void queueUp(Value body, Cont<CommandMessage> cont)
-
nextUpQueue
protected Push<CommandMessage> nextUpQueue()
-
nextUpCue
protected Push<CommandMessage> nextUpCue()
-
pushUp
public void pushUp(Value body)
-
cueUp
public void cueUp()
-
feedUp
protected void feedUp()
-
pullUp
public void pullUp()
- Specified by:
pullUpin interfaceWarpBinding
-
pullUpCommand
protected void pullUpCommand(CommandMessage message)
-
pullUpLink
protected void pullUpLink(LinkRequest request)
-
pullUpSync
protected void pullUpSync(SyncRequest request)
-
pullUpUnlink
protected void pullUpUnlink(UnlinkRequest request)
-
pushUp
protected void pushUp(Envelope envelope)
-
link
public void link()
-
sync
public void sync()
-
unlink
public void unlink()
-
command
public void command(float prio, Value body, Cont<CommandMessage> cont)
-
command
public void command(Value body, Cont<CommandMessage> cont)
-
command
public void command(float prio, Value body)
-
command
public void command(Value body)
-
linkRequest
protected LinkRequest linkRequest()
-
syncRequest
protected SyncRequest syncRequest()
-
unlinkRequest
protected UnlinkRequest unlinkRequest()
-
didAddDownlink
protected void didAddDownlink(View view)
- Overrides:
didAddDownlinkin classDownlinkModel<View extends DownlinkView>
-
didRemoveDownlink
protected void didRemoveDownlink(View view)
- Overrides:
didRemoveDownlinkin classDownlinkModel<View extends DownlinkView>
-
reopen
public void reopen()
- Specified by:
reopenin interfaceLinkBinding- Overrides:
reopenin classDownlinkModel<View extends DownlinkView>
-
openDown
public void openDown()
- Specified by:
openDownin interfaceLinkBinding- Specified by:
openDownin classAbstractDownlinkBinding
-
didOpen
protected void didOpen()
-
closeDown
public void closeDown()
- Specified by:
closeDownin interfaceLinkBinding- Specified by:
closeDownin classAbstractDownlinkBinding
-
didClose
protected void didClose()
-
onEvent
protected void onEvent(EventMessage message)
-
onCommand
protected void onCommand(CommandMessage message)
-
willLink
protected void willLink(LinkRequest request)
-
didLink
protected void didLink(LinkedResponse response)
-
willSync
protected void willSync(SyncRequest request)
-
didSync
protected void didSync(SyncedResponse response)
-
willUnlink
protected void willUnlink(UnlinkRequest request)
-
didUnlink
protected void didUnlink(UnlinkedResponse response)
-
didConnect
public void didConnect()
- Specified by:
didConnectin interfaceLinkBinding- Overrides:
didConnectin classDownlinkModel<View extends DownlinkView>
-
didDisconnect
public void didDisconnect()
- Specified by:
didDisconnectin interfaceLinkBinding- Overrides:
didDisconnectin classDownlinkModel<View extends DownlinkView>
-
didCloseUp
public void didCloseUp()
- Specified by:
didCloseUpin interfaceLinkBinding- Overrides:
didCloseUpin classDownlinkModel<View extends DownlinkView>
-
didFail
public void didFail(Throwable error)
- Specified by:
didFailin interfaceLinkBinding- Overrides:
didFailin classDownlinkModel<View extends DownlinkView>
-
openMetaDownlink
public void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
- Specified by:
openMetaDownlinkin interfaceLinkBinding
-
accumulateExecTime
public void accumulateExecTime(long execDelta)
- Overrides:
accumulateExecTimein classDownlinkModel<View extends DownlinkView>
-
didUpdateMetrics
protected void didUpdateMetrics()
-
flushMetrics
protected void flushMetrics()
-
reportMetrics
protected void reportMetrics(long dt)
-
collectProfile
protected WarpDownlinkProfile collectProfile(long dt)
-
-