Struct garage_rpc::system::System
source · pub struct System {
pub id: Uuid,
pub netapp: Arc<NetApp>,
pub rpc: RpcHelper,
pub ring: Receiver<Arc<Ring>>,
pub metadata_dir: PathBuf,
pub data_dir: PathBuf,
/* private fields */
}
Expand description
This node’s membership manager
Fields§
§id: Uuid
The id of this node
netapp: Arc<NetApp>
§rpc: RpcHelper
§ring: Receiver<Arc<Ring>>
The ring
metadata_dir: PathBuf
Path to metadata directory
data_dir: PathBuf
Path to data directory
Implementations§
source§impl System
impl System
sourcepub fn new(
network_key: NetworkKey,
replication_mode: ReplicationMode,
config: &Config
) -> Result<Arc<Self>, Error>
pub fn new( network_key: NetworkKey, replication_mode: ReplicationMode, config: &Config ) -> Result<Arc<Self>, Error>
Create this node’s membership manager
sourcepub async fn run(self: Arc<Self>, must_exit: Receiver<bool>)
pub async fn run(self: Arc<Self>, must_exit: Receiver<bool>)
Perform bootstraping, starting the ping loop