- java.lang.Object
-
- swim.actor.ActorCell
-
- swim.actor.ActorTier
-
- swim.actor.ActorNode
-
- All Implemented Interfaces:
CellBinding
,CellContext
,NodeBinding
,NodeContext
,TierBinding
,TierContext
,Log
public class ActorNode extends ActorTier implements NodeBinding, NodeContext
-
-
Constructor Summary
Constructors Constructor Description ActorNode(NodeBinding nodeBinding, NodeDef nodeDef)
-
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.NodeBinding
meshUri
-
Methods inherited from interface swim.system.NodeContext
edgeName, meshUri
-
-
-
-
Constructor Detail
-
ActorNode
public ActorNode(NodeBinding nodeBinding, NodeDef nodeDef)
-
-
Method Detail
-
nodeDef
public final NodeDef nodeDef()
-
actorHost
public final ActorHost actorHost()
-
host
public final HostBinding host()
- Specified by:
host
in interfaceNodeBinding
- Specified by:
host
in interfaceNodeContext
-
nodeWrapper
public final NodeBinding nodeWrapper()
- Specified by:
nodeWrapper
in interfaceNodeBinding
- Specified by:
nodeWrapper
in interfaceNodeContext
-
nodeBinding
public final NodeBinding nodeBinding()
-
nodeContext
public final NodeContext nodeContext()
- Specified by:
nodeContext
in interfaceNodeBinding
-
setNodeContext
public void setNodeContext(NodeContext nodeContext)
- Specified by:
setNodeContext
in interfaceNodeBinding
-
unwrapNode
public <T> T unwrapNode(Class<T> nodeClass)
- Specified by:
unwrapNode
in interfaceNodeBinding
- Specified by:
unwrapNode
in interfaceNodeContext
-
bottomNode
public <T> T bottomNode(Class<T> nodeClass)
- Specified by:
bottomNode
in interfaceNodeBinding
- Specified by:
bottomNode
in interfaceNodeContext
-
cellBinding
public final CellBinding cellBinding()
- Specified by:
cellBinding
in classActorCell
-
cellContext
public final CellContext cellContext()
- Specified by:
cellContext
in classActorCell
-
cellAddress
public final NodeAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfaceNodeBinding
- Specified by:
cellAddress
in interfaceNodeContext
- Specified by:
cellAddress
in classActorCell
-
partKey
public Value partKey()
- Specified by:
partKey
in interfaceNodeBinding
- Specified by:
partKey
in interfaceNodeContext
-
hostUri
public Uri hostUri()
- Specified by:
hostUri
in interfaceNodeBinding
- Specified by:
hostUri
in interfaceNodeContext
-
nodeUri
public Uri nodeUri()
- Specified by:
nodeUri
in interfaceNodeBinding
- Specified by:
nodeUri
in interfaceNodeContext
-
createdTime
public long createdTime()
- Specified by:
createdTime
in interfaceNodeBinding
- Specified by:
createdTime
in interfaceNodeContext
-
identity
public Identity identity()
- Specified by:
identity
in interfaceNodeContext
-
lanes
public HashTrieMap<Uri,LaneBinding> lanes()
- Specified by:
lanes
in interfaceNodeBinding
-
getLane
public LaneBinding getLane(Uri laneUri)
- Specified by:
getLane
in interfaceNodeBinding
-
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()
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfaceNodeBinding
- Specified by:
openMetaNode
in interfaceNodeContext
-
getLaneDef
public LaneDef getLaneDef(LaneAddress laneAddress)
-
openLane
public LaneBinding openLane(Uri laneUri)
- Specified by:
openLane
in interfaceNodeBinding
-
openLane
public LaneBinding openLane(Uri laneUri, LaneBinding lane)
- Specified by:
openLane
in interfaceNodeBinding
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLane
in interfaceNodeContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLane
in interfaceNodeContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfaceNodeBinding
- Specified by:
openMetaLane
in interfaceNodeContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfaceNodeBinding
- Specified by:
openMetaUplink
in interfaceNodeContext
-
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 interfaceNodeContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanes
in interfaceNodeBinding
- Specified by:
openLanes
in interfaceNodeContext
-
agentIds
public FingerTrieSeq<Value> agentIds()
- Specified by:
agentIds
in interfaceNodeBinding
-
agents
public FingerTrieSeq<Agent> agents()
- Specified by:
agents
in interfaceNodeBinding
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgents
in interfaceNodeBinding
- Specified by:
openAgents
in interfaceNodeContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactory
in interfaceNodeBinding
- Specified by:
createAgentFactory
in interfaceNodeContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfaceNodeBinding
- Specified by:
createAgentFactory
in interfaceNodeContext
-
didClose
public void didClose()
- Specified by:
didClose
in interfaceTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFail
in interfaceTierBinding
-
-