Files: 21960d62467278cd5659e2eb5f80cc6ddd87e663 / docs / hypervisor.md
3522 bytesRaw
<!-- Generated by documentation.js. Update this documentation by updating the source code. -->
Table of Contents
constructor
The Hypervisor manages the container instances by instantiating them and destorying them when possible. It also facilitates localating Containers
Parameters
tree
Tree a radix tree to store the statenonce
(optional, default0
)
send
sends a message
Parameters
Returns Promise a promise that resolves once the receiving container is loaded
getActor
gets an existsing actor
Parameters
id
string the actor's ID
Returns Promise
createActor
creates an instance of an Actor
Parameters
type
Integer the type id for the containercode
id
Object the id for the actor (optional, default{nonce:this.nonce++,parent:null}
)message
Object an intial message to send newly created actor
createStateRoot
creates a state root starting from a given container and a given number of ticks
Parameters
ticks
Number the number of ticks at which to create the state root (optional, defaultInfinity
)
Returns Promise
registerContainer
regirsters a container with the hypervisor
Parameters
Constructor
Class a Class for instantiating the containerargs
any any args that the contructor takestypeId
Integer the container's type identification ID
Built with git-ssb-web