- 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.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.PartBinding
meshUri
-
Methods inherited from interface swim.system.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:
mesh
in interfacePartBinding
- Specified by:
mesh
in interfacePartContext
-
partWrapper
public final PartBinding partWrapper()
- Specified by:
partWrapper
in interfacePartBinding
- Specified by:
partWrapper
in interfacePartContext
-
partBinding
public final PartBinding partBinding()
-
partContext
public final PartContext partContext()
- Specified by:
partContext
in interfacePartBinding
-
setPartContext
public void setPartContext(PartContext partContext)
- Specified by:
setPartContext
in interfacePartBinding
-
unwrapPart
public <T> T unwrapPart(Class<T> partClass)
- Specified by:
unwrapPart
in interfacePartBinding
- Specified by:
unwrapPart
in interfacePartContext
-
bottomPart
public <T> T bottomPart(Class<T> partClass)
- Specified by:
bottomPart
in interfacePartBinding
- Specified by:
bottomPart
in interfacePartContext
-
cellBinding
public final CellBinding cellBinding()
- Specified by:
cellBinding
in classActorCell
-
cellContext
public final CellContext cellContext()
- Specified by:
cellContext
in classActorCell
-
cellAddress
public final PartAddress cellAddress()
- Specified by:
cellAddress
in interfaceCellContext
- Specified by:
cellAddress
in interfacePartBinding
- Specified by:
cellAddress
in interfacePartContext
- Specified by:
cellAddress
in classActorCell
-
partKey
public Value partKey()
- Specified by:
partKey
in interfacePartBinding
- Specified by:
partKey
in interfacePartContext
-
predicate
public PartPredicate predicate()
- Specified by:
predicate
in interfacePartBinding
-
master
public HostBinding master()
- Specified by:
master
in interfacePartBinding
-
setMaster
public void setMaster(HostBinding master)
- Specified by:
setMaster
in interfacePartBinding
-
hosts
public HashTrieMap<Uri,HostBinding> hosts()
- Specified by:
hosts
in interfacePartBinding
-
getHost
public HostBinding getHost(Uri hostUri)
- Specified by:
getHost
in interfacePartBinding
-
openHost
public HostBinding openHost(Uri hostUri)
- Specified by:
openHost
in interfacePartBinding
-
openHost
public HostBinding openHost(Uri hostUri, HostBinding host)
- Specified by:
openHost
in interfacePartBinding
-
hostDidConnect
public void hostDidConnect(Uri hostUri)
- Specified by:
hostDidConnect
in interfacePartContext
-
hostDidDisconnect
public void hostDidDisconnect(Uri hostUri)
- Specified by:
hostDidDisconnect
in interfacePartContext
-
reopenUplinks
public void reopenUplinks()
- Specified by:
reopenUplinks
in interfacePartBinding
-
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()
-
openMetaPart
public void openMetaPart(PartBinding part, NodeBinding metaPart)
- Specified by:
openMetaPart
in interfacePartBinding
- Specified by:
openMetaPart
in interfacePartContext
-
getHostDef
public HostDef getHostDef(HostAddress hostAddress)
-
createHost
public HostBinding createHost(HostAddress hostAddress)
- Specified by:
createHost
in interfacePartContext
-
injectHost
public HostBinding injectHost(HostAddress hostAddress, HostBinding host)
- Specified by:
injectHost
in interfacePartContext
-
openMetaHost
public void openMetaHost(HostBinding host, NodeBinding metaHost)
- Specified by:
openMetaHost
in interfacePartBinding
- Specified by:
openMetaHost
in interfacePartContext
-
getNodeDef
public NodeDef getNodeDef(NodeAddress nodeAddress)
-
createNode
public NodeBinding createNode(NodeAddress nodeAddress)
- Specified by:
createNode
in interfacePartContext
-
injectNode
public NodeBinding injectNode(NodeAddress nodeAddress, NodeBinding node)
- Specified by:
injectNode
in interfacePartContext
-
openMetaNode
public void openMetaNode(NodeBinding node, NodeBinding metaNode)
- Specified by:
openMetaNode
in interfacePartBinding
- Specified by:
openMetaNode
in interfacePartContext
-
getLaneDef
public LaneDef getLaneDef(LaneAddress laneAddress)
-
createLane
public LaneBinding createLane(LaneAddress laneAddress)
- Specified by:
createLane
in interfacePartContext
-
injectLane
public LaneBinding injectLane(LaneAddress laneAddress, LaneBinding lane)
- Specified by:
injectLane
in interfacePartContext
-
openMetaLane
public void openMetaLane(LaneBinding lane, NodeBinding metaLane)
- Specified by:
openMetaLane
in interfacePartBinding
- Specified by:
openMetaLane
in interfacePartContext
-
openMetaUplink
public void openMetaUplink(LinkBinding uplink, NodeBinding metaUplink)
- Specified by:
openMetaUplink
in interfacePartBinding
- Specified by:
openMetaUplink
in interfacePartContext
-
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 interfacePartContext
-
openLanes
public void openLanes(NodeBinding node)
- Specified by:
openLanes
in interfacePartContext
-
createAgentFactory
public AgentFactory<?> createAgentFactory(NodeBinding node, AgentDef agentDef)
- Specified by:
createAgentFactory
in interfacePartContext
-
createAgentFactory
public <A extends Agent> AgentFactory<A> createAgentFactory(NodeBinding node, Class<? extends A> agentClass)
- Specified by:
createAgentFactory
in interfacePartContext
-
openAgents
public void openAgents(NodeBinding node)
- Specified by:
openAgents
in interfacePartContext
-
authenticate
public PolicyDirective<Identity> authenticate(Credentials credentials)
- Specified by:
authenticate
in interfacePartContext
-
didClose
public void didClose()
- Specified by:
didClose
in interfaceTierBinding
-
didFail
public void didFail(Throwable error)
- Specified by:
didFail
in interfaceTierBinding
-
-