grizzly v0.8.6 Grizzly.SmartStart.MetaExtension.NetworkStatus View Source
This extension is used to advertise if the node is in the network and its assigned node id
Link to this section Summary
Functions
Make a NetworkStatus.t()
from a binary string
Create a NetworkStatus.t()
Make a binary string from a NetworkStatus.t()
Link to this section Types
Link to this type
network_status()
View Source
network_status()
View Source
network_status() :: :not_in_network | :included | :failing
network_status() :: :not_in_network | :included | :failing
The different network statuses are:
:not_in_network
- the node in the provisioning list is not included in the network:included
- the node in the provisioning list is included in the network and is functional:failing
- the node in the provisioning list is included in the network but is now marked as failing
Link to this type
t()
View Source
t()
View Source
t() :: %Grizzly.SmartStart.MetaExtension.NetworkStatus{
network_status: network_status(),
node_id: Grizzly.Node.node_id()
}
t() :: %Grizzly.SmartStart.MetaExtension.NetworkStatus{ network_status: network_status(), node_id: Grizzly.Node.node_id() }
Link to this section Functions
Link to this function
from_binary(arg1) View Source
Make a NetworkStatus.t()
from a binary string
The binary string's critical bit MUST not be set. If it is this function will
return {:error, :critical_bit_set}
Link to this function
new(node_id, network_status)
View Source
new(node_id, network_status)
View Source
new(Grizzly.Node.node_id(), network_status()) ::
{:ok, t()} | {:error, :invalid_network_status | :invalid_node_id}
new(Grizzly.Node.node_id(), network_status()) :: {:ok, t()} | {:error, :invalid_network_status | :invalid_node_id}
Create a NetworkStatus.t()
If the node is not included into the network the node_id
has to be equal to
0
. If the node has been included into the network and is either functional
or failing then it has to have a node_id
greater than 0
.
Link to this function
to_binary(network_status) View Source
Make a binary string from a NetworkStatus.t()