Files: c377000cc6e55fdfc0f125f5b5ec17687e615dde / docs / hypervisor.md
<!-- 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
addNodeToCheck
add a potaintail node in the state graph to check for garbage collection
Parameters
id
string
getDestPort
given a port, this finds the corridsponeding endpoint port of the channel
Parameters
port
object
Returns Promise
getInstance
gets an existsing container instances
Parameters
id
string the containers ID
Returns Promise
createInstance
creates an new container instances and save it in the state
Parameters
type
string the type of container to createcode
anyentryPorts
array (optional, default[]
)id
object (optional, default{nonce:0,parent:null}
)
Returns Promise
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
type
String the name of the typeConstructor
Class a Class for instantiating the containerargs
any any args that the contructor takes
Built with git-ssb-web