Struct hersir::controller::MonitorNode
source · pub struct MonitorNode {
process: JormungandrProcess,
progress_bar: ProgressBarController,
}
Expand description
Node is going to be used by the Controller
to monitor the node process
Fields§
§process: JormungandrProcess
§progress_bar: ProgressBarController
Implementations§
source§impl Node
impl Node
pub fn new( process: JormungandrProcess, progress_bar: ProgressBarController ) -> Self
pub fn alias(&self) -> NodeAlias
pub fn controller(self) -> JormungandrProcess
pub fn status(&self) -> Result<Status, StartupError>
pub fn address(&self) -> SocketAddr
pub fn explorer(&self) -> Result<ExplorerProcess, ExplorerError>
pub fn log(&self, info: &str)
pub fn tip(&self) -> Result<Hash, Error>
pub fn rest(&self) -> JormungandrRest
pub fn grpc(&self) -> JormungandrClient
pub fn log_leadership_log(&self)
pub fn wait_for_bootstrap(&self) -> Result<(), Error>
pub fn wait_for_shutdown(&mut self) -> Result<Option<ExitStatus>, Error>
pub fn is_up(&self) -> bool
pub fn shutdown(&mut self) -> Result<Option<ExitStatus>, Error>
pub fn finish_monitoring(&self)
pub fn logger(&self) -> &JormungandrLogger
pub fn log_content(&self) -> String
pub fn progress_bar(&self) -> &ProgressBarController
pub fn capture_logs(&mut self)
fn progress_bar_start(&self)
fn progress_bar_failure(&self)
fn progress_bar_success(&self)
Trait Implementations§
source§impl FragmentNode for Node
impl FragmentNode for Node
fn alias(&self) -> NodeAlias
fn fragment_logs( &self ) -> Result<HashMap<FragmentId, FragmentLog>, FragmentNodeError>
fn send_fragment( &self, fragment: Fragment ) -> Result<MemPoolCheck, FragmentNodeError>
fn send_batch_fragments( &self, fragments: Vec<Fragment>, fail_fast: bool ) -> Result<FragmentsProcessingSummary, FragmentNodeError>
fn log_pending_fragment(&self, fragment_id: FragmentId)
fn log_rejected_fragment(&self, fragment_id: FragmentId, reason: String)
fn log_in_block_fragment( &self, fragment_id: FragmentId, date: BlockDate, block: Hash )
fn log_content(&self) -> Vec<String>
Auto Trait Implementations§
impl !RefUnwindSafe for Node
impl Send for Node
impl !Sync for Node
impl Unpin for Node
impl !UnwindSafe for Node
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request