fn start_replica(
        &self,
        replica_version: &ReplicaVersion,
        subnet_id: SubnetId,
    ) -> OrchestratorResult<()> {
        info!(self.logger, "Starting new replica process due to upgrade");
        let cup_path = self.cup_provider.get_cup_path();
        let replica_binary = self
            .ic_binary_dir
            .join("replica")
            .as_path()
            .display()
            .to_string();
        let cmd = vec![
            format!("--replica-version={}", replica_version.as_ref()),
            format!(
                "--config-file={}",
                self.replica_config_file.as_path().display().to_string()
            ),
            format!(
                "--catch-up-package={}",
                cup_path.as_path().display().to_string()
            ),
            format!("--force-subnet={}", subnet_id),
        ];

        self.replica_process
            .lock()
            .unwrap()
            .start(replica_binary, replica_version, cmd)
            .map_err(|e| {
                OrchestratorError::IoError("Error when attempting to start new replica".into(), e)
            })
    }
// Stop the current Replica and start a new Replica command
Stop the current Replica and start a new Replica command
Stop the current Replica and start a new Replica command
fn start_replica(
        &self,
        replica_version: &ReplicaVersion,
        subnet_id: SubnetId,
    ) -> OrchestratorResult<()> {
        info!(self.logger, "Starting new replica process due to upgrade");
        let cup_path = self.cup_provider.get_cup_path();
        let replica_binary = self
            .ic_binary_dir
            .join("replica")
            .as_path()
            .display()
            .to_string();
        let cmd = vec![
            format!("--replica-version={}", replica_version.as_ref()),
            format!(
                "--config-file={}",
                self.replica_config_file.as_path().display().to_string()
            ),
            format!(
                "--catch-up-package={}",
                cup_path.as_path().display().to_string()
            ),
            format!("--force-subnet={}", subnet_id),
        ];
        self.replica_process
            .lock()
            .unwrap()
            .start(replica_binary, replica_version, cmd)
            .map_err(|e| {
                OrchestratorError::IoError("Error when attempting to start new replica".into(), e)
            })
    }
fn start_replica ( & self , replica_version : & ReplicaVersion , subnet_id : SubnetId , ) -> OrchestratorResult < ( ) > { info ! ( self logger " " ) ; let cup_path = self . cup_provider . get_cup_path ( ) ; let replica_binary = self . ic_binary_dir . join ( " " ) . as_path ( ) . display ( ) . to_string ( ) ; let cmd = vec ! [ format ( " " replica_version as_ref ( ) ) format ( " " self replica_config_file as_path ( ) display ( ) to_string ( ) ) format ( " " cup_path as_path ( ) display ( ) to_string ( ) ) format ( " " subnet_id ) ] ; self . replica_process . lock ( ) . unwrap ( ) . start ( replica_binary , replica_version , cmd ) . map_err ( | e | { OrchestratorError :: IoError ( " " . into ( ) , e ) } ) }
Stop the current Replica and start a new Replica command
Stop the current Replica and start a new Replica command
&self
replica_version
&ReplicaVersion
subnet_id
SubnetId
&self
replica_version
&ReplicaVersion
subnet_id
SubnetId