import AddressAllocation from 'runtime-core/src/allocation/AddressAllocation.js'
AddressAllocation
Class will ask to the message node for addresses
Static Member Summary
Static Public Members | ||
public static get |
instance: * |
Constructor Summary
Public Constructor | ||
public |
constructor(url: URL.URL, bus: MiniBus) Create an Address Allocation |
Method Summary
Public Methods | ||
public |
create(domain: Domain, number: Number, info: Descriptor, scheme: scheme, reuseURL: boolean | URL.HypertyURL): Promise<Object, Error> Ask for creation of a number of Hyperty addresses, to the domain message node. |
|
public |
Send a request to the domain message node, to deallocate one or more addresses |
Static Public Members
public static get instance: * source
Public Constructors
Public Methods
public create(domain: Domain, number: Number, info: Descriptor, scheme: scheme, reuseURL: boolean | URL.HypertyURL): Promise<Object, Error> source
Ask for creation of a number of Hyperty addresses, to the domain message node.
Params:
Name | Type | Attribute | Description |
domain | Domain | domain of the message node |
|
number | Number | number of address to be allocated |
|
info | Descriptor | descriptor to search for the hyperty (TODO:// this should be confirmed) |
|
scheme | scheme | scheme of address to be created or reused, like: hyperty, comm, context, etc; |
|
reuseURL | boolean | URL.HypertyURL | reuseURL is used to reuse the hypertyURL previously registred; |