- 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.runtime.CellBinding
openUplink, pushUp
-
Methods inherited from interface swim.runtime.CellContext
bindDownlink, closeDownlink, openDownlink, policy, pushDown, reportDown, schedule, stage, store
-
Methods inherited from interface swim.runtime.NodeBinding
meshUri
-
Methods inherited from interface swim.runtime.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:
hostin interfaceNodeBinding- Specified by:
hostin interfaceNodeContext
-
nodeWrapper
public final NodeBinding nodeWrapper()
- Specified by:
nodeWrapperin interfaceNodeBinding- Specified by:
nodeWrapperin interfaceNodeContext
-
nodeBinding
public final NodeBinding nodeBinding()
-
nodeContext
public final NodeContext nodeContext()
- Specified by:
nodeContextin interfaceNodeBinding
-
setNodeContext
public void setNodeContext(NodeContext nodeContext)
- Specified by:
setNodeContextin interfaceNodeBinding
-
unwrapNode
public <T> T unwrapNode(Class<T> nodeClass)
- Specified by:
unwrapNodein interfaceNodeBinding- Specified by:
unwrapNodein interfaceNodeContext
-
bottomNode
public <T> T bottomNode(Class<T> nodeClass)
- Specified by:
bottomNodein interfaceNodeBinding- Specified by:
bottomNodein interfaceNodeContext
-
cellBinding
public final CellBinding cellBinding()
- Specified by:
cellBindingin classActorCell
-
cellContext
public final CellContext cellContext()
- Specified by:
cellContextin classActorCell
-
cellAddress
public final NodeAddress cellAddress()
- Specified by:
cellAddressin interfaceCellContext- Specified by:
cellAddressin interfaceNodeBinding- Specified by:
cellAddressin interfaceNodeContext- Specified by:
cellAddressin classActorCell
-
partKey
public Value partKey()
- Specified by:
partKeyin interfaceNodeBinding- Specified by:
partKeyin interfaceNodeContext
-
hostUri
public Uri hostUri()
- Specified by:
hostUriin interfaceNodeBinding- Specified by:
hostUriin interfaceNodeContext
-
nodeUri
public Uri nodeUri()
- Specified by:
nodeUriin interfaceNodeBinding- Specified by:
nodeUriin interfaceNodeContext
-
createdTime
public long createdTime()
- Specified by:
createdTimein interfaceNodeBinding- Specified by:
createdTimein interfaceNodeContext
-
identity
public Identity identity()
- Specified by:
identityin interfaceNodeContext
-
lanes
public HashTrieMap<Uri,LaneBinding> lanes()
- Specified by:
lanesin interfaceNodeBinding
-
getLane
public LaneBinding getLane(Uri laneUri)
- Specified by:
getLanein interfaceNodeBinding
-
createLog
public Log createLog(CellAddress cellAddress)
-
createPolicy
public Policy createPolicy(CellAddress cellAddress)
-
openPolicy
protected Policy openPolicy()
- Overrides:
openPolicyin 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:
openMetaNodein interfaceNodeBinding- Specified by:
openMetaNodein interfaceNodeContext
-
getLaneDef
public LaneDef getLaneDef(LaneAddress laneAddress)
-
openLane
public LaneBinding openLane(Uri laneUri)
- Specified by:
openLanein interfaceNodeBinding
-
openLane
public LaneBinding openLane(Uri laneUri, LaneBinding lane)
- Specified by:
openLanein interfaceNodeBinding
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLanein interfaceNodeContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLanein interfaceNodeContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLanein interfaceNodeBinding- Specified by:
openMetaLanein interfaceNodeContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplinkin interfaceNodeBinding- Specified by:
openMetaUplinkin interfaceNodeContext
-
openMetaDownlink
public void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
- Specified by:
openMetaDownlinkin interfaceCellContext
-
createLane
public LaneBinding createLane(NodeBinding node, LaneDef laneDef)
- Specified by:
createLanein interfaceNodeContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanesin interfaceNodeBinding- Specified by:
openLanesin interfaceNodeContext
-
agentIds
public FingerTrieSeq<Value> agentIds()
- Specified by:
agentIdsin interfaceNodeBinding
-
agents
public FingerTrieSeq<Agent> agents()
- Specified by:
agentsin interfaceNodeBinding
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgentsin interfaceNodeBinding- Specified by:
openAgentsin interfaceNodeContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactoryin interfaceNodeBinding- Specified by:
createAgentFactoryin interfaceNodeContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactoryin interfaceNodeBinding- Specified by:
createAgentFactoryin interfaceNodeContext
-
didClose
public void didClose()
- Specified by:
didClosein interfaceTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFailin interfaceTierBinding
-
-