java.lang.Object
swim.actor.ActorCell
swim.actor.ActorTier
swim.actor.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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ActorHostswim.collections.FingerTrieSeq<swim.structure.Value>agentIds()swim.collections.FingerTrieSeq<swim.api.agent.Agent>agents()<T> TbottomNode(Class<T> nodeClass) final swim.system.NodeAddressfinal swim.system.CellBindingfinal 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) longswim.system.LaneBindingcreateLane(swim.system.LaneAddress laneAddress) swim.system.LaneBindingcreateLane(swim.system.NodeBinding node, swim.system.LaneDef laneDef) swim.util.LogcreateLog(swim.system.CellAddress cellAddress) swim.util.LogcreateLog(swim.system.LogDef logDef) swim.api.policy.PolicycreatePolicy(swim.system.CellAddress cellAddress) swim.api.policy.PolicycreatePolicy(swim.system.PolicyDef policyDef) swim.concurrent.StagecreateStage(swim.concurrent.StageDef stageDef) swim.concurrent.StagecreateStage(swim.system.CellAddress cellAddress) swim.store.StoreBindingcreateStore(swim.store.StoreDef storeDef) swim.store.StoreBindingcreateStore(swim.system.CellAddress cellAddress) voiddidClose()voidswim.system.LaneBindinggetLane(swim.uri.Uri laneUri) swim.system.LaneDefgetLaneDef(swim.system.LaneAddress laneAddress) final swim.system.HostBindinghost()swim.uri.UrihostUri()swim.api.auth.Identityidentity()swim.system.LaneBindinginjectLane(swim.system.LaneAddress laneAddress, swim.system.LaneBinding lane) swim.util.LoginjectLog(swim.util.Log log) swim.api.policy.PolicyinjectPolicy(swim.api.policy.Policy policy) swim.concurrent.StageinjectStage(swim.concurrent.Stage stage) swim.store.StoreBindinginjectStore(swim.store.StoreBinding store) swim.collections.HashTrieMap<swim.uri.Uri,swim.system.LaneBinding> lanes()final swim.system.NodeBindingfinal swim.system.NodeContextfinal swim.system.NodeDefnodeDef()swim.uri.UrinodeUri()final swim.system.NodeBindingvoidopenAgents(swim.system.NodeBinding node) swim.system.LaneBindingopenLane(swim.uri.Uri laneUri) swim.system.LaneBindingopenLane(swim.uri.Uri laneUri, swim.system.LaneBinding lane) voidopenLanes(swim.system.NodeBinding node) protected swim.util.LogopenLog()voidopenMetaDownlink(swim.system.LinkBinding downlink, swim.system.NodeBinding metaDownlink) voidopenMetaLane(swim.system.LaneBinding lane, swim.system.NodeBinding metaLane) voidopenMetaNode(swim.system.NodeBinding node, swim.system.NodeBinding metaNode) voidopenMetaUplink(swim.system.LinkBinding uplink, swim.system.NodeBinding metaUplink) protected swim.api.policy.Policyprotected swim.concurrent.Stageprotected swim.store.StoreBindingswim.structure.ValuepartKey()voidsetNodeContext(swim.system.NodeContext nodeContext) <T> TunwrapNode(Class<T> nodeClass) 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, willUnloadMethods inherited from class swim.actor.ActorCell
bindDownlink, closeDownlink, closeLog, closePolicy, debug, edgeName, error, fail, info, meshUri, openDownlink, openUplink, policy, pushDown, pushUp, reportDown, trace, warnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface swim.system.CellBinding
openUplink, pushUpMethods inherited from interface swim.system.CellContext
bindDownlink, closeDownlink, openDownlink, policy, pushDown, reportDown, schedule, stage, storeMethods inherited from interface swim.util.Log
debug, error, fail, info, trace, warnMethods inherited from interface swim.system.NodeBinding
meshUriMethods inherited from interface swim.system.NodeContext
edgeName, meshUriMethods inherited from interface swim.system.TierBinding
close, isClosed, isLoaded, isOpened, isStarted, load, open, start, stop, tierContext, unloadMethods inherited from interface swim.system.TierContext
close, didLoad, didOpen, didStart, didStop, didUnload, willClose, willLoad, willOpen, willStart, willStop, willUnload
-
Constructor Details
-
ActorNode
public ActorNode(swim.system.NodeBinding nodeBinding, swim.system.NodeDef nodeDef)
-
-
Method Details
-
nodeDef
public final swim.system.NodeDef nodeDef() -
actorHost
-
host
public final swim.system.HostBinding host()- Specified by:
hostin interfaceswim.system.NodeBinding- Specified by:
hostin interfaceswim.system.NodeContext
-
nodeWrapper
public final swim.system.NodeBinding nodeWrapper()- Specified by:
nodeWrapperin interfaceswim.system.NodeBinding- Specified by:
nodeWrapperin interfaceswim.system.NodeContext
-
nodeBinding
public final swim.system.NodeBinding nodeBinding() -
nodeContext
public final swim.system.NodeContext nodeContext()- Specified by:
nodeContextin interfaceswim.system.NodeBinding
-
setNodeContext
public void setNodeContext(swim.system.NodeContext nodeContext) - Specified by:
setNodeContextin interfaceswim.system.NodeBinding
-
unwrapNode
- Specified by:
unwrapNodein interfaceswim.system.NodeBinding- Specified by:
unwrapNodein interfaceswim.system.NodeContext
-
bottomNode
- Specified by:
bottomNodein interfaceswim.system.NodeBinding- Specified by:
bottomNodein interfaceswim.system.NodeContext
-
cellBinding
public final swim.system.CellBinding cellBinding()- Specified by:
cellBindingin classActorCell
-
cellContext
public final swim.system.CellContext cellContext()- Specified by:
cellContextin classActorCell
-
cellAddress
public final swim.system.NodeAddress cellAddress()- Specified by:
cellAddressin interfaceswim.system.CellContext- Specified by:
cellAddressin interfaceswim.system.NodeBinding- Specified by:
cellAddressin interfaceswim.system.NodeContext- Specified by:
cellAddressin classActorCell
-
partKey
public swim.structure.Value partKey()- Specified by:
partKeyin interfaceswim.system.NodeBinding- Specified by:
partKeyin interfaceswim.system.NodeContext
-
hostUri
public swim.uri.Uri hostUri()- Specified by:
hostUriin interfaceswim.system.NodeBinding- Specified by:
hostUriin interfaceswim.system.NodeContext
-
nodeUri
public swim.uri.Uri nodeUri()- Specified by:
nodeUriin interfaceswim.system.NodeBinding- Specified by:
nodeUriin interfaceswim.system.NodeContext
-
createdTime
public long createdTime()- Specified by:
createdTimein interfaceswim.system.NodeBinding- Specified by:
createdTimein interfaceswim.system.NodeContext
-
identity
public swim.api.auth.Identity identity()- Specified by:
identityin interfaceswim.system.NodeContext
-
lanes
public swim.collections.HashTrieMap<swim.uri.Uri,swim.system.LaneBinding> lanes()- Specified by:
lanesin interfaceswim.system.NodeBinding
-
getLane
public swim.system.LaneBinding getLane(swim.uri.Uri laneUri) - Specified by:
getLanein interfaceswim.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() -
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:
openPolicyin classActorCell
-
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() -
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() -
openMetaNode
public void openMetaNode(swim.system.NodeBinding node, swim.system.NodeBinding metaNode) - Specified by:
openMetaNodein interfaceswim.system.NodeBinding- Specified by:
openMetaNodein interfaceswim.system.NodeContext
-
getLaneDef
public swim.system.LaneDef getLaneDef(swim.system.LaneAddress laneAddress) -
openLane
public swim.system.LaneBinding openLane(swim.uri.Uri laneUri) - Specified by:
openLanein interfaceswim.system.NodeBinding
-
openLane
public swim.system.LaneBinding openLane(swim.uri.Uri laneUri, swim.system.LaneBinding lane) - Specified by:
openLanein interfaceswim.system.NodeBinding
-
createLane
public swim.system.LaneBinding createLane(swim.system.LaneAddress laneAddress) - Specified by:
createLanein interfaceswim.system.NodeContext
-
injectLane
public swim.system.LaneBinding injectLane(swim.system.LaneAddress laneAddress, swim.system.LaneBinding lane) - Specified by:
injectLanein interfaceswim.system.NodeContext
-
openMetaLane
public void openMetaLane(swim.system.LaneBinding lane, swim.system.NodeBinding metaLane) - Specified by:
openMetaLanein interfaceswim.system.NodeBinding- Specified by:
openMetaLanein interfaceswim.system.NodeContext
-
openMetaUplink
public void openMetaUplink(swim.system.LinkBinding uplink, swim.system.NodeBinding metaUplink) - Specified by:
openMetaUplinkin interfaceswim.system.NodeBinding- Specified by:
openMetaUplinkin interfaceswim.system.NodeContext
-
openMetaDownlink
public void openMetaDownlink(swim.system.LinkBinding downlink, swim.system.NodeBinding metaDownlink) - Specified by:
openMetaDownlinkin interfaceswim.system.CellContext
-
createLane
public swim.system.LaneBinding createLane(swim.system.NodeBinding node, swim.system.LaneDef laneDef) - Specified by:
createLanein interfaceswim.system.NodeContext
-
openLanes
public void openLanes(swim.system.NodeBinding node) - Specified by:
openLanesin interfaceswim.system.NodeBinding- Specified by:
openLanesin interfaceswim.system.NodeContext
-
agentIds
public swim.collections.FingerTrieSeq<swim.structure.Value> agentIds()- Specified by:
agentIdsin interfaceswim.system.NodeBinding
-
agents
public swim.collections.FingerTrieSeq<swim.api.agent.Agent> agents()- Specified by:
agentsin interfaceswim.system.NodeBinding
-
openAgents
public void openAgents(swim.system.NodeBinding node) - Specified by:
openAgentsin interfaceswim.system.NodeBinding- Specified by:
openAgentsin interfaceswim.system.NodeContext
-
createAgentFactory
public swim.api.agent.AgentFactory<?> createAgentFactory(swim.system.NodeBinding node, swim.api.agent.AgentDef agentDef) - Specified by:
createAgentFactoryin interfaceswim.system.NodeBinding- Specified by:
createAgentFactoryin interfaceswim.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:
createAgentFactoryin interfaceswim.system.NodeBinding- Specified by:
createAgentFactoryin interfaceswim.system.NodeContext
-
didClose
public void didClose()- Specified by:
didClosein interfaceswim.system.TierBinding
-
didFail
- Specified by:
didFailin interfaceswim.system.TierBinding
-