java.lang.Object
swim.system.AbstractWarpRef
swim.system.AbstractTierBinding
swim.actor.ActorSpace
- All Implemented Interfaces:
DownlinkFactory
,PlaneContext
,WarpRef
,Space
,CellContext
,EdgeContext
,TierBinding
,TierContext
,Log
-
Field Summary
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
-
Constructor Summary
ConstructorsConstructorDescriptionActorSpace
(EdgeAddress edgeAddress, ActorSpaceDef spaceDef, KernelContext kernel) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAgentRoute
(String routeName, String pattern, AgentRoute<?> agentRoute) void
addAgentRoute
(String routeName, UriPattern pattern, AgentRoute<?> agentRoute) void
addAuthenticator
(String authenticatorName, Authenticator authenticator) authenticate
(Credentials credentials) bindDownlink
(Downlink downlink) <T> T
bottomEdge
(Class<T> edgeClass) final EdgeAddress
void
close()
void
closeDownlink
(LinkBinding link) protected void
closeLog()
protected void
protected void
protected void
<A extends Agent>
AgentFactory<A>createAgentFactory
(NodeBinding node, Class<? extends A> agentClass) AgentFactory<?>
createAgentFactory
(NodeBinding node, AgentDef agentDef) <A extends Agent>
AgentRoute<A>createAgentRoute
(Class<? extends A> agentClass) protected EdgeBinding
createHost
(HostAddress hostAddress) createLane
(LaneAddress laneAddress) createLane
(NodeBinding node, LaneDef laneDef) createLog
(CellAddress cellAddress) createMesh
(MeshAddress meshAddress) createNode
(NodeAddress nodeAddress) createPart
(PartAddress partAddress) protected <P extends Plane>
PcreatePlane
(PlaneFactory<P> planeFactory) createPolicy
(CellAddress cellAddress) createPolicy
(PolicyDef policyDef) createStage
(StageDef stageDef) createStage
(CellAddress cellAddress) createStore
(StoreDef storeDef) createStore
(CellAddress cellAddress) void
Logs a debug-level message.void
didClose()
void
void
didLoad()
void
didOpen()
void
didStart()
void
didStop()
void
final EdgeBinding
edge()
final String
edgeName()
final EdgeBinding
void
Logs an error-level message.void
Logs an fail-level message.AgentFactory<?>
getAgentFactory
(Uri nodeUri) <A extends Agent>
AgentRoute<A>getAgentRoute
(String routeName) getAuthenticator
(String authenticatorName) getHostDef
(HostAddress hostAddress) getLaneDef
(LaneAddress laneAddress) getMeshDef
(MeshAddress meshAddress) getNodeDef
(NodeAddress nodeAddress) getPartDef
(PartAddress partAddress) <P extends Plane>
Pvoid
Logs an info-level message.protected EdgeBinding
injectEdge
(EdgeAddress edgeAddress, EdgeBinding edge) injectHost
(HostAddress hostAddress, HostBinding host) injectLane
(LaneAddress laneAddress, LaneBinding lane) injectMesh
(MeshAddress meshAddress, MeshBinding mesh) injectNode
(NodeAddress nodeAddress, NodeBinding node) injectPart
(PartAddress partAddress, PartBinding part) injectPolicy
(Policy policy) injectStage
(Stage stage) injectStore
(StoreBinding store) final KernelContext
kernel()
void
load()
final Uri
meshUri()
void
open()
void
openAgents
(NodeBinding node) void
openDownlink
(LinkBinding link) void
openLanes
(NodeBinding node) protected Log
openLog()
void
openMetaDownlink
(LinkBinding downlink, NodeBinding metaDownlink) void
openMetaEdge
(EdgeBinding edge, NodeBinding metaEdge) void
openMetaHost
(HostBinding host, NodeBinding metaHost) void
openMetaLane
(LaneBinding lane, NodeBinding metaLane) void
openMetaMesh
(MeshBinding mesh, NodeBinding metaMesh) void
openMetaNode
(NodeBinding node, NodeBinding metaNode) void
openMetaPart
(PartBinding part, NodeBinding metaPart) void
openMetaUplink
(LinkBinding uplink, NodeBinding metaUplink) <P extends Plane>
P<P extends Plane>
PopenPlane
(String planeName, PlaneFactory<P> planeFactory) protected PlanePolicy
protected Stage
protected StoreBinding
Collection<? extends Plane>
planes()
final PlanePolicy
policy()
void
void
removeAgentRoute
(String routeName) void
reportDown
(Metric metric) schedule()
protected void
seedEdge
(EdgeBinding edge) protected HostBinding
seedHost
(PartBinding part, HostDef hostDef) protected LaneBinding
seedLane
(NodeBinding node, LaneDef laneDef) protected MeshBinding
seedMesh
(EdgeBinding edge, MeshDef meshDef) protected NodeBinding
seedNode
(HostBinding host, NodeDef nodeDef) protected PartBinding
seedPart
(MeshBinding mesh, PartDef partDef) void
setPolicy
(PlanePolicy policy) final ActorSpaceDef
spaceDef()
final Stage
stage()
void
start()
void
stop()
final StoreBinding
store()
final TierContext
void
Logs a trace-level message.void
unload()
<T> T
unwrapEdge
(Class<T> edgeClass) void
Logs a warn-level message.void
void
willLoad()
void
willOpen()
void
void
willStop()
void
Methods inherited from class swim.system.AbstractTierBinding
activate, awaitStart, isClosed, isLoaded, isOpened, isStarted
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.api.downlink.DownlinkFactory
downlink, downlinkHttp, downlinkList, downlinkMap, downlinkValue, downlinkWs
-
Constructor Details
-
ActorSpace
-
-
Method Details
-
spaceDef
-
tierContext
- Specified by:
tierContext
in interfaceTierBinding
- Specified by:
tierContext
in classAbstractTierBinding
-
edgeWrapper
- Specified by:
edgeWrapper
in interfaceEdgeContext
-
unwrapEdge
- Specified by:
unwrapEdge
in interfaceEdgeContext
-
bottomEdge
- Specified by:
bottomEdge
in interfaceEdgeContext
-
cellAddress
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceEdgeContext
-
edgeName
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfaceEdgeContext
-
meshUri
- Specified by:
meshUri
in interfaceCellContext
-
policy
- Specified by:
policy
in interfaceCellContext
- Specified by:
policy
in interfacePlaneContext
- Specified by:
policy
in interfaceSpace
-
setPolicy
- Specified by:
setPolicy
in interfacePlaneContext
-
schedule
- Specified by:
schedule
in interfaceCellContext
- Specified by:
schedule
in interfacePlaneContext
- Specified by:
schedule
in interfaceSpace
-
stage
- Specified by:
stage
in interfaceCellContext
- Specified by:
stage
in interfacePlaneContext
- Specified by:
stage
in interfaceSpace
-
store
- Specified by:
store
in interfaceCellContext
-
kernel
-
edge
-
getAuthenticator
- Specified by:
getAuthenticator
in interfacePlaneContext
-
addAuthenticator
- Specified by:
addAuthenticator
in interfacePlaneContext
-
planes
-
getPlane
-
getPlane
-
openPlane
-
openPlane
-
createPlane
-
getAgentRoute
- Specified by:
getAgentRoute
in interfacePlaneContext
-
createAgentRoute
- Specified by:
createAgentRoute
in interfacePlaneContext
-
addAgentRoute
- Specified by:
addAgentRoute
in interfacePlaneContext
-
addAgentRoute
- Specified by:
addAgentRoute
in interfacePlaneContext
-
removeAgentRoute
- Specified by:
removeAgentRoute
in interfacePlaneContext
-
getAgentFactory
- Specified by:
getAgentFactory
in interfacePlaneContext
-
createAgentFactory
- Specified by:
createAgentFactory
in interfaceEdgeContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass) - Specified by:
createAgentFactory
in interfaceEdgeContext
-
openAgents
- Specified by:
openAgents
in interfaceEdgeContext
-
createLog
-
createLog
-
injectLog
-
openLog
-
closeLog
protected void closeLog() -
createPolicy
-
createPolicy
-
injectPolicy
-
openPolicy
-
closePolicy
protected void closePolicy() -
createStage
-
createStage
-
injectStage
-
openStage
-
closeStage
protected void closeStage() -
createStore
-
createStore
-
injectStore
-
openStore
-
closeStore
protected void closeStore() -
createEdge
-
seedEdge
-
seedMesh
-
seedPart
-
seedHost
-
seedNode
-
seedLane
-
injectEdge
-
openMetaEdge
- Specified by:
openMetaEdge
in interfaceEdgeContext
-
getMeshDef
-
createMesh
- Specified by:
createMesh
in interfaceEdgeContext
-
injectMesh
- Specified by:
injectMesh
in interfaceEdgeContext
-
openMetaMesh
- Specified by:
openMetaMesh
in interfaceEdgeContext
-
getPartDef
-
createPart
- Specified by:
createPart
in interfaceEdgeContext
-
injectPart
- Specified by:
injectPart
in interfaceEdgeContext
-
openMetaPart
- Specified by:
openMetaPart
in interfaceEdgeContext
-
getHostDef
-
createHost
- Specified by:
createHost
in interfaceEdgeContext
-
injectHost
- Specified by:
injectHost
in interfaceEdgeContext
-
openMetaHost
- Specified by:
openMetaHost
in interfaceEdgeContext
-
getNodeDef
-
createNode
- Specified by:
createNode
in interfaceEdgeContext
-
injectNode
- Specified by:
injectNode
in interfaceEdgeContext
-
openMetaNode
- Specified by:
openMetaNode
in interfaceEdgeContext
-
getLaneDef
-
createLane
- Specified by:
createLane
in interfaceEdgeContext
-
injectLane
- Specified by:
injectLane
in interfaceEdgeContext
-
openMetaLane
- Specified by:
openMetaLane
in interfaceEdgeContext
-
openMetaUplink
- Specified by:
openMetaUplink
in interfaceEdgeContext
-
openMetaDownlink
- Specified by:
openMetaDownlink
in interfaceCellContext
-
createLane
- Specified by:
createLane
in interfaceEdgeContext
-
openLanes
- Specified by:
openLanes
in interfaceEdgeContext
-
authenticate
- Specified by:
authenticate
in interfaceEdgeContext
-
bindDownlink
- Specified by:
bindDownlink
in interfaceCellContext
-
openDownlink
- Specified by:
openDownlink
in interfaceCellContext
-
closeDownlink
- Specified by:
closeDownlink
in interfaceCellContext
-
pushDown
- Specified by:
pushDown
in interfaceCellContext
-
reportDown
- Specified by:
reportDown
in interfaceCellContext
-
trace
Description copied from interface:Log
Logs a trace-level message. -
debug
Description copied from interface:Log
Logs a debug-level message. -
info
Description copied from interface:Log
Logs an info-level message. -
warn
Description copied from interface:Log
Logs a warn-level message. -
error
Description copied from interface:Log
Logs an error-level message. -
fail
Description copied from interface:Log
Logs an fail-level message. -
open
public void open()- Specified by:
open
in interfaceTierBinding
- Overrides:
open
in classAbstractTierBinding
-
load
public void load()- Specified by:
load
in interfaceTierBinding
- Overrides:
load
in classAbstractTierBinding
-
start
public void start()- Specified by:
start
in interfaceTierBinding
- Overrides:
start
in classAbstractTierBinding
-
stop
public void stop()- Specified by:
stop
in interfaceTierBinding
- Overrides:
stop
in classAbstractTierBinding
-
unload
public void unload()- Specified by:
unload
in interfaceTierBinding
- Overrides:
unload
in classAbstractTierBinding
-
close
public void close()- Specified by:
close
in interfaceTierBinding
- Specified by:
close
in interfaceTierContext
- Specified by:
close
in interfaceWarpRef
- Overrides:
close
in classAbstractTierBinding
-
willOpen
public void willOpen()- Specified by:
willOpen
in interfaceTierContext
- Overrides:
willOpen
in classAbstractTierBinding
-
didOpen
public void didOpen()- Specified by:
didOpen
in interfaceTierContext
- Overrides:
didOpen
in classAbstractTierBinding
-
willLoad
public void willLoad()- Specified by:
willLoad
in interfaceTierContext
- Overrides:
willLoad
in classAbstractTierBinding
-
didLoad
public void didLoad()- Specified by:
didLoad
in interfaceTierContext
- Overrides:
didLoad
in classAbstractTierBinding
-
willStart
public void willStart()- Specified by:
willStart
in interfaceTierContext
- Overrides:
willStart
in classAbstractTierBinding
-
didStart
public void didStart()- Specified by:
didStart
in interfaceTierContext
- Overrides:
didStart
in classAbstractTierBinding
-
willStop
public void willStop()- Specified by:
willStop
in interfaceTierContext
- Overrides:
willStop
in classAbstractTierBinding
-
didStop
public void didStop()- Specified by:
didStop
in interfaceTierContext
- Overrides:
didStop
in classAbstractTierBinding
-
willUnload
public void willUnload()- Specified by:
willUnload
in interfaceTierContext
- Overrides:
willUnload
in classAbstractTierBinding
-
didUnload
public void didUnload()- Specified by:
didUnload
in interfaceTierContext
- Overrides:
didUnload
in classAbstractTierBinding
-
willClose
public void willClose()- Specified by:
willClose
in interfaceTierContext
- Overrides:
willClose
in classAbstractTierBinding
-
didClose
public void didClose()- Specified by:
didClose
in interfaceTierBinding
- Overrides:
didClose
in classAbstractTierBinding
-
didFail
- Specified by:
didFail
in interfaceTierBinding
- Overrides:
didFail
in classAbstractTierBinding
-