Module swim.actor
Package swim.actor

Class ActorNode

  • All Implemented Interfaces:
    swim.system.CellBinding, swim.system.CellContext, swim.system.NodeBinding, swim.system.NodeContext, swim.system.TierBinding, swim.system.TierContext, swim.util.Log

    public class ActorNode
    extends ActorTier
    implements swim.system.NodeBinding, swim.system.NodeContext
    • Constructor Detail

      • ActorNode

        public ActorNode​(swim.system.NodeBinding nodeBinding,
                         swim.system.NodeDef nodeDef)
    • Method Detail

      • nodeDef

        public final swim.system.NodeDef nodeDef()
      • actorHost

        public final ActorHost actorHost()
      • host

        public final swim.system.HostBinding host()
        Specified by:
        host in interface swim.system.NodeBinding
        Specified by:
        host in interface swim.system.NodeContext
      • nodeWrapper

        public final swim.system.NodeBinding nodeWrapper()
        Specified by:
        nodeWrapper in interface swim.system.NodeBinding
        Specified by:
        nodeWrapper in interface swim.system.NodeContext
      • nodeBinding

        public final swim.system.NodeBinding nodeBinding()
      • nodeContext

        public final swim.system.NodeContext nodeContext()
        Specified by:
        nodeContext in interface swim.system.NodeBinding
      • setNodeContext

        public void setNodeContext​(swim.system.NodeContext nodeContext)
        Specified by:
        setNodeContext in interface swim.system.NodeBinding
      • unwrapNode

        public <T> T unwrapNode​(Class<T> nodeClass)
        Specified by:
        unwrapNode in interface swim.system.NodeBinding
        Specified by:
        unwrapNode in interface swim.system.NodeContext
      • bottomNode

        public <T> T bottomNode​(Class<T> nodeClass)
        Specified by:
        bottomNode in interface swim.system.NodeBinding
        Specified by:
        bottomNode in interface swim.system.NodeContext
      • cellBinding

        public final swim.system.CellBinding cellBinding()
        Specified by:
        cellBinding in class ActorCell
      • cellContext

        public final swim.system.CellContext cellContext()
        Specified by:
        cellContext in class ActorCell
      • cellAddress

        public final swim.system.NodeAddress cellAddress()
        Specified by:
        cellAddress in interface swim.system.CellContext
        Specified by:
        cellAddress in interface swim.system.NodeBinding
        Specified by:
        cellAddress in interface swim.system.NodeContext
        Specified by:
        cellAddress in class ActorCell
      • partKey

        public swim.structure.Value partKey()
        Specified by:
        partKey in interface swim.system.NodeBinding
        Specified by:
        partKey in interface swim.system.NodeContext
      • hostUri

        public swim.uri.Uri hostUri()
        Specified by:
        hostUri in interface swim.system.NodeBinding
        Specified by:
        hostUri in interface swim.system.NodeContext
      • nodeUri

        public swim.uri.Uri nodeUri()
        Specified by:
        nodeUri in interface swim.system.NodeBinding
        Specified by:
        nodeUri in interface swim.system.NodeContext
      • createdTime

        public long createdTime()
        Specified by:
        createdTime in interface swim.system.NodeBinding
        Specified by:
        createdTime in interface swim.system.NodeContext
      • identity

        public swim.api.auth.Identity identity()
        Specified by:
        identity in interface swim.system.NodeContext
      • lanes

        public swim.collections.HashTrieMap<swim.uri.Uri,​swim.system.LaneBinding> lanes()
        Specified by:
        lanes in interface swim.system.NodeBinding
      • getLane

        public swim.system.LaneBinding getLane​(swim.uri.Uri laneUri)
        Specified by:
        getLane in interface swim.system.NodeBinding
      • createLog

        public swim.util.Log createLog​(swim.system.LogDef logDef)
      • createLog

        public swim.util.Log createLog​(swim.system.CellAddress cellAddress)
      • injectLog

        public swim.util.Log injectLog​(swim.util.Log log)
      • openLog

        protected swim.util.Log openLog()
        Overrides:
        openLog in class ActorCell
      • createPolicy

        public swim.api.policy.Policy createPolicy​(swim.system.PolicyDef policyDef)
      • createPolicy

        public swim.api.policy.Policy createPolicy​(swim.system.CellAddress cellAddress)
      • injectPolicy

        public swim.api.policy.Policy injectPolicy​(swim.api.policy.Policy policy)
      • openPolicy

        protected swim.api.policy.Policy openPolicy()
        Overrides:
        openPolicy in class ActorCell
      • createStage

        public swim.concurrent.Stage createStage​(swim.concurrent.StageDef stageDef)
      • createStage

        public swim.concurrent.Stage createStage​(swim.system.CellAddress cellAddress)
      • injectStage

        public swim.concurrent.Stage injectStage​(swim.concurrent.Stage stage)
      • openStage

        protected swim.concurrent.Stage openStage()
        Overrides:
        openStage in class ActorTier
      • createStore

        public swim.store.StoreBinding createStore​(swim.store.StoreDef storeDef)
      • createStore

        public swim.store.StoreBinding createStore​(swim.system.CellAddress cellAddress)
      • injectStore

        public swim.store.StoreBinding injectStore​(swim.store.StoreBinding store)
      • openStore

        protected swim.store.StoreBinding openStore()
        Overrides:
        openStore in class ActorTier
      • openMetaNode

        public void openMetaNode​(swim.system.NodeBinding node,
                                 swim.system.NodeBinding metaNode)
        Specified by:
        openMetaNode in interface swim.system.NodeBinding
        Specified by:
        openMetaNode in interface swim.system.NodeContext
      • getLaneDef

        public swim.system.LaneDef getLaneDef​(swim.system.LaneAddress laneAddress)
      • openLane

        public swim.system.LaneBinding openLane​(swim.uri.Uri laneUri)
        Specified by:
        openLane in interface swim.system.NodeBinding
      • openLane

        public swim.system.LaneBinding openLane​(swim.uri.Uri laneUri,
                                                swim.system.LaneBinding lane)
        Specified by:
        openLane in interface swim.system.NodeBinding
      • createLane

        public swim.system.LaneBinding createLane​(swim.system.LaneAddress laneAddress)
        Specified by:
        createLane in interface swim.system.NodeContext
      • injectLane

        public swim.system.LaneBinding injectLane​(swim.system.LaneAddress laneAddress,
                                                  swim.system.LaneBinding lane)
        Specified by:
        injectLane in interface swim.system.NodeContext
      • openMetaLane

        public void openMetaLane​(swim.system.LaneBinding lane,
                                 swim.system.NodeBinding metaLane)
        Specified by:
        openMetaLane in interface swim.system.NodeBinding
        Specified by:
        openMetaLane in interface swim.system.NodeContext
      • openMetaUplink

        public void openMetaUplink​(swim.system.LinkBinding uplink,
                                   swim.system.NodeBinding metaUplink)
        Specified by:
        openMetaUplink in interface swim.system.NodeBinding
        Specified by:
        openMetaUplink in interface swim.system.NodeContext
      • openMetaDownlink

        public void openMetaDownlink​(swim.system.LinkBinding downlink,
                                     swim.system.NodeBinding metaDownlink)
        Specified by:
        openMetaDownlink in interface swim.system.CellContext
      • createLane

        public swim.system.LaneBinding createLane​(swim.system.NodeBinding node,
                                                  swim.system.LaneDef laneDef)
        Specified by:
        createLane in interface swim.system.NodeContext
      • openLanes

        public void openLanes​(swim.system.NodeBinding node)
        Specified by:
        openLanes in interface swim.system.NodeBinding
        Specified by:
        openLanes in interface swim.system.NodeContext
      • agentIds

        public swim.collections.FingerTrieSeq<swim.structure.Value> agentIds()
        Specified by:
        agentIds in interface swim.system.NodeBinding
      • agents

        public swim.collections.FingerTrieSeq<swim.api.agent.Agent> agents()
        Specified by:
        agents in interface swim.system.NodeBinding
      • openAgents

        public void openAgents​(swim.system.NodeBinding node)
        Specified by:
        openAgents in interface swim.system.NodeBinding
        Specified by:
        openAgents in interface swim.system.NodeContext
      • createAgentFactory

        public swim.api.agent.AgentFactory<?> createAgentFactory​(swim.system.NodeBinding node,
                                                                 swim.api.agent.AgentDef agentDef)
        Specified by:
        createAgentFactory in interface swim.system.NodeBinding
        Specified by:
        createAgentFactory in interface swim.system.NodeContext
      • createAgentFactory

        public <A extends swim.api.agent.Agent> swim.api.agent.AgentFactory<A> createAgentFactory​(swim.system.NodeBinding node,
                                                                                                  Class<? extends A> agentClass)
        Specified by:
        createAgentFactory in interface swim.system.NodeBinding
        Specified by:
        createAgentFactory in interface swim.system.NodeContext
      • didClose

        public void didClose()
        Specified by:
        didClose in interface swim.system.TierBinding
      • didFail

        public void didFail​(Throwable error)
        Specified by:
        didFail in interface swim.system.TierBinding