Trait fluvio::metadata::spu::store::SpuLocalStorePolicy[]

pub trait SpuLocalStorePolicy<C> where
    C: MetadataItem
{ #[must_use] pub fn online_status<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = HashSet<i32, RandomState>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn online_spu_count<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn spu_used_for_replica<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn online_spu_ids<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Vec<i32, Global>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn spu_ids<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Vec<i32, Global>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn online_spus<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>, Global>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn custom_spus<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>, Global>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_by_id<'life0, 'async_trait>(
        &'life0 self,
        id: i32
    ) -> Pin<Box<dyn Future<Output = Option<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn validate_spu_for_registered<'life0, 'async_trait>(
        &'life0 self,
        id: i32
    ) -> Pin<Box<dyn Future<Output = bool> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn all_names<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Vec<String, Global>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn table_fmt<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = String> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn spus_in_rack_count<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn live_spu_rack_map_sorted<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Vec<(String, Vec<i32, Global>), Global>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn online_spu_rack_map<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = BTreeMap<String, Vec<i32, Global>>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
pub fn online_spus_in_rack(
        rack_map: &[(String, Vec<i32, Global>)]
    ) -> Vec<i32, Global>;
#[must_use] pub fn all_spus_to_spu_msgs<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Vec<Message<SpuSpec>, Global>> + 'async_trait + Send, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
pub fn quick(spus: Vec<(i32, bool, Option<String>), Global>) -> Self; }

Required methods

#[must_use]pub fn online_status<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = HashSet<i32, RandomState>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn online_spu_count<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn spu_used_for_replica<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn online_spu_ids<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Vec<i32, Global>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn spu_ids<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Vec<i32, Global>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn online_spus<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>, Global>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn custom_spus<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Vec<MetadataStoreObject<SpuSpec, C>, Global>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn get_by_id<'life0, 'async_trait>(
    &'life0 self,
    id: i32
) -> Pin<Box<dyn Future<Output = Option<MetadataStoreObject<SpuSpec, C>>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn validate_spu_for_registered<'life0, 'async_trait>(
    &'life0 self,
    id: i32
) -> Pin<Box<dyn Future<Output = bool> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn all_names<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Vec<String, Global>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn table_fmt<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = String> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn spus_in_rack_count<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn live_spu_rack_map_sorted<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Vec<(String, Vec<i32, Global>), Global>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

#[must_use]pub fn online_spu_rack_map<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = BTreeMap<String, Vec<i32, Global>>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

pub fn online_spus_in_rack(
    rack_map: &[(String, Vec<i32, Global>)]
) -> Vec<i32, Global>

#[must_use]pub fn all_spus_to_spu_msgs<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Vec<Message<SpuSpec>, Global>> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    Self: 'async_trait, 

pub fn quick(spus: Vec<(i32, bool, Option<String>), Global>) -> Self

Loading content...

Implementors

impl<C> SpuLocalStorePolicy<C> for LocalStore<SpuSpec, C> where
    C: MetadataItem + Send + Sync

pub fn online_spu_count<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    LocalStore<SpuSpec, C>: 'async_trait, 

count online SPUs

pub fn spu_used_for_replica<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    LocalStore<SpuSpec, C>: 'async_trait, 

count spus that can be used for replica

pub fn spus_in_rack_count<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = i32> + 'async_trait + Send, Global>> where
    'life0: 'async_trait,
    LocalStore<SpuSpec, C>: 'async_trait, 

number of spus in rack count

Loading content...