Enum raftstore::store::PdTask [−][src]
pub enum PdTask<E> where
E: KvEngine, { AskSplit { region: Region, split_key: Vec<u8>, peer: Peer, right_derive: bool, callback: Callback<E::Snapshot>, }, AskBatchSplit { region: Region, split_keys: Vec<Vec<u8>>, peer: Peer, right_derive: bool, callback: Callback<E::Snapshot>, }, AutoSplit { split_infos: Vec<SplitInfo>, }, Heartbeat(HeartbeatTask), StoreHeartbeat { stats: StoreStats, store_info: StoreInfo<E>, }, ReportBatchSplit { regions: Vec<Region>, }, ValidatePeer { region: Region, peer: Peer, }, ReadStats { read_stats: ReadStats, }, DestroyPeer { region_id: u64, }, StoreInfos { cpu_usages: Vec<RecordPair>, read_io_rates: Vec<RecordPair>, write_io_rates: Vec<RecordPair>, }, UpdateMaxTimestamp { region_id: u64, initial_status: u64, max_ts_sync_status: Arc<AtomicU64>, }, QueryRegionLeader { region_id: u64, }, }
Uses an asynchronous thread to tell PD something.
Variants
Fields of AskSplit
Fields of AskBatchSplit
Heartbeat(HeartbeatTask)
Fields of StoreHeartbeat
stats: StoreStats
store_info: StoreInfo<E>
Fields of ReadStats
read_stats: ReadStats
Fields of DestroyPeer
region_id: u64
Fields of StoreInfos
Fields of QueryRegionLeader
region_id: u64
Trait Implementations
impl<E> Display for Task<E> where
E: KvEngine,
[src][+]
E: KvEngine,
impl<EK, ER, T> Runnable<Task<EK>> for Runner<EK, ER, T> where
EK: KvEngine,
ER: RaftEngine,
T: PdClient,
[src][+]
EK: KvEngine,
ER: RaftEngine,
T: PdClient,
Auto Trait Implementations
impl<E> !RefUnwindSafe for Task<E>
impl<E> Send for Task<E>
impl<E> !Sync for Task<E>
impl<E> Unpin for Task<E>
impl<E> !UnwindSafe for Task<E>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>,
[src][+]
W: ConvertTo<V>,
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][+]
U: From<T>,
impl<T> Pointable for T
[src][+]
impl<T> Pointable for T
[src][+]
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self
impl<T> Sealed<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> ToString for T where
T: Display + ?Sized,
[src][+]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src][+]
V: MultiLane<T>,