Struct tikv::server::status_server::StatusServer[][src]

pub struct StatusServer<E, R> {
    thread_pool: Runtime,
    tx: Sender<()>,
    rx: Option<Receiver<()>>,
    addr: Option<SocketAddr>,
    advertise_addr: Option<String>,
    pd_client: Option<Arc<RpcClient>>,
    cfg_controller: ConfigController,
    router: R,
    security_config: Arc<SecurityConfig>,
    _snap: PhantomData<E>,
}

Fields

thread_pool: Runtimetx: Sender<()>rx: Option<Receiver<()>>addr: Option<SocketAddr>advertise_addr: Option<String>pd_client: Option<Arc<RpcClient>>cfg_controller: ConfigControllerrouter: Rsecurity_config: Arc<SecurityConfig>_snap: PhantomData<E>

Implementations

impl StatusServer<(), ()>[src]

fn extract_thread_name(thread_name: &str) -> String[src]

fn frames_post_processor() -> impl Fn(&mut Frames)[src]

fn err_response<T>(status_code: StatusCode, message: T) -> Response<Body> where
    T: Into<Body>, 
[src]

impl<E, R> StatusServer<E, R> where
    E: 'static,
    R: 'static + Send
[src]

pub fn new(
    status_thread_pool_size: usize,
    pd_client: Option<Arc<RpcClient>>,
    cfg_controller: ConfigController,
    security_config: Arc<SecurityConfig>,
    router: R
) -> Result<Self>
[src]

pub async fn dump_prof(seconds: u64) -> Result<Vec<u8>, ProfError>[src]

pub async fn dump_prof_to_resp(req: Request<Body>) -> Result<Response<Body>>[src]

async fn get_config(
    req: Request<Body>,
    cfg_controller: &ConfigController
) -> Result<Response<Body>>
[src]

async fn update_config(
    cfg_controller: ConfigController,
    req: Request<Body>
) -> Result<Response<Body>>
[src]

pub async fn dump_rsprof(seconds: u64, frequency: i32) -> Result<Report>[src]

pub async fn dump_rsperf_to_resp(req: Request<Body>) -> Result<Response<Body>>[src]

async fn change_log_level(req: Request<Body>) -> Result<Response<Body>>[src]

pub fn stop(self)[src]

pub fn listening_addr(&self) -> SocketAddr[src]

fn generate_ssl_connector(&self) -> Option<SslConnectorBuilder>[src]

fn register_addr(&mut self, advertise_addr: String)[src]

fn register_addr_core<C>(&mut self, conn: C, advertise_addr: String) where
    C: Connect + Clone + Send + Sync + 'static, 
[src]

fn unregister_addr(&mut self)[src]

fn unregister_addr_core<C>(&mut self, conn: C) where
    C: Connect + Clone + Send + Sync + 'static, 
[src]

impl<E, R> StatusServer<E, R> where
    E: KvEngine,
    R: 'static + Send + CasualRouter<E> + Clone
[src]

pub async fn dump_region_meta(
    req: Request<Body>,
    router: R
) -> Result<Response<Body>>
[src]

fn start_serve<I, C>(&mut self, builder: HyperBuilder<I>) where
    I: Accept<Conn = C, Error = Error> + Send + 'static,
    I::Error: Into<Box<dyn StdError + Send + Sync>>,
    I::Conn: AsyncRead + AsyncWrite + Unpin + Send + 'static,
    C: ServerConnection
[src]

pub fn start(
    &mut self,
    status_addr: String,
    advertise_status_addr: String
) -> Result<()>
[src]

Auto Trait Implementations

impl<E, R> !RefUnwindSafe for StatusServer<E, R>

impl<E, R> Send for StatusServer<E, R> where
    E: Send,
    R: Send

impl<E, R> Sync for StatusServer<E, R> where
    E: Sync,
    R: Sync

impl<E, R> Unpin for StatusServer<E, R> where
    E: Unpin,
    R: Unpin

impl<E, R> !UnwindSafe for StatusServer<E, R>

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]