- java.lang.Object
-
- swim.system.AbstractWarpRef
-
- swim.system.AbstractTierBinding
-
- swim.actor.ActorSpace
-
- All Implemented Interfaces:
DownlinkFactory
,PlaneContext
,WarpRef
,Space
,CellContext
,EdgeContext
,TierBinding
,TierContext
,Log
public class ActorSpace extends AbstractTierBinding implements EdgeContext, PlaneContext, Space
-
-
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
Constructors Constructor Description ActorSpace(EdgeAddress edgeAddress, ActorSpaceDef spaceDef, KernelContext kernel)
-
Method Summary
-
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 Detail
-
ActorSpace
public ActorSpace(EdgeAddress edgeAddress, ActorSpaceDef spaceDef, KernelContext kernel)
-
-
Method Detail
-
spaceDef
public final ActorSpaceDef spaceDef()
-
tierContext
public final TierContext tierContext()
- Specified by:
tierContext
in interfaceTierBinding
- Specified by:
tierContext
in classAbstractTierBinding
-
edgeWrapper
public final EdgeBinding edgeWrapper()
- Specified by:
edgeWrapper
in interfaceEdgeContext
-
unwrapEdge
public <T> T unwrapEdge(Class<T> edgeClass)
- Specified by:
unwrapEdge
in interfaceEdgeContext
-
bottomEdge
public <T> T bottomEdge(Class<T> edgeClass)
- Specified by:
bottomEdge
in interfaceEdgeContext
-
cellAddress
public final EdgeAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceEdgeContext
-
edgeName
public final String edgeName()
- Specified by:
edgeName
in interfaceCellContext
- Specified by:
edgeName
in interfaceEdgeContext
-
meshUri
public final Uri meshUri()
- Specified by:
meshUri
in interfaceCellContext
-
policy
public final PlanePolicy policy()
- Specified by:
policy
in interfaceCellContext
- Specified by:
policy
in interfacePlaneContext
- Specified by:
policy
in interfaceSpace
-
setPolicy
public void setPolicy(PlanePolicy policy)
- Specified by:
setPolicy
in interfacePlaneContext
-
schedule
public Schedule schedule()
- Specified by:
schedule
in interfaceCellContext
- Specified by:
schedule
in interfacePlaneContext
- Specified by:
schedule
in interfaceSpace
-
stage
public final Stage stage()
- Specified by:
stage
in interfaceCellContext
- Specified by:
stage
in interfacePlaneContext
- Specified by:
stage
in interfaceSpace
-
store
public final StoreBinding store()
- Specified by:
store
in interfaceCellContext
-
kernel
public final KernelContext kernel()
-
edge
public final EdgeBinding edge()
-
getAuthenticator
public Authenticator getAuthenticator(String authenticatorName)
- Specified by:
getAuthenticator
in interfacePlaneContext
-
addAuthenticator
public void addAuthenticator(String authenticatorName, Authenticator authenticator)
- Specified by:
addAuthenticator
in interfacePlaneContext
-
planes
public Collection<? extends Plane> planes()
-
openPlane
public <P extends Plane> P openPlane(String planeName, PlaneFactory<P> planeFactory)
-
createPlane
protected <P extends Plane> P createPlane(PlaneFactory<P> planeFactory)
-
getAgentRoute
public <A extends Agent> AgentRoute<A> getAgentRoute(String routeName)
- Specified by:
getAgentRoute
in interfacePlaneContext
-
createAgentRoute
public <A extends Agent> AgentRoute<A> createAgentRoute(Class<? extends A> agentClass)
- Specified by:
createAgentRoute
in interfacePlaneContext
-
addAgentRoute
public void addAgentRoute(String routeName, UriPattern pattern, AgentRoute<?> agentRoute)
- Specified by:
addAgentRoute
in interfacePlaneContext
-
addAgentRoute
public void addAgentRoute(String routeName, String pattern, AgentRoute<?> agentRoute)
- Specified by:
addAgentRoute
in interfacePlaneContext
-
removeAgentRoute
public void removeAgentRoute(String routeName)
- Specified by:
removeAgentRoute
in interfacePlaneContext
-
getAgentFactory
public AgentFactory<?> getAgentFactory(Uri nodeUri)
- Specified by:
getAgentFactory
in interfacePlaneContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- 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
public void openAgents(NodeBinding node)
- Specified by:
openAgents
in interfaceEdgeContext
-
createLog
public Log createLog(CellAddress cellAddress)
-
openLog
protected Log openLog()
-
closeLog
protected void closeLog()
-
createPolicy
public Policy createPolicy(CellAddress cellAddress)
-
openPolicy
protected PlanePolicy openPolicy()
-
closePolicy
protected void closePolicy()
-
createStage
public Stage createStage(CellAddress cellAddress)
-
openStage
protected Stage openStage()
-
closeStage
protected void closeStage()
-
createStore
public StoreBinding createStore(StoreDef storeDef)
-
createStore
public StoreBinding createStore(CellAddress cellAddress)
-
injectStore
public StoreBinding injectStore(StoreBinding store)
-
openStore
protected StoreBinding openStore()
-
closeStore
protected void closeStore()
-
createEdge
protected EdgeBinding createEdge()
-
seedEdge
protected void seedEdge(EdgeBinding edge)
-
seedMesh
protected MeshBinding seedMesh(EdgeBinding edge, MeshDef meshDef)
-
seedPart
protected PartBinding seedPart(MeshBinding mesh, PartDef partDef)
-
seedHost
protected HostBinding seedHost(PartBinding part, HostDef hostDef)
-
seedNode
protected NodeBinding seedNode(HostBinding host, NodeDef nodeDef)
-
seedLane
protected LaneBinding seedLane(NodeBinding node, LaneDef laneDef)
-
injectEdge
protected EdgeBinding injectEdge(EdgeAddress edgeAddress, EdgeBinding edge)
-
openMetaEdge
public void openMetaEdge(EdgeBinding edge, NodeBinding metaEdge)
- Specified by:
openMetaEdge
in interfaceEdgeContext
-
getMeshDef
public MeshDef getMeshDef(MeshAddress meshAddress)
-
createMesh
public MeshBinding createMesh(MeshAddress meshAddress)
- Specified by:
createMesh
in interfaceEdgeContext
-
injectMesh
public MeshBinding injectMesh(MeshAddress meshAddress, MeshBinding mesh)
- Specified by:
injectMesh
in interfaceEdgeContext
-
openMetaMesh
public void openMetaMesh(MeshBinding mesh, NodeBinding metaMesh)
- Specified by:
openMetaMesh
in interfaceEdgeContext
-
getPartDef
public PartDef getPartDef(PartAddress partAddress)
-
createPart
public PartBinding createPart(PartAddress partAddress)
- Specified by:
createPart
in interfaceEdgeContext
-
injectPart
public PartBinding injectPart(PartAddress partAddress, PartBinding part)
- Specified by:
injectPart
in interfaceEdgeContext
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPart
in interfaceEdgeContext
-
getHostDef
public HostDef getHostDef(HostAddress hostAddress)
-
createHost
public HostBinding createHost(HostAddress hostAddress)
- Specified by:
createHost
in interfaceEdgeContext
-
injectHost
public HostBinding injectHost(HostAddress hostAddress, HostBinding host)
- Specified by:
injectHost
in interfaceEdgeContext
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHost
in interfaceEdgeContext
-
getNodeDef
public NodeDef getNodeDef(NodeAddress nodeAddress)
-
createNode
public NodeBinding createNode(NodeAddress nodeAddress)
- Specified by:
createNode
in interfaceEdgeContext
-
injectNode
public NodeBinding injectNode(NodeAddress nodeAddress, NodeBinding node)
- Specified by:
injectNode
in interfaceEdgeContext
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfaceEdgeContext
-
getLaneDef
public LaneDef getLaneDef(LaneAddress laneAddress)
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLane
in interfaceEdgeContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLane
in interfaceEdgeContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceEdgeContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceEdgeContext
-
openMetaDownlink
public void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
- Specified by:
openMetaDownlink
in interfaceCellContext
-
createLane
public LaneBinding createLane(NodeBinding node, LaneDef laneDef)
- Specified by:
createLane
in interfaceEdgeContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanes
in interfaceEdgeContext
-
authenticate
public PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticate
in interfaceEdgeContext
-
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
-
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.
-
fail
public void fail(Object message)
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
public void didFail(Throwable error)
- Specified by:
didFail
in interfaceTierBinding
- Overrides:
didFail
in classAbstractTierBinding
-
-