Struct test_raftstore::server::ServerCluster[][src]

pub struct ServerCluster {
    metas: HashMap<u64, ServerMeta>,
    addrs: AddressMap,
    pub storages: HashMap<u64, SimulateEngine>,
    pub region_info_accessors: HashMap<u64, RegionInfoAccessor>,
    pub importers: HashMap<u64, Arc<SSTImporter>>,
    pub pending_services: HashMap<u64, Vec<Box<dyn Fn() -> Service>>>,
    pub coprocessor_hooks: HashMap<u64, Vec<Box<dyn Fn(&mut CoprocessorHost<RocksEngine>)>>>,
    pub security_mgr: Arc<SecurityManager>,
    pub 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>,
}

Fields

metas: HashMap<u64, ServerMeta>addrs: AddressMapstorages: 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]

pub fn get_gc_worker(
    &self,
    node_id: u64
) -> &GcWorker<RaftKv<RocksEngine, SimulateTransport<ServerRaftStoreRouter<RocksEngine, RocksEngine>>>, SimulateTransport<ServerRaftStoreRouter<RocksEngine, RocksEngine>>>
[src]

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]

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]