pub enum MBeanAddress {
Address(String),
ServiceUrl(String),
}
Expand description
Address of a remote JMX server.
Variants§
Implementations§
Source§impl MBeanAddress
impl MBeanAddress
Sourcepub fn address<S>(address: S) -> MBeanAddress
pub fn address<S>(address: S) -> MBeanAddress
Connected to the remote “host:port” JMX server.
This method connects to a remote server using the RMI protocol and the default RMI path “/jndi/rmi://{host}:{port}/jmxrmi”.
Sourcepub fn for_java(self, jvm: &Jvm) -> Result<Instance>
pub fn for_java(self, jvm: &Jvm) -> Result<Instance>
Create a Java javax.management.remote.JMXServiceURL
instance.
Sourcepub fn service_url<S>(service_url: S) -> MBeanAddress
pub fn service_url<S>(service_url: S) -> MBeanAddress
Connected to the remote JMX server by ServiceUrl.
Trait Implementations§
Source§impl Clone for MBeanAddress
impl Clone for MBeanAddress
Source§fn clone(&self) -> MBeanAddress
fn clone(&self) -> MBeanAddress
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MBeanAddress
impl Debug for MBeanAddress
Source§impl<'de> Deserialize<'de> for MBeanAddress
impl<'de> Deserialize<'de> for MBeanAddress
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for MBeanAddress
impl Hash for MBeanAddress
Source§impl Ord for MBeanAddress
impl Ord for MBeanAddress
Source§fn cmp(&self, other: &MBeanAddress) -> Ordering
fn cmp(&self, other: &MBeanAddress) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MBeanAddress
impl PartialEq for MBeanAddress
Source§impl PartialOrd for MBeanAddress
impl PartialOrd for MBeanAddress
Source§impl Serialize for MBeanAddress
impl Serialize for MBeanAddress
impl Eq for MBeanAddress
impl StructuralPartialEq for MBeanAddress
Auto Trait Implementations§
impl Freeze for MBeanAddress
impl RefUnwindSafe for MBeanAddress
impl Send for MBeanAddress
impl Sync for MBeanAddress
impl Unpin for MBeanAddress
impl UnwindSafe for MBeanAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more