Struct test_raftstore::ServerCluster [−][src]
Fields
metas: HashMap<u64, ServerMeta>
addrs: AddressMap
storages: HashMap<u64, SimulateEngine>
region_info_accessors: HashMap<u64, RegionInfoAccessor>
importers: HashMap<u64, Arc<SSTImporter>>
pending_services: HashMap<u64, Vec<Box<dyn Fn() -> Service>>>
coprocessor_hooks: HashMap<u64, Vec<Box<dyn Fn(&mut CoprocessorHost<RocksEngine>)>>>
security_mgr: Arc<SecurityManager>
txn_extra_schedulers: HashMap<u64, Arc<dyn TxnExtraScheduler>>
snap_paths: HashMap<u64, TempDir>
snap_mgrs: HashMap<u64, SnapManager>
pd_client: Arc<TestPdClient>
raft_client: RaftClient<AddressMap, RaftStoreBlackHole, RocksEngine>
concurrency_managers: HashMap<u64, ConcurrencyManager>
env: Arc<Environment>
Implementations
impl ServerCluster
[src][−]
pub fn new(pd_client: Arc<TestPdClient>) -> ServerCluster
[src]
pub fn get_addr(&self, node_id: u64) -> String
[src]
pub fn get_apply_router(&self, node_id: u64) -> ApplyRouter<RocksEngine>
[src]
pub fn get_server_router(
&self,
node_id: u64
) -> SimulateTransport<ServerRaftStoreRouter<RocksEngine, RocksEngine>>
[src]
&self,
node_id: u64
) -> SimulateTransport<ServerRaftStoreRouter<RocksEngine, RocksEngine>>
pub fn get_gc_worker(
&self,
node_id: u64
) -> &GcWorker<RaftKv<RocksEngine, SimulateTransport<ServerRaftStoreRouter<RocksEngine, RocksEngine>>>, SimulateTransport<ServerRaftStoreRouter<RocksEngine, RocksEngine>>>
[src][−]
&self,
node_id: u64
) -> &GcWorker<RaftKv<RocksEngine, SimulateTransport<ServerRaftStoreRouter<RocksEngine, RocksEngine>>>, SimulateTransport<ServerRaftStoreRouter<RocksEngine, RocksEngine>>>
To trigger GC manually.
pub fn get_concurrency_manager(&self, node_id: u64) -> ConcurrencyManager
[src]
pub fn start_resolved_ts_worker(&mut self)
[src]
Trait Implementations
impl Simulator for ServerCluster
[src][+]
Auto Trait Implementations
impl !RefUnwindSafe for ServerCluster
impl !Send for ServerCluster
impl !Sync for ServerCluster
impl Unpin for ServerCluster
impl !UnwindSafe for ServerCluster
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>,