Files: 33a6e566ff3440039cadbd025088e2f289f3c59d / docs / hypervisor.md
3596 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 state
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 containermessage
Object an intial message to send newly created actorid
Object the id for the actor (optional, default{nonce:this.nonce,parent:null}
)
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
Interger the container's type identification ID (optional, defaultConstructor.typeId
)
Built with git-ssb-web