public interface BootstrapPeer
Implementations of this interface perform initialization operations on a
HyperGraphPeer
. The intent is to register various services
that the peer is able to perform, e.g. the
tasks it participates to etc. Multiple implementations can be provided
at configuration time by listing them in the top-level bootstrap
JSON configuration property.
Note that bootstrap operations are performed before the peer joins the peer network, so they cannot rely messaging with other peers in order to complete.
Modifier and Type | Method and Description |
---|---|
void |
bootstrap(HyperGraphPeer peer,
Json config)
Perform peer initialization with the given configuration map.
|
void bootstrap(HyperGraphPeer peer, Json config)
Perform peer initialization with the given configuration map. The configuration is specific to the bootstrap instance invoked. Each implementation of this class should document the configuration that it accepts.
peer
- config
-