- java.lang.Object
-
- swim.system.AbstractWarpRef
-
- swim.system.AbstractTierBinding
-
- All Implemented Interfaces:
DownlinkFactory
,WarpRef
,CellContext
,TierBinding
,Log
- Direct Known Subclasses:
ActorSpace
,AgentNode
,AgentView
,EdgeTable
,HostTable
,LaneModel
,LaneView
,MeshTable
,PartTable
,RemoteHost
public abstract class AbstractTierBinding extends AbstractWarpRef implements TierBinding
-
-
Field Summary
Fields Modifier and Type Field Description protected static int
CLOSED_PHASE
protected static int
CLOSED_STATE
protected static int
CLOSING_STATE
protected static int
FAILED_STATE
protected static int
FAILING_STATE
protected static int
LOADED_PHASE
protected static int
LOADED_STATE
protected static int
LOADING_STATE
protected static int
OPENED_PHASE
protected static int
OPENED_STATE
protected static int
OPENING_STATE
protected static int
PHASE_MASK
protected static int
PHASE_SHIFT
protected static int
RECOVERING_STATE
protected static int
STARTED_PHASE
protected static int
STARTED_STATE
protected static int
STARTING_STATE
protected static int
STATE_MASK
protected int
status
protected static AtomicIntegerFieldUpdater<AbstractTierBinding>
STATUS
protected static int
STOPPING_STATE
protected static int
UNLOADING_STATE
-
Constructor Summary
Constructors Constructor Description AbstractTierBinding()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
activate(TierBinding childTier)
void
awaitStart()
void
close()
void
didClose()
void
didFail(Throwable error)
protected void
didLoad()
protected void
didOpen()
protected void
didStart()
protected void
didStop()
protected void
didUnload()
boolean
isClosed()
boolean
isLoaded()
boolean
isOpened()
boolean
isStarted()
void
load()
void
open()
void
start()
void
stop()
abstract TierContext
tierContext()
void
unload()
protected void
willClose()
protected void
willLoad()
protected void
willOpen()
protected void
willStart()
protected void
willStop()
protected void
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.system.CellContext
bindDownlink, cellAddress, closeDownlink, edgeName, meshUri, openDownlink, openMetaDownlink, policy, pushDown, reportDown, schedule, stage, store
-
-
-
-
Field Detail
-
status
protected volatile int status
-
STATE_MASK
protected static final int STATE_MASK
- See Also:
- Constant Field Values
-
CLOSED_STATE
protected static final int CLOSED_STATE
- See Also:
- Constant Field Values
-
CLOSING_STATE
protected static final int CLOSING_STATE
- See Also:
- Constant Field Values
-
UNLOADING_STATE
protected static final int UNLOADING_STATE
- See Also:
- Constant Field Values
-
STOPPING_STATE
protected static final int STOPPING_STATE
- See Also:
- Constant Field Values
-
RECOVERING_STATE
protected static final int RECOVERING_STATE
- See Also:
- Constant Field Values
-
FAILING_STATE
protected static final int FAILING_STATE
- See Also:
- Constant Field Values
-
FAILED_STATE
protected static final int FAILED_STATE
- See Also:
- Constant Field Values
-
OPENING_STATE
protected static final int OPENING_STATE
- See Also:
- Constant Field Values
-
OPENED_STATE
protected static final int OPENED_STATE
- See Also:
- Constant Field Values
-
LOADING_STATE
protected static final int LOADING_STATE
- See Also:
- Constant Field Values
-
LOADED_STATE
protected static final int LOADED_STATE
- See Also:
- Constant Field Values
-
STARTING_STATE
protected static final int STARTING_STATE
- See Also:
- Constant Field Values
-
STARTED_STATE
protected static final int STARTED_STATE
- See Also:
- Constant Field Values
-
PHASE_SHIFT
protected static final int PHASE_SHIFT
- See Also:
- Constant Field Values
-
PHASE_MASK
protected static final int PHASE_MASK
- See Also:
- Constant Field Values
-
CLOSED_PHASE
protected static final int CLOSED_PHASE
- See Also:
- Constant Field Values
-
OPENED_PHASE
protected static final int OPENED_PHASE
- See Also:
- Constant Field Values
-
LOADED_PHASE
protected static final int LOADED_PHASE
- See Also:
- Constant Field Values
-
STARTED_PHASE
protected static final int STARTED_PHASE
- See Also:
- Constant Field Values
-
STATUS
protected static final AtomicIntegerFieldUpdater<AbstractTierBinding> STATUS
-
-
Method Detail
-
tierContext
public abstract TierContext tierContext()
- Specified by:
tierContext
in interfaceTierBinding
-
isClosed
public boolean isClosed()
- Specified by:
isClosed
in interfaceTierBinding
-
isOpened
public boolean isOpened()
- Specified by:
isOpened
in interfaceTierBinding
-
isLoaded
public boolean isLoaded()
- Specified by:
isLoaded
in interfaceTierBinding
-
isStarted
public boolean isStarted()
- Specified by:
isStarted
in interfaceTierBinding
-
activate
protected void activate(TierBinding childTier)
-
open
public void open()
- Specified by:
open
in interfaceTierBinding
-
load
public void load()
- Specified by:
load
in interfaceTierBinding
-
start
public void start()
- Specified by:
start
in interfaceTierBinding
-
stop
public void stop()
- Specified by:
stop
in interfaceTierBinding
-
unload
public void unload()
- Specified by:
unload
in interfaceTierBinding
-
close
public void close()
- Specified by:
close
in interfaceTierBinding
- Specified by:
close
in interfaceWarpRef
- Specified by:
close
in classAbstractWarpRef
-
awaitStart
public void awaitStart()
-
willOpen
protected void willOpen()
-
didOpen
protected void didOpen()
-
willLoad
protected void willLoad()
-
didLoad
protected void didLoad()
-
willStart
protected void willStart()
-
didStart
protected void didStart()
-
willStop
protected void willStop()
-
didStop
protected void didStop()
-
willUnload
protected void willUnload()
-
didUnload
protected void didUnload()
-
willClose
protected void willClose()
-
didClose
public void didClose()
- Specified by:
didClose
in interfaceTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFail
in interfaceTierBinding
-
-