Trait MBeanClientTrait

Source
pub trait MBeanClientTrait {
    // Required methods
    fn get_attribute<S1, S2, T>(&self, mbean: S1, attribute: S2) -> Result<T>
       where S1: Into<String>,
             S2: Into<String>,
             T: DeserializeOwned;
    fn get_mbean_info<S>(&self, mbean: S) -> Result<MBeanInfo>
       where S: Into<String>;
    fn query_names<S1, S2>(&self, name: S1, query: S2) -> Result<Vec<String>>
       where S1: Into<String>,
             S2: Into<String>;
}
Expand description

Trait definition for all MBean clients.

Required Methods§

Source

fn get_attribute<S1, S2, T>(&self, mbean: S1, attribute: S2) -> Result<T>
where S1: Into<String>, S2: Into<String>, T: DeserializeOwned,

Get the value of a specific MBean attribute.

Source

fn get_mbean_info<S>(&self, mbean: S) -> Result<MBeanInfo>
where S: Into<String>,

Get information about an MBean.

Source

fn query_names<S1, S2>(&self, name: S1, query: S2) -> Result<Vec<String>>
where S1: Into<String>, S2: Into<String>,

Query for the names of MBeans on the JMX server.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§