pub struct DatanodeInfoProto {Show 17 fields
    pub id: DatanodeIdProto,
    pub capacity: Option<u64>,
    pub dfs_used: Option<u64>,
    pub remaining: Option<u64>,
    pub block_pool_used: Option<u64>,
    pub last_update: Option<u64>,
    pub xceiver_count: Option<u32>,
    pub location: Option<String>,
    pub non_dfs_used: Option<u64>,
    pub admin_state: Option<i32>,
    pub cache_capacity: Option<u64>,
    pub cache_used: Option<u64>,
    pub last_update_monotonic: Option<u64>,
    pub upgrade_domain: Option<String>,
    pub last_block_report_time: Option<u64>,
    pub last_block_report_monotonic: Option<u64>,
    pub num_blocks: Option<u32>,
}Expand description
The status of a Datanode
Fields§
§id: DatanodeIdProto§capacity: Option<u64>§dfs_used: Option<u64>§remaining: Option<u64>§block_pool_used: Option<u64>§last_update: Option<u64>§xceiver_count: Option<u32>§location: Option<String>§non_dfs_used: Option<u64>§admin_state: Option<i32>§cache_capacity: Option<u64>§cache_used: Option<u64>§last_update_monotonic: Option<u64>§upgrade_domain: Option<String>§last_block_report_time: Option<u64>§last_block_report_monotonic: Option<u64>§num_blocks: Option<u32>Implementations§
Source§impl DatanodeInfoProto
 
impl DatanodeInfoProto
Sourcepub fn capacity(&self) -> u64
 
pub fn capacity(&self) -> u64
Returns the value of capacity, or the default value if capacity is unset.
Sourcepub fn dfs_used(&self) -> u64
 
pub fn dfs_used(&self) -> u64
Returns the value of dfs_used, or the default value if dfs_used is unset.
Sourcepub fn remaining(&self) -> u64
 
pub fn remaining(&self) -> u64
Returns the value of remaining, or the default value if remaining is unset.
Sourcepub fn block_pool_used(&self) -> u64
 
pub fn block_pool_used(&self) -> u64
Returns the value of block_pool_used, or the default value if block_pool_used is unset.
Sourcepub fn last_update(&self) -> u64
 
pub fn last_update(&self) -> u64
Returns the value of last_update, or the default value if last_update is unset.
Sourcepub fn xceiver_count(&self) -> u32
 
pub fn xceiver_count(&self) -> u32
Returns the value of xceiver_count, or the default value if xceiver_count is unset.
Sourcepub fn location(&self) -> &str
 
pub fn location(&self) -> &str
Returns the value of location, or the default value if location is unset.
Sourcepub fn non_dfs_used(&self) -> u64
 
pub fn non_dfs_used(&self) -> u64
Returns the value of non_dfs_used, or the default value if non_dfs_used is unset.
Sourcepub fn admin_state(&self) -> AdminState
 
pub fn admin_state(&self) -> AdminState
Returns the enum value of admin_state, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_admin_state(&mut self, value: AdminState)
 
pub fn set_admin_state(&mut self, value: AdminState)
Sets admin_state to the provided enum value.
Sourcepub fn cache_capacity(&self) -> u64
 
pub fn cache_capacity(&self) -> u64
Returns the value of cache_capacity, or the default value if cache_capacity is unset.
Sourcepub fn cache_used(&self) -> u64
 
pub fn cache_used(&self) -> u64
Returns the value of cache_used, or the default value if cache_used is unset.
Sourcepub fn last_update_monotonic(&self) -> u64
 
pub fn last_update_monotonic(&self) -> u64
Returns the value of last_update_monotonic, or the default value if last_update_monotonic is unset.
Sourcepub fn upgrade_domain(&self) -> &str
 
pub fn upgrade_domain(&self) -> &str
Returns the value of upgrade_domain, or the default value if upgrade_domain is unset.
Sourcepub fn last_block_report_time(&self) -> u64
 
pub fn last_block_report_time(&self) -> u64
Returns the value of last_block_report_time, or the default value if last_block_report_time is unset.
Sourcepub fn last_block_report_monotonic(&self) -> u64
 
pub fn last_block_report_monotonic(&self) -> u64
Returns the value of last_block_report_monotonic, or the default value if last_block_report_monotonic is unset.
Sourcepub fn num_blocks(&self) -> u32
 
pub fn num_blocks(&self) -> u32
Returns the value of num_blocks, or the default value if num_blocks is unset.
Trait Implementations§
Source§impl Clone for DatanodeInfoProto
 
impl Clone for DatanodeInfoProto
Source§fn clone(&self) -> DatanodeInfoProto
 
fn clone(&self) -> DatanodeInfoProto
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DatanodeInfoProto
 
impl Debug for DatanodeInfoProto
Source§impl Default for DatanodeInfoProto
 
impl Default for DatanodeInfoProto
Source§impl Message for DatanodeInfoProto
 
impl Message for DatanodeInfoProto
Source§fn encoded_len(&self) -> usize
 
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
 
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
 
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
 
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
 
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
    Self: Sized,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
 
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
 
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
 
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
 
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self.