- java.lang.Object
-
- swim.actor.ActorCell
-
- swim.actor.ActorTier
-
- swim.actor.ActorHost
-
- All Implemented Interfaces:
swim.system.CellBinding,swim.system.CellContext,swim.system.HostBinding,swim.system.HostContext,swim.system.TierBinding,swim.system.TierContext,swim.util.Log
public class ActorHost extends ActorTier implements swim.system.HostBinding, swim.system.HostContext
-
-
Constructor Summary
Constructors Constructor Description ActorHost(swim.system.HostBinding hostBinding, swim.system.HostDef hostDef)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActorPartactorPart()swim.api.policy.PolicyDirective<swim.api.auth.Identity>authenticate(swim.api.auth.Credentials credentials)<T> TbottomHost(Class<T> hostClass)swim.system.HostAddresscellAddress()swim.system.CellBindingcellBinding()swim.system.CellContextcellContext()<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.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.system.NodeBindingcreateNode(swim.system.NodeAddress nodeAddress)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)voiddidBecomeMaster()voiddidBecomeSlave()voiddidClose()voiddidConnect()voiddidDisconnect()voiddidFail(Throwable error)swim.system.LaneDefgetLaneDef(swim.system.LaneAddress laneAddress)swim.system.NodeBindinggetNode(swim.uri.Uri nodeUri)swim.system.NodeDefgetNodeDef(swim.system.NodeAddress nodeAddress)swim.system.HostBindinghostBinding()swim.system.HostContexthostContext()swim.system.HostDefhostDef()swim.uri.UrihostUri()swim.system.HostBindinghostWrapper()swim.system.LaneBindinginjectLane(swim.system.LaneAddress laneAddress, swim.system.LaneBinding lane)swim.util.LoginjectLog(swim.util.Log log)swim.system.NodeBindinginjectNode(swim.system.NodeAddress nodeAddress, swim.system.NodeBinding node)swim.api.policy.PolicyinjectPolicy(swim.api.policy.Policy policy)swim.concurrent.StageinjectStage(swim.concurrent.Stage stage)swim.store.StoreBindinginjectStore(swim.store.StoreBinding store)booleanisConnected()booleanisMaster()booleanisPrimary()booleanisRemote()booleanisReplica()booleanisSecure()booleanisSlave()swim.uri.UriMapper<swim.system.NodeBinding>nodes()voidopenAgents(swim.system.NodeBinding node)voidopenLanes(swim.system.NodeBinding node)protected swim.util.LogopenLog()voidopenMetaDownlink(swim.system.LinkBinding downlink, swim.system.NodeBinding metaDownlink)voidopenMetaHost(swim.system.HostBinding host, swim.system.NodeBinding metaHost)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)swim.system.NodeBindingopenNode(swim.uri.Uri nodeUri)swim.system.NodeBindingopenNode(swim.uri.Uri nodeUri, swim.system.NodeBinding node)protected swim.api.policy.PolicyopenPolicy()protected swim.concurrent.StageopenStage()protected swim.store.StoreBindingopenStore()swim.system.PartBindingpart()swim.structure.ValuepartKey()voidsetHostContext(swim.system.HostContext hostContext)voidsetPrimary(boolean isPrimary)voidsetReplica(boolean isReplica)<T> TunwrapHost(Class<T> hostClass)-
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.CellContext
bindDownlink, closeDownlink, openDownlink, policy, pushDown, reportDown, schedule, stage, store
-
-
-
-
Method Detail
-
hostDef
public final swim.system.HostDef hostDef()
-
actorPart
public final ActorPart actorPart()
-
part
public final swim.system.PartBinding part()
- Specified by:
partin interfaceswim.system.HostBinding- Specified by:
partin interfaceswim.system.HostContext
-
hostWrapper
public final swim.system.HostBinding hostWrapper()
- Specified by:
hostWrapperin interfaceswim.system.HostBinding- Specified by:
hostWrapperin interfaceswim.system.HostContext
-
hostBinding
public final swim.system.HostBinding hostBinding()
-
hostContext
public final swim.system.HostContext hostContext()
- Specified by:
hostContextin interfaceswim.system.HostBinding
-
setHostContext
public void setHostContext(swim.system.HostContext hostContext)
- Specified by:
setHostContextin interfaceswim.system.HostBinding
-
unwrapHost
public <T> T unwrapHost(Class<T> hostClass)
- Specified by:
unwrapHostin interfaceswim.system.HostBinding- Specified by:
unwrapHostin interfaceswim.system.HostContext
-
bottomHost
public <T> T bottomHost(Class<T> hostClass)
- Specified by:
bottomHostin interfaceswim.system.HostBinding- Specified by:
bottomHostin interfaceswim.system.HostContext
-
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.HostAddress cellAddress()
- Specified by:
cellAddressin interfaceswim.system.CellContext- Specified by:
cellAddressin interfaceswim.system.HostBinding- Specified by:
cellAddressin interfaceswim.system.HostContext- Specified by:
cellAddressin classActorCell
-
partKey
public swim.structure.Value partKey()
- Specified by:
partKeyin interfaceswim.system.HostBinding- Specified by:
partKeyin interfaceswim.system.HostContext
-
hostUri
public swim.uri.Uri hostUri()
- Specified by:
hostUriin interfaceswim.system.HostBinding- Specified by:
hostUriin interfaceswim.system.HostContext
-
isConnected
public boolean isConnected()
- Specified by:
isConnectedin interfaceswim.system.HostBinding
-
isRemote
public boolean isRemote()
- Specified by:
isRemotein interfaceswim.system.HostBinding
-
isSecure
public boolean isSecure()
- Specified by:
isSecurein interfaceswim.system.HostBinding
-
isPrimary
public boolean isPrimary()
- Specified by:
isPrimaryin interfaceswim.system.HostBinding
-
setPrimary
public void setPrimary(boolean isPrimary)
- Specified by:
setPrimaryin interfaceswim.system.HostBinding
-
isReplica
public boolean isReplica()
- Specified by:
isReplicain interfaceswim.system.HostBinding
-
setReplica
public void setReplica(boolean isReplica)
- Specified by:
setReplicain interfaceswim.system.HostBinding
-
isMaster
public boolean isMaster()
- Specified by:
isMasterin interfaceswim.system.HostBinding
-
isSlave
public boolean isSlave()
- Specified by:
isSlavein interfaceswim.system.HostBinding
-
didBecomeMaster
public void didBecomeMaster()
- Specified by:
didBecomeMasterin interfaceswim.system.HostBinding
-
didBecomeSlave
public void didBecomeSlave()
- Specified by:
didBecomeSlavein interfaceswim.system.HostBinding
-
nodes
public swim.uri.UriMapper<swim.system.NodeBinding> nodes()
- Specified by:
nodesin interfaceswim.system.HostBinding
-
getNode
public swim.system.NodeBinding getNode(swim.uri.Uri nodeUri)
- Specified by:
getNodein interfaceswim.system.HostBinding
-
openNode
public swim.system.NodeBinding openNode(swim.uri.Uri nodeUri)
- Specified by:
openNodein interfaceswim.system.HostBinding
-
openNode
public swim.system.NodeBinding openNode(swim.uri.Uri nodeUri, swim.system.NodeBinding node)- Specified by:
openNodein interfaceswim.system.HostBinding
-
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)
-
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)
-
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)
-
openMetaHost
public void openMetaHost(swim.system.HostBinding host, swim.system.NodeBinding metaHost)- Specified by:
openMetaHostin interfaceswim.system.HostBinding- Specified by:
openMetaHostin interfaceswim.system.HostContext
-
getNodeDef
public swim.system.NodeDef getNodeDef(swim.system.NodeAddress nodeAddress)
-
createNode
public swim.system.NodeBinding createNode(swim.system.NodeAddress nodeAddress)
- Specified by:
createNodein interfaceswim.system.HostContext
-
injectNode
public swim.system.NodeBinding injectNode(swim.system.NodeAddress nodeAddress, swim.system.NodeBinding node)- Specified by:
injectNodein interfaceswim.system.HostContext
-
openMetaNode
public void openMetaNode(swim.system.NodeBinding node, swim.system.NodeBinding metaNode)- Specified by:
openMetaNodein interfaceswim.system.HostBinding- Specified by:
openMetaNodein interfaceswim.system.HostContext
-
getLaneDef
public swim.system.LaneDef getLaneDef(swim.system.LaneAddress laneAddress)
-
createLane
public swim.system.LaneBinding createLane(swim.system.LaneAddress laneAddress)
- Specified by:
createLanein interfaceswim.system.HostContext
-
injectLane
public swim.system.LaneBinding injectLane(swim.system.LaneAddress laneAddress, swim.system.LaneBinding lane)- Specified by:
injectLanein interfaceswim.system.HostContext
-
openMetaLane
public void openMetaLane(swim.system.LaneBinding lane, swim.system.NodeBinding metaLane)- Specified by:
openMetaLanein interfaceswim.system.HostBinding- Specified by:
openMetaLanein interfaceswim.system.HostContext
-
openMetaUplink
public void openMetaUplink(swim.system.LinkBinding uplink, swim.system.NodeBinding metaUplink)- Specified by:
openMetaUplinkin interfaceswim.system.HostBinding- Specified by:
openMetaUplinkin interfaceswim.system.HostContext
-
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.HostContext
-
openLanes
public void openLanes(swim.system.NodeBinding node)
- Specified by:
openLanesin interfaceswim.system.HostContext
-
createAgentFactory
public swim.api.agent.AgentFactory<?> createAgentFactory(swim.system.NodeBinding node, swim.api.agent.AgentDef agentDef)- Specified by:
createAgentFactoryin interfaceswim.system.HostContext
-
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.HostContext
-
openAgents
public void openAgents(swim.system.NodeBinding node)
- Specified by:
openAgentsin interfaceswim.system.HostContext
-
authenticate
public swim.api.policy.PolicyDirective<swim.api.auth.Identity> authenticate(swim.api.auth.Credentials credentials)
- Specified by:
authenticatein interfaceswim.system.HostContext
-
didConnect
public void didConnect()
- Specified by:
didConnectin interfaceswim.system.HostContext
-
didDisconnect
public void didDisconnect()
- Specified by:
didDisconnectin interfaceswim.system.HostContext
-
didClose
public void didClose()
- Specified by:
didClosein interfaceswim.system.TierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFailin interfaceswim.system.TierBinding
-
-