- java.lang.Object
-
- swim.system.AbstractWarpRef
-
- swim.system.AbstractTierBinding
-
- swim.system.LaneView
-
- All Implemented Interfaces:
DownlinkFactory
,Lane
,WarpRef
,Observable<Object>
,CellContext
,TierBinding
,Log
- Direct Known Subclasses:
HttpLaneView
,WarpLaneView
public abstract class LaneView extends AbstractTierBinding implements Lane
-
-
Field Summary
Fields Modifier and Type Field Description protected Object
observers
-
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract AgentContext
agentContext()
LinkBinding
bindDownlink(Downlink downlink)
<T> T
bottomLane(Class<T> laneClass)
LaneAddress
cellAddress()
abstract void
close()
void
closeDownlink(LinkBinding link)
abstract LaneBinding
createLaneBinding()
void
debug(Object message)
Logs a debug-level message.String
edgeName()
void
error(Object message)
Logs an error-level message.void
fail(Object message)
Logs an fail-level message.Uri
hostUri()
void
info(Object message)
Logs an info-level message.abstract LaneBinding
laneBinding()
LaneContext
laneContext()
void
laneDidFail(Throwable error)
Uri
laneUri()
Uri
meshUri()
Uri
nodeUri()
LaneView
observe(Object newObserver)
void
openDownlink(LinkBinding link)
void
openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
Policy
policy()
void
pushDown(Push<?> push)
void
reportDown(Metric metric)
Schedule
schedule()
Stage
stage()
StoreBinding
store()
TierContext
tierContext()
void
trace(Object message)
Logs a trace-level message.LaneView
unobserve(Object oldObserver)
<T> T
unwrapLane(Class<T> laneClass)
void
warn(Object message)
Logs a warn-level message.-
Methods inherited from class swim.system.AbstractTierBinding
activate, awaitStart, didClose, didFail, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, unload, willClose, willLoad, willOpen, willStart, willStop, willUnload
-
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
-
observers
protected volatile Object observers
-
-
Constructor Detail
-
LaneView
public LaneView(Object observers)
-
-
Method Detail
-
tierContext
public TierContext tierContext()
- Specified by:
tierContext
in interfaceTierBinding
- Specified by:
tierContext
in classAbstractTierBinding
-
agentContext
public abstract AgentContext agentContext()
-
laneBinding
public abstract LaneBinding laneBinding()
-
laneContext
public LaneContext laneContext()
-
createLaneBinding
public abstract LaneBinding createLaneBinding()
-
unwrapLane
public <T> T unwrapLane(Class<T> laneClass)
-
bottomLane
public <T> T bottomLane(Class<T> laneClass)
-
cellAddress
public LaneAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
-
edgeName
public final String edgeName()
- Specified by:
edgeName
in interfaceCellContext
-
meshUri
public final Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
-
close
public abstract void close()
- Specified by:
close
in interfaceLane
- Specified by:
close
in interfaceTierBinding
- Specified by:
close
in interfaceWarpRef
- Overrides:
close
in classAbstractTierBinding
-
observe
public LaneView observe(Object newObserver)
- Specified by:
observe
in interfaceLane
- Specified by:
observe
in interfaceObservable<Object>
-
unobserve
public LaneView unobserve(Object oldObserver)
- Specified by:
unobserve
in interfaceLane
- Specified by:
unobserve
in interfaceObservable<Object>
-
laneDidFail
public void laneDidFail(Throwable error)
-
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
-
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
-
pushDown
public void pushDown(Push<?> push)
- Specified by:
pushDown
in interfaceCellContext
-
reportDown
public void reportDown(Metric metric)
- Specified by:
reportDown
in interfaceCellContext
-
openMetaDownlink
public void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
- Specified by:
openMetaDownlink
in interfaceCellContext
-
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.
-
-