Module swim.actor
Package swim.actor

Class ActorMesh

All Implemented Interfaces:
swim.system.CellBinding, swim.system.CellContext, swim.system.MeshBinding, swim.system.MeshContext, swim.system.TierBinding, swim.system.TierContext, swim.util.Log

public class ActorMesh extends ActorTier implements swim.system.MeshBinding, swim.system.MeshContext
  • Constructor Summary

    Constructors
    Constructor
    Description
    ActorMesh(swim.system.MeshBinding meshBinding, swim.system.MeshDef meshDef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    swim.system.PartBinding
    addPart(swim.structure.Value partKey, swim.system.PartBinding part)
     
    swim.api.policy.PolicyDirective<swim.api.auth.Identity>
    authenticate(swim.api.auth.Credentials credentials)
     
    <T> T
    bottomMesh(Class<T> meshClass)
     
    final swim.system.MeshAddress
     
    final swim.system.CellBinding
     
    final swim.system.CellContext
     
    <A extends swim.api.agent.Agent>
    swim.api.agent.AgentFactory<A>
    createAgentFactory(swim.system.NodeBinding node, Class<? extends A> agentClass)
     
    swim.api.agent.AgentFactory<?>
    createAgentFactory(swim.system.NodeBinding node, swim.api.agent.AgentDef agentDef)
     
    swim.system.HostBinding
    createHost(swim.system.HostAddress hostAddress)
     
    swim.system.LaneBinding
    createLane(swim.system.LaneAddress laneAddress)
     
    swim.system.LaneBinding
    createLane(swim.system.NodeBinding node, swim.system.LaneDef laneDef)
     
    swim.util.Log
    createLog(swim.system.CellAddress cellAddress)
     
    swim.util.Log
    createLog(swim.system.LogDef logDef)
     
    swim.system.NodeBinding
    createNode(swim.system.NodeAddress nodeAddress)
     
    swim.system.PartBinding
    createPart(swim.system.PartAddress partAddress)
     
    swim.api.policy.Policy
    createPolicy(swim.system.CellAddress cellAddress)
     
    swim.api.policy.Policy
    createPolicy(swim.system.PolicyDef policyDef)
     
    swim.concurrent.Stage
    createStage(swim.concurrent.StageDef stageDef)
     
    swim.concurrent.Stage
    createStage(swim.system.CellAddress cellAddress)
     
    swim.store.StoreBinding
    createStore(swim.store.StoreDef storeDef)
     
    swim.store.StoreBinding
    createStore(swim.system.CellAddress cellAddress)
     
    void
     
    void
     
    final swim.system.EdgeBinding
     
    swim.system.PartBinding
     
    swim.system.HostDef
    getHostDef(swim.system.HostAddress hostAddress)
     
    swim.system.LaneDef
    getLaneDef(swim.system.LaneAddress laneAddress)
     
    swim.system.NodeDef
    getNodeDef(swim.system.NodeAddress nodeAddress)
     
    swim.system.PartBinding
    getPart(swim.structure.Value partKey)
     
    swim.system.PartBinding
    getPart(swim.uri.Uri nodeUri)
     
    swim.system.PartDef
    getPartDef(swim.system.PartAddress partAddress)
     
    swim.system.HostBinding
    injectHost(swim.system.HostAddress hostAddress, swim.system.HostBinding host)
     
    swim.system.LaneBinding
    injectLane(swim.system.LaneAddress laneAddress, swim.system.LaneBinding lane)
     
    swim.util.Log
    injectLog(swim.util.Log log)
     
    swim.system.NodeBinding
    injectNode(swim.system.NodeAddress nodeAddress, swim.system.NodeBinding node)
     
    swim.system.PartBinding
    injectPart(swim.system.PartAddress partAddress, swim.system.PartBinding part)
     
    swim.api.policy.Policy
    injectPolicy(swim.api.policy.Policy policy)
     
    swim.concurrent.Stage
    injectStage(swim.concurrent.Stage stage)
     
    swim.store.StoreBinding
    injectStore(swim.store.StoreBinding store)
     
    final swim.system.MeshBinding
     
    final swim.system.MeshContext
     
    final swim.system.MeshDef
     
    final swim.system.MeshBinding
     
    void
    openAgents(swim.system.NodeBinding node)
     
    swim.system.PartBinding
     
    void
    openLanes(swim.system.NodeBinding node)
     
    protected swim.util.Log
     
    void
    openMetaDownlink(swim.system.LinkBinding downlink, swim.system.NodeBinding metaDownlink)
     
    void
    openMetaHost(swim.system.HostBinding host, swim.system.NodeBinding metaHost)
     
    void
    openMetaLane(swim.system.LaneBinding lane, swim.system.NodeBinding metaLane)
     
    void
    openMetaMesh(swim.system.MeshBinding mesh, swim.system.NodeBinding metaMesh)
     
    void
    openMetaNode(swim.system.NodeBinding node, swim.system.NodeBinding metaNode)
     
    void
    openMetaPart(swim.system.PartBinding part, swim.system.NodeBinding metaPart)
     
    void
    openMetaUplink(swim.system.LinkBinding uplink, swim.system.NodeBinding metaUplink)
     
    swim.system.PartBinding
    openPart(swim.uri.Uri nodeUri)
     
    protected swim.api.policy.Policy
     
    protected swim.concurrent.Stage
     
    protected swim.store.StoreBinding
     
    swim.system.PartBinding
     
    swim.collections.FingerTrieSeq<swim.system.PartBinding>
     
    void
    setGateway(swim.system.PartBinding gateway)
     
    void
    setMeshContext(swim.system.MeshContext meshContext)
     
    void
    setOurself(swim.system.PartBinding ourself)
     
    <T> T
    unwrapMesh(Class<T> meshClass)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface swim.system.CellBinding

    openUplink, pushUp

    Methods inherited from interface swim.system.CellContext

    bindDownlink, closeDownlink, openDownlink, policy, pushDown, reportDown, schedule, stage, store

    Methods inherited from interface swim.util.Log

    debug, error, fail, info, trace, warn

    Methods inherited from interface swim.system.MeshBinding

    meshUri

    Methods inherited from interface swim.system.MeshContext

    edgeName, meshUri

    Methods inherited from interface swim.system.TierBinding

    close, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, tierContext, unload

    Methods inherited from interface swim.system.TierContext

    close, didLoad, didOpen, didStart, didStop, didUnload, willClose, willLoad, willOpen, willStart, willStop, willUnload
  • Constructor Details

    • ActorMesh

      public ActorMesh(swim.system.MeshBinding meshBinding, swim.system.MeshDef meshDef)
  • Method Details

    • meshDef

      public final swim.system.MeshDef meshDef()
    • actorEdge

      public final ActorSpace actorEdge()
    • edge

      public final swim.system.EdgeBinding edge()
      Specified by:
      edge in interface swim.system.MeshBinding
      Specified by:
      edge in interface swim.system.MeshContext
    • meshWrapper

      public final swim.system.MeshBinding meshWrapper()
      Specified by:
      meshWrapper in interface swim.system.MeshBinding
      Specified by:
      meshWrapper in interface swim.system.MeshContext
    • meshBinding

      public final swim.system.MeshBinding meshBinding()
    • meshContext

      public final swim.system.MeshContext meshContext()
      Specified by:
      meshContext in interface swim.system.MeshBinding
    • setMeshContext

      public void setMeshContext(swim.system.MeshContext meshContext)
      Specified by:
      setMeshContext in interface swim.system.MeshBinding
    • unwrapMesh

      public <T> T unwrapMesh(Class<T> meshClass)
      Specified by:
      unwrapMesh in interface swim.system.MeshBinding
      Specified by:
      unwrapMesh in interface swim.system.MeshContext
    • bottomMesh

      public <T> T bottomMesh(Class<T> meshClass)
      Specified by:
      bottomMesh in interface swim.system.MeshBinding
      Specified by:
      bottomMesh in interface swim.system.MeshContext
    • 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.MeshAddress cellAddress()
      Specified by:
      cellAddress in interface swim.system.CellContext
      Specified by:
      cellAddress in interface swim.system.MeshBinding
      Specified by:
      cellAddress in interface swim.system.MeshContext
      Specified by:
      cellAddress in class ActorCell
    • gateway

      public swim.system.PartBinding gateway()
      Specified by:
      gateway in interface swim.system.MeshBinding
    • setGateway

      public void setGateway(swim.system.PartBinding gateway)
      Specified by:
      setGateway in interface swim.system.MeshBinding
    • ourself

      public swim.system.PartBinding ourself()
      Specified by:
      ourself in interface swim.system.MeshBinding
    • setOurself

      public void setOurself(swim.system.PartBinding ourself)
      Specified by:
      setOurself in interface swim.system.MeshBinding
    • parts

      public swim.collections.FingerTrieSeq<swim.system.PartBinding> parts()
      Specified by:
      parts in interface swim.system.MeshBinding
    • getPart

      public swim.system.PartBinding getPart(swim.uri.Uri nodeUri)
      Specified by:
      getPart in interface swim.system.MeshBinding
    • getPart

      public swim.system.PartBinding getPart(swim.structure.Value partKey)
      Specified by:
      getPart in interface swim.system.MeshBinding
    • openPart

      public swim.system.PartBinding openPart(swim.uri.Uri nodeUri)
      Specified by:
      openPart in interface swim.system.MeshBinding
    • openGateway

      public swim.system.PartBinding openGateway()
      Specified by:
      openGateway in interface swim.system.MeshBinding
    • addPart

      public swim.system.PartBinding addPart(swim.structure.Value partKey, swim.system.PartBinding part)
      Specified by:
      addPart in interface swim.system.MeshBinding
    • 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
    • openMetaMesh

      public void openMetaMesh(swim.system.MeshBinding mesh, swim.system.NodeBinding metaMesh)
      Specified by:
      openMetaMesh in interface swim.system.MeshBinding
      Specified by:
      openMetaMesh in interface swim.system.MeshContext
    • getPartDef

      public swim.system.PartDef getPartDef(swim.system.PartAddress partAddress)
    • createPart

      public swim.system.PartBinding createPart(swim.system.PartAddress partAddress)
      Specified by:
      createPart in interface swim.system.MeshContext
    • injectPart

      public swim.system.PartBinding injectPart(swim.system.PartAddress partAddress, swim.system.PartBinding part)
      Specified by:
      injectPart in interface swim.system.MeshContext
    • openMetaPart

      public void openMetaPart(swim.system.PartBinding part, swim.system.NodeBinding metaPart)
      Specified by:
      openMetaPart in interface swim.system.MeshBinding
      Specified by:
      openMetaPart in interface swim.system.MeshContext
    • getHostDef

      public swim.system.HostDef getHostDef(swim.system.HostAddress hostAddress)
    • createHost

      public swim.system.HostBinding createHost(swim.system.HostAddress hostAddress)
      Specified by:
      createHost in interface swim.system.MeshContext
    • injectHost

      public swim.system.HostBinding injectHost(swim.system.HostAddress hostAddress, swim.system.HostBinding host)
      Specified by:
      injectHost in interface swim.system.MeshContext
    • openMetaHost

      public void openMetaHost(swim.system.HostBinding host, swim.system.NodeBinding metaHost)
      Specified by:
      openMetaHost in interface swim.system.MeshBinding
      Specified by:
      openMetaHost in interface swim.system.MeshContext
    • getNodeDef

      public swim.system.NodeDef getNodeDef(swim.system.NodeAddress nodeAddress)
    • createNode

      public swim.system.NodeBinding createNode(swim.system.NodeAddress nodeAddress)
      Specified by:
      createNode in interface swim.system.MeshContext
    • injectNode

      public swim.system.NodeBinding injectNode(swim.system.NodeAddress nodeAddress, swim.system.NodeBinding node)
      Specified by:
      injectNode in interface swim.system.MeshContext
    • openMetaNode

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

      public swim.system.LaneDef getLaneDef(swim.system.LaneAddress laneAddress)
    • createLane

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

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

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

      public void openMetaUplink(swim.system.LinkBinding uplink, swim.system.NodeBinding metaUplink)
      Specified by:
      openMetaUplink in interface swim.system.MeshBinding
      Specified by:
      openMetaUplink in interface swim.system.MeshContext
    • 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.MeshContext
    • openLanes

      public void openLanes(swim.system.NodeBinding node)
      Specified by:
      openLanes in interface swim.system.MeshContext
    • createAgentFactory

      public swim.api.agent.AgentFactory<?> createAgentFactory(swim.system.NodeBinding node, swim.api.agent.AgentDef agentDef)
      Specified by:
      createAgentFactory in interface swim.system.MeshContext
    • 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.MeshContext
    • openAgents

      public void openAgents(swim.system.NodeBinding node)
      Specified by:
      openAgents in interface swim.system.MeshContext
    • authenticate

      public swim.api.policy.PolicyDirective<swim.api.auth.Identity> authenticate(swim.api.auth.Credentials credentials)
      Specified by:
      authenticate in interface swim.system.MeshContext
    • 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