Files: 4193d244fec5109d4e0c0960c30a02fccc9623c6 / docs / hypervisor.md
3056 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
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
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