Struct raftstore::store::worker::pd::Runner [−][src]
Fields
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
Implementations
impl<EK, ER, T> Runner<EK, ER, T> where
EK: KvEngine,
ER: RaftEngine,
T: PdClient + 'static,
[src][−]
EK: KvEngine,
ER: RaftEngine,
T: PdClient + 'static,
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]
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>
fn handle_ask_split(
&self,
region: Region,
split_key: Vec<u8>,
peer: Peer,
right_derive: bool,
callback: Callback<EK::Snapshot>,
task: String
)
[src]
&self,
region: Region,
split_key: Vec<u8>,
peer: Peer,
right_derive: bool,
callback: Callback<EK::Snapshot>,
task: String
)
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]
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
)
fn handle_heartbeat(
&self,
term: u64,
region: Region,
peer: Peer,
region_stat: RegionStat,
replication_status: Option<RegionReplicationStatus>
)
[src]
&self,
term: u64,
region: Region,
peer: Peer,
region_stat: RegionStat,
replication_status: Option<RegionReplicationStatus>
)
fn handle_store_heartbeat(
&mut self,
stats: StoreStats,
store_info: StoreInfo<EK>
)
[src]
&mut self,
stats: StoreStats,
store_info: StoreInfo<EK>
)
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]
&mut self,
cpu_usages: Vec<RecordPair>,
read_io_rates: Vec<RecordPair>,
write_io_rates: Vec<RecordPair>
)
fn handle_update_max_timestamp(
&mut self,
region_id: u64,
initial_status: u64,
max_ts_sync_status: Arc<AtomicU64>
)
[src]
&mut self,
region_id: u64,
initial_status: u64,
max_ts_sync_status: Arc<AtomicU64>
)
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][+]
EK: KvEngine,
ER: RaftEngine,
T: PdClient,
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][+]
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, 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>,