- java.lang.Object
-
- swim.actor.ActorCell
-
- swim.actor.ActorTier
-
- swim.actor.ActorPart
-
- All Implemented Interfaces:
CellBinding,CellContext,PartBinding,PartContext,TierBinding,TierContext,Log
public class ActorPart extends ActorTier implements PartBinding, PartContext
-
-
Constructor Summary
Constructors Constructor Description ActorPart(PartBinding partBinding, PartDef partDef)
-
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.PartBinding
meshUri
-
Methods inherited from interface swim.runtime.PartContext
edgeName, meshUri
-
-
-
-
Constructor Detail
-
ActorPart
public ActorPart(PartBinding partBinding, PartDef partDef)
-
-
Method Detail
-
partDef
public final PartDef partDef()
-
actorMesh
public final ActorMesh actorMesh()
-
mesh
public final MeshBinding mesh()
- Specified by:
meshin interfacePartBinding- Specified by:
meshin interfacePartContext
-
partWrapper
public final PartBinding partWrapper()
- Specified by:
partWrapperin interfacePartBinding- Specified by:
partWrapperin interfacePartContext
-
partBinding
public final PartBinding partBinding()
-
partContext
public final PartContext partContext()
- Specified by:
partContextin interfacePartBinding
-
setPartContext
public void setPartContext(PartContext partContext)
- Specified by:
setPartContextin interfacePartBinding
-
unwrapPart
public <T> T unwrapPart(Class<T> partClass)
- Specified by:
unwrapPartin interfacePartBinding- Specified by:
unwrapPartin interfacePartContext
-
bottomPart
public <T> T bottomPart(Class<T> partClass)
- Specified by:
bottomPartin interfacePartBinding- Specified by:
bottomPartin interfacePartContext
-
cellBinding
public final CellBinding cellBinding()
- Specified by:
cellBindingin classActorCell
-
cellContext
public final CellContext cellContext()
- Specified by:
cellContextin classActorCell
-
cellAddress
public final PartAddress cellAddress()
- Specified by:
cellAddressin interfaceCellContext- Specified by:
cellAddressin interfacePartBinding- Specified by:
cellAddressin interfacePartContext- Specified by:
cellAddressin classActorCell
-
partKey
public Value partKey()
- Specified by:
partKeyin interfacePartBinding- Specified by:
partKeyin interfacePartContext
-
predicate
public PartPredicate predicate()
- Specified by:
predicatein interfacePartBinding
-
master
public HostBinding master()
- Specified by:
masterin interfacePartBinding
-
setMaster
public void setMaster(HostBinding master)
- Specified by:
setMasterin interfacePartBinding
-
hosts
public HashTrieMap<Uri,HostBinding> hosts()
- Specified by:
hostsin interfacePartBinding
-
getHost
public HostBinding getHost(Uri hostUri)
- Specified by:
getHostin interfacePartBinding
-
openHost
public HostBinding openHost(Uri hostUri)
- Specified by:
openHostin interfacePartBinding
-
openHost
public HostBinding openHost(Uri hostUri, HostBinding host)
- Specified by:
openHostin interfacePartBinding
-
hostDidConnect
public void hostDidConnect(Uri hostUri)
- Specified by:
hostDidConnectin interfacePartContext
-
hostDidDisconnect
public void hostDidDisconnect(Uri hostUri)
- Specified by:
hostDidDisconnectin interfacePartContext
-
reopenUplinks
public void reopenUplinks()
- Specified by:
reopenUplinksin interfacePartBinding
-
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()
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPartin interfacePartBinding- Specified by:
openMetaPartin interfacePartContext
-
getHostDef
public HostDef getHostDef(HostAddress hostAddress)
-
createHost
public HostBinding createHost(HostAddress hostAddress)
- Specified by:
createHostin interfacePartContext
-
injectHost
public HostBinding injectHost(HostAddress hostAddress, HostBinding host)
- Specified by:
injectHostin interfacePartContext
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHostin interfacePartBinding- Specified by:
openMetaHostin interfacePartContext
-
getNodeDef
public NodeDef getNodeDef(NodeAddress nodeAddress)
-
createNode
public NodeBinding createNode(NodeAddress nodeAddress)
- Specified by:
createNodein interfacePartContext
-
injectNode
public NodeBinding injectNode(NodeAddress nodeAddress, NodeBinding node)
- Specified by:
injectNodein interfacePartContext
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNodein interfacePartBinding- Specified by:
openMetaNodein interfacePartContext
-
getLaneDef
public LaneDef getLaneDef(LaneAddress laneAddress)
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLanein interfacePartContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLanein interfacePartContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLanein interfacePartBinding- Specified by:
openMetaLanein interfacePartContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplinkin interfacePartBinding- Specified by:
openMetaUplinkin interfacePartContext
-
openMetaDownlink
public void openMetaDownlink(LinkBinding downlink, NodeBinding metaDownlink)
- Specified by:
openMetaDownlinkin interfaceCellContext
-
createLane
public LaneBinding createLane(NodeBinding node, LaneDef laneDef)
- Specified by:
createLanein interfacePartContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanesin interfacePartContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactoryin interfacePartContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactoryin interfacePartContext
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgentsin interfacePartContext
-
authenticate
public PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticatein interfacePartContext
-
didClose
public void didClose()
- Specified by:
didClosein interfaceTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFailin interfaceTierBinding
-
-