Struct raftstore::store::worker::pd::Runner[][src]

pub struct Runner<EK, ER, T> where
    EK: KvEngine,
    ER: RaftEngine,
    T: PdClient + 'static, 
{ store_id: u64, pd_client: Arc<T>, router: RaftRouter<EK, ER>, region_peers: HashMap<u64, PeerStat>, store_stat: StoreStat, is_hb_receiver_scheduled: bool, start_ts: UnixSecs, scheduler: Scheduler<Task<EK>>, stats_monitor: StatsMonitor<EK>, concurrency_manager: ConcurrencyManager, snap_mgr: SnapManager, }

Fields

store_id: u64pd_client: Arc<T>router: RaftRouter<EK, ER>region_peers: HashMap<u64, PeerStat>store_stat: StoreStatis_hb_receiver_scheduled: boolstart_ts: UnixSecsscheduler: Scheduler<Task<EK>>stats_monitor: StatsMonitor<EK>concurrency_manager: ConcurrencyManagersnap_mgr: SnapManager

Implementations

impl<EK, ER, T> Runner<EK, ER, T> where
    EK: KvEngine,
    ER: RaftEngine,
    T: PdClient + 'static, 
[src]

const INTERVAL_DIVISOR: u32[src]

pub fn new(
    store_id: u64,
    pd_client: Arc<T>,
    router: RaftRouter<EK, ER>,
    scheduler: Scheduler<Task<EK>>,
    store_heartbeat_interval: Duration,
    auto_split_controller: AutoSplitController,
    concurrency_manager: ConcurrencyManager,
    snap_mgr: SnapManager
) -> Runner<EK, ER, T>
[src]

fn handle_ask_split(
    &self,
    region: Region,
    split_key: Vec<u8>,
    peer: Peer,
    right_derive: bool,
    callback: Callback<EK::Snapshot>,
    task: String
)
[src]

fn handle_ask_batch_split(
    router: RaftRouter<EK, ER>,
    scheduler: Scheduler<Task<EK>>,
    pd_client: Arc<T>,
    region: Region,
    split_keys: Vec<Vec<u8>>,
    peer: Peer,
    right_derive: bool,
    callback: Callback<EK::Snapshot>,
    task: String
)
[src]

fn handle_heartbeat(
    &self,
    term: u64,
    region: Region,
    peer: Peer,
    region_stat: RegionStat,
    replication_status: Option<RegionReplicationStatus>
)
[src]

fn handle_store_heartbeat(
    &mut self,
    stats: StoreStats,
    store_info: StoreInfo<EK>
)
[src]

fn handle_report_batch_split(&self, regions: Vec<Region>)[src]

fn handle_validate_peer(&self, local_region: Region, peer: Peer)[src]

fn schedule_heartbeat_receiver(&mut self)[src]

fn handle_read_stats(&mut self, read_stats: ReadStats)[src]

fn handle_destroy_peer(&mut self, region_id: u64)[src]

fn handle_store_infos(
    &mut self,
    cpu_usages: Vec<RecordPair>,
    read_io_rates: Vec<RecordPair>,
    write_io_rates: Vec<RecordPair>
)
[src]

fn handle_update_max_timestamp(
    &mut self,
    region_id: u64,
    initial_status: u64,
    max_ts_sync_status: Arc<AtomicU64>
)
[src]

fn handle_query_region_leader(&self, region_id: u64)[src]

Trait Implementations

impl<EK, ER, T> Runnable<Task<EK>> for Runner<EK, ER, T> where
    EK: KvEngine,
    ER: RaftEngine,
    T: PdClient
[src]

Auto Trait Implementations

impl<EK, ER, T> !RefUnwindSafe for Runner<EK, ER, T>

impl<EK, ER, T> Send for Runner<EK, ER, T>

impl<EK, ER, T> !Sync for Runner<EK, ER, T>

impl<EK, ER, T> Unpin for Runner<EK, ER, T>

impl<EK, ER, T> !UnwindSafe for Runner<EK, ER, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]