- java.lang.Object
-
- swim.actor.ActorCell
-
- swim.actor.ActorTier
-
- swim.actor.ActorMesh
-
- All Implemented Interfaces:
CellBinding
,CellContext
,MeshBinding
,MeshContext
,TierBinding
,TierContext
,Log
public class ActorMesh extends ActorTier implements MeshBinding, MeshContext
-
-
Constructor Summary
Constructors Constructor Description ActorMesh(MeshBinding meshBinding, MeshDef meshDef)
-
Method Summary
-
Methods inherited from class swim.actor.ActorTier
close, closeStage, closeStore, didLoad, didOpen, didStart, didStop, didUnload, isClosed, isLoaded, isOpened, isStarted, load, open, schedule, stage, start, stop, store, tierContext, unload, willClose, willLoad, willOpen, willStart, willStop, willUnload
-
Methods inherited from class swim.actor.ActorCell
bindDownlink, closeDownlink, closeLog, closePolicy, debug, edgeName, error, fail, info, meshUri, openDownlink, openUplink, policy, pushDown, pushUp, reportDown, trace, warn
-
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.system.MeshBinding
meshUri
-
Methods inherited from interface swim.system.MeshContext
edgeName, meshUri
-
-
-
-
Constructor Detail
-
ActorMesh
public ActorMesh(MeshBinding meshBinding, MeshDef meshDef)
-
-
Method Detail
-
meshDef
public final MeshDef meshDef()
-
actorEdge
public final ActorSpace actorEdge()
-
edge
public final EdgeBinding edge()
- Specified by:
edge
in interfaceMeshBinding
- Specified by:
edge
in interfaceMeshContext
-
meshWrapper
public final MeshBinding meshWrapper()
- Specified by:
meshWrapper
in interfaceMeshBinding
- Specified by:
meshWrapper
in interfaceMeshContext
-
meshBinding
public final MeshBinding meshBinding()
-
meshContext
public final MeshContext meshContext()
- Specified by:
meshContext
in interfaceMeshBinding
-
setMeshContext
public void setMeshContext(MeshContext meshContext)
- Specified by:
setMeshContext
in interfaceMeshBinding
-
unwrapMesh
public <T> T unwrapMesh(Class<T> meshClass)
- Specified by:
unwrapMesh
in interfaceMeshBinding
- Specified by:
unwrapMesh
in interfaceMeshContext
-
bottomMesh
public <T> T bottomMesh(Class<T> meshClass)
- Specified by:
bottomMesh
in interfaceMeshBinding
- Specified by:
bottomMesh
in interfaceMeshContext
-
cellBinding
public final CellBinding cellBinding()
- Specified by:
cellBinding
in classActorCell
-
cellContext
public final CellContext cellContext()
- Specified by:
cellContext
in classActorCell
-
cellAddress
public final MeshAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceMeshBinding
- Specified by:
cellAddress
in interfaceMeshContext
- Specified by:
cellAddress
in classActorCell
-
gateway
public PartBinding gateway()
- Specified by:
gateway
in interfaceMeshBinding
-
setGateway
public void setGateway(PartBinding gateway)
- Specified by:
setGateway
in interfaceMeshBinding
-
ourself
public PartBinding ourself()
- Specified by:
ourself
in interfaceMeshBinding
-
setOurself
public void setOurself(PartBinding ourself)
- Specified by:
setOurself
in interfaceMeshBinding
-
parts
public FingerTrieSeq<PartBinding> parts()
- Specified by:
parts
in interfaceMeshBinding
-
getPart
public PartBinding getPart(Uri nodeUri)
- Specified by:
getPart
in interfaceMeshBinding
-
getPart
public PartBinding getPart(Value partKey)
- Specified by:
getPart
in interfaceMeshBinding
-
openPart
public PartBinding openPart(Uri nodeUri)
- Specified by:
openPart
in interfaceMeshBinding
-
openGateway
public PartBinding openGateway()
- Specified by:
openGateway
in interfaceMeshBinding
-
addPart
public PartBinding addPart(Value partKey, PartBinding part)
- Specified by:
addPart
in interfaceMeshBinding
-
createLog
public Log createLog(CellAddress cellAddress)
-
createPolicy
public Policy createPolicy(CellAddress cellAddress)
-
openPolicy
protected Policy openPolicy()
- Overrides:
openPolicy
in classActorCell
-
createStage
public Stage createStage(CellAddress cellAddress)
-
createStore
public StoreBinding createStore(StoreDef storeDef)
-
createStore
public StoreBinding createStore(CellAddress cellAddress)
-
injectStore
public StoreBinding injectStore(StoreBinding store)
-
openStore
protected StoreBinding openStore()
-
openMetaMesh
public void openMetaMesh(MeshBinding mesh, NodeBinding metaMesh)
- Specified by:
openMetaMesh
in interfaceMeshBinding
- Specified by:
openMetaMesh
in interfaceMeshContext
-
getPartDef
public PartDef getPartDef(PartAddress partAddress)
-
createPart
public PartBinding createPart(PartAddress partAddress)
- Specified by:
createPart
in interfaceMeshContext
-
injectPart
public PartBinding injectPart(PartAddress partAddress, PartBinding part)
- Specified by:
injectPart
in interfaceMeshContext
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPart
in interfaceMeshBinding
- Specified by:
openMetaPart
in interfaceMeshContext
-
getHostDef
public HostDef getHostDef(HostAddress hostAddress)
-
createHost
public HostBinding createHost(HostAddress hostAddress)
- Specified by:
createHost
in interfaceMeshContext
-
injectHost
public HostBinding injectHost(HostAddress hostAddress, HostBinding host)
- Specified by:
injectHost
in interfaceMeshContext
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHost
in interfaceMeshBinding
- Specified by:
openMetaHost
in interfaceMeshContext
-
getNodeDef
public NodeDef getNodeDef(NodeAddress nodeAddress)
-
createNode
public NodeBinding createNode(NodeAddress nodeAddress)
- Specified by:
createNode
in interfaceMeshContext
-
injectNode
public NodeBinding injectNode(NodeAddress nodeAddress, NodeBinding node)
- Specified by:
injectNode
in interfaceMeshContext
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfaceMeshBinding
- Specified by:
openMetaNode
in interfaceMeshContext
-
getLaneDef
public LaneDef getLaneDef(LaneAddress laneAddress)
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLane
in interfaceMeshContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLane
in interfaceMeshContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceMeshBinding
- Specified by:
openMetaLane
in interfaceMeshContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceMeshBinding
- Specified by:
openMetaUplink
in interfaceMeshContext
-
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 interfaceMeshContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanes
in interfaceMeshContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactory
in interfaceMeshContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfaceMeshContext
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgents
in interfaceMeshContext
-
authenticate
public PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticate
in interfaceMeshContext
-
didClose
public void didClose()
- Specified by:
didClose
in interfaceTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFail
in interfaceTierBinding
-
-