- java.lang.Object
-
- swim.runtime.AbstractSwimRef
-
- swim.runtime.AbstractTierBinding
-
- swim.actor.ActorSpace
-
- All Implemented Interfaces:
DownlinkFactory,PlaneContext,SwimRef,Space,CellContext,EdgeContext,TierBinding,TierContext,Log
public class ActorSpace extends AbstractTierBinding implements EdgeContext, PlaneContext, Space
-
-
Field Summary
-
Fields inherited from class swim.runtime.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.runtime.AbstractTierBinding
activate, isClosed, isLoaded, isOpened, isStarted
-
Methods inherited from class swim.runtime.AbstractSwimRef
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:
tierContextin interfaceTierBinding- Specified by:
tierContextin classAbstractTierBinding
-
edgeWrapper
public final EdgeBinding edgeWrapper()
- Specified by:
edgeWrapperin interfaceEdgeContext
-
unwrapEdge
public <T> T unwrapEdge(Class<T> edgeClass)
- Specified by:
unwrapEdgein interfaceEdgeContext
-
bottomEdge
public <T> T bottomEdge(Class<T> edgeClass)
- Specified by:
bottomEdgein interfaceEdgeContext
-
cellAddress
public final EdgeAddress cellAddress()
- Specified by:
cellAddressin interfaceCellContext- Specified by:
cellAddressin interfaceEdgeContext
-
edgeName
public final String edgeName()
- Specified by:
edgeNamein interfaceCellContext- Specified by:
edgeNamein interfaceEdgeContext
-
meshUri
public final Uri meshUri()
- Specified by:
meshUriin interfaceCellContext
-
policy
public final PlanePolicy policy()
- Specified by:
policyin interfaceCellContext- Specified by:
policyin interfacePlaneContext- Specified by:
policyin interfaceSpace
-
setPolicy
public void setPolicy(PlanePolicy policy)
- Specified by:
setPolicyin interfacePlaneContext
-
schedule
public Schedule schedule()
- Specified by:
schedulein interfaceCellContext- Specified by:
schedulein interfacePlaneContext- Specified by:
schedulein interfaceSpace
-
stage
public final Stage stage()
- Specified by:
stagein interfaceCellContext- Specified by:
stagein interfacePlaneContext- Specified by:
stagein interfaceSpace
-
store
public final StoreBinding store()
- Specified by:
storein interfaceCellContext
-
kernel
public final KernelContext kernel()
-
edge
public final EdgeBinding edge()
-
getAuthenticator
public Authenticator getAuthenticator(String authenticatorName)
- Specified by:
getAuthenticatorin interfacePlaneContext
-
addAuthenticator
public void addAuthenticator(String authenticatorName, Authenticator authenticator)
- Specified by:
addAuthenticatorin 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:
getAgentRoutein interfacePlaneContext
-
createAgentRoute
public <A extends Agent> AgentRoute<A> createAgentRoute(Class<? extends A> agentClass)
- Specified by:
createAgentRoutein interfacePlaneContext
-
addAgentRoute
public void addAgentRoute(String routeName, UriPattern pattern, AgentRoute<?> agentRoute)
- Specified by:
addAgentRoutein interfacePlaneContext
-
addAgentRoute
public void addAgentRoute(String routeName, String pattern, AgentRoute<?> agentRoute)
- Specified by:
addAgentRoutein interfacePlaneContext
-
removeAgentRoute
public void removeAgentRoute(String routeName)
- Specified by:
removeAgentRoutein interfacePlaneContext
-
getAgentFactory
public AgentFactory<?> getAgentFactory(Uri nodeUri)
- Specified by:
getAgentFactoryin interfacePlaneContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactoryin interfaceEdgeContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactoryin interfaceEdgeContext
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgentsin 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:
openMetaEdgein interfaceEdgeContext
-
getMeshDef
public MeshDef getMeshDef(MeshAddress meshAddress)
-
createMesh
public MeshBinding createMesh(MeshAddress meshAddress)
- Specified by:
createMeshin interfaceEdgeContext
-
injectMesh
public MeshBinding injectMesh(MeshAddress meshAddress, MeshBinding mesh)
- Specified by:
injectMeshin interfaceEdgeContext
-
openMetaMesh
public void openMetaMesh(MeshBinding mesh, NodeBinding metaMesh)
- Specified by:
openMetaMeshin interfaceEdgeContext
-
getPartDef
public PartDef getPartDef(PartAddress partAddress)
-
createPart
public PartBinding createPart(PartAddress partAddress)
- Specified by:
createPartin interfaceEdgeContext
-
injectPart
public PartBinding injectPart(PartAddress partAddress, PartBinding part)
- Specified by:
injectPartin interfaceEdgeContext
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPartin interfaceEdgeContext
-
getHostDef
public HostDef getHostDef(HostAddress hostAddress)
-
createHost
public HostBinding createHost(HostAddress hostAddress)
- Specified by:
createHostin interfaceEdgeContext
-
injectHost
public HostBinding injectHost(HostAddress hostAddress, HostBinding host)
- Specified by:
injectHostin interfaceEdgeContext
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHostin interfaceEdgeContext
-
getNodeDef
public NodeDef getNodeDef(NodeAddress nodeAddress)
-
createNode
public NodeBinding createNode(NodeAddress nodeAddress)
- Specified by:
createNodein interfaceEdgeContext
-
injectNode
public NodeBinding injectNode(NodeAddress nodeAddress, NodeBinding node)
- Specified by:
injectNodein interfaceEdgeContext
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNodein interfaceEdgeContext
-
getLaneDef
public LaneDef getLaneDef(LaneAddress laneAddress)
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLanein interfaceEdgeContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLanein interfaceEdgeContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLanein interfaceEdgeContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplinkin interfaceEdgeContext
-
openMetaDownlink
public void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
- Specified by:
openMetaDownlinkin interfaceCellContext
-
createLane
public LaneBinding createLane(NodeBinding node, LaneDef laneDef)
- Specified by:
createLanein interfaceEdgeContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanesin interfaceEdgeContext
-
authenticate
public PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticatein interfaceEdgeContext
-
bindDownlink
public LinkBinding bindDownlink(Downlink downlink)
- Specified by:
bindDownlinkin interfaceCellContext
-
openDownlink
public void openDownlink(LinkBinding link)
- Specified by:
openDownlinkin interfaceCellContext
-
closeDownlink
public void closeDownlink(LinkBinding link)
- Specified by:
closeDownlinkin interfaceCellContext
-
pushDown
public void pushDown(Push<?> push)
- Specified by:
pushDownin interfaceCellContext
-
reportDown
public void reportDown(Metric metric)
- Specified by:
reportDownin interfaceCellContext
-
trace
public void trace(Object message)
Description copied from interface:LogLogs a trace-level message.
-
debug
public void debug(Object message)
Description copied from interface:LogLogs a debug-level message.
-
info
public void info(Object message)
Description copied from interface:LogLogs an info-level message.
-
warn
public void warn(Object message)
Description copied from interface:LogLogs a warn-level message.
-
error
public void error(Object message)
Description copied from interface:LogLogs an error-level message.
-
fail
public void fail(Object message)
Description copied from interface:LogLogs an fail-level message.
-
open
public void open()
- Specified by:
openin interfaceTierBinding- Overrides:
openin classAbstractTierBinding
-
load
public void load()
- Specified by:
loadin interfaceTierBinding- Overrides:
loadin classAbstractTierBinding
-
start
public void start()
- Specified by:
startin interfaceTierBinding- Overrides:
startin classAbstractTierBinding
-
stop
public void stop()
- Specified by:
stopin interfaceTierBinding- Overrides:
stopin classAbstractTierBinding
-
unload
public void unload()
- Specified by:
unloadin interfaceTierBinding- Overrides:
unloadin classAbstractTierBinding
-
close
public void close()
- Specified by:
closein interfaceSwimRef- Specified by:
closein interfaceTierBinding- Specified by:
closein interfaceTierContext- Overrides:
closein classAbstractTierBinding
-
willOpen
public void willOpen()
- Specified by:
willOpenin interfaceTierContext- Overrides:
willOpenin classAbstractTierBinding
-
didOpen
public void didOpen()
- Specified by:
didOpenin interfaceTierContext- Overrides:
didOpenin classAbstractTierBinding
-
willLoad
public void willLoad()
- Specified by:
willLoadin interfaceTierContext- Overrides:
willLoadin classAbstractTierBinding
-
didLoad
public void didLoad()
- Specified by:
didLoadin interfaceTierContext- Overrides:
didLoadin classAbstractTierBinding
-
willStart
public void willStart()
- Specified by:
willStartin interfaceTierContext- Overrides:
willStartin classAbstractTierBinding
-
didStart
public void didStart()
- Specified by:
didStartin interfaceTierContext- Overrides:
didStartin classAbstractTierBinding
-
willStop
public void willStop()
- Specified by:
willStopin interfaceTierContext- Overrides:
willStopin classAbstractTierBinding
-
didStop
public void didStop()
- Specified by:
didStopin interfaceTierContext- Overrides:
didStopin classAbstractTierBinding
-
willUnload
public void willUnload()
- Specified by:
willUnloadin interfaceTierContext- Overrides:
willUnloadin classAbstractTierBinding
-
didUnload
public void didUnload()
- Specified by:
didUnloadin interfaceTierContext- Overrides:
didUnloadin classAbstractTierBinding
-
willClose
public void willClose()
- Specified by:
willClosein interfaceTierContext- Overrides:
willClosein classAbstractTierBinding
-
didClose
public void didClose()
- Specified by:
didClosein interfaceTierBinding- Overrides:
didClosein classAbstractTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFailin interfaceTierBinding- Overrides:
didFailin classAbstractTierBinding
-
-