Struct hadoop_proto::hadoop::hdfs::DatanodeInfoProto
source · 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>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self.source§impl PartialEq<DatanodeInfoProto> for DatanodeInfoProto
impl PartialEq<DatanodeInfoProto> for DatanodeInfoProto
source§fn eq(&self, other: &DatanodeInfoProto) -> bool
fn eq(&self, other: &DatanodeInfoProto) -> bool
self and other values to be equal, and is used
by ==.