Struct tikv::server::status_server::StatusServer [−][src]
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]
T: Into<Body>,
impl<E, R> StatusServer<E, R> where
E: 'static,
R: 'static + Send, [src]
E: 'static,
R: 'static + Send,
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]
status_thread_pool_size: usize,
pd_client: Option<Arc<RpcClient>>,
cfg_controller: ConfigController,
security_config: Arc<SecurityConfig>,
router: R
) -> Result<Self>
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]
req: Request<Body>,
cfg_controller: &ConfigController
) -> Result<Response<Body>>
async fn update_config(
cfg_controller: ConfigController,
req: Request<Body>
) -> Result<Response<Body>>[src]
cfg_controller: ConfigController,
req: Request<Body>
) -> Result<Response<Body>>
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]
C: Connect + Clone + Send + Sync + 'static,
fn unregister_addr(&mut self)[src]
fn unregister_addr_core<C>(&mut self, conn: C) where
C: Connect + Clone + Send + Sync + 'static, [src]
C: Connect + Clone + Send + Sync + 'static,
impl<E, R> StatusServer<E, R> where
E: KvEngine,
R: 'static + Send + CasualRouter<E> + Clone, [src]
E: KvEngine,
R: 'static + Send + CasualRouter<E> + Clone,
pub async fn dump_region_meta(
req: Request<Body>,
router: R
) -> Result<Response<Body>>[src]
req: Request<Body>,
router: R
) -> Result<Response<Body>>
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]
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,
pub fn start(
&mut self,
status_addr: String,
advertise_status_addr: String
) -> Result<()>[src]
&mut self,
status_addr: String,
advertise_status_addr: String
) -> Result<()>
Auto Trait Implementations
impl<E, R> !RefUnwindSafe for StatusServer<E, R>
impl<E, R> Send for StatusServer<E, R> where
E: Send,
R: Send,
E: Send,
R: Send,
impl<E, R> Sync for StatusServer<E, R> where
E: Sync,
R: Sync,
E: Sync,
R: Sync,
impl<E, R> Unpin for StatusServer<E, R> where
E: Unpin,
R: Unpin,
E: Unpin,
R: Unpin,
impl<E, R> !UnwindSafe for StatusServer<E, R>
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,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<V, W> ConvertFrom<W> for V where
W: ConvertTo<V>, [src]
W: ConvertTo<V>,
pub fn convert_from(ctx: &mut EvalContext, from: W) -> Result<V, Error>[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T[src]
pub const ALIGN: usize[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T[src]
pub unsafe fn drop(ptr: usize)[src]
impl<T> Pointable for T[src]
pub const ALIGN: usize[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T[src]
pub unsafe fn drop(ptr: usize)[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>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,