Class JmxConnection

    • Constructor Detail

      • JmxConnection

        public JmxConnection()
    • Method Detail

      • mbeanServerConnection

        public javax.management.MBeanServerConnection mbeanServerConnection()
                                                                     throws CoreException
        Throws:
        CoreException
      • getJmxServiceUrl

        public java.lang.String getJmxServiceUrl()
        Returns:
        the jmxServiceUrl
      • setJmxServiceUrl

        public void setJmxServiceUrl​(java.lang.String s)
        Set the JMX ServiceURL.
        Parameters:
        s - the jmxServiceUrl to set; if not specified, then a local JMX connector is assumed.
      • getJmxProperties

        public KeyValuePairSet getJmxProperties()
        Returns:
        the jmxProperties
      • setJmxProperties

        public void setJmxProperties​(KeyValuePairSet s)
        Parameters:
        s - the additional jmx properties to set
      • getUsername

        public java.lang.String getUsername()
        Returns:
        the username
      • setUsername

        public void setUsername​(java.lang.String s)
        Set the username for accessing JMX.

        If both the username / password are set, then a jmx.remote.profiles="SASL/PLAIN" is added to the environment if it doesn't already exist.

        Parameters:
        s - the username to set
      • getPassword

        public java.lang.String getPassword()
        Returns:
        the password
      • setPassword

        public void setPassword​(java.lang.String s)
        Set the password.

        If both the username / password are set, then a jmx.remote.profiles="SASL/PLAIN" is added to the environment if it doesn't already exist.

        Parameters:
        s - the password to set
      • getAdditionalDebug

        public java.lang.Boolean getAdditionalDebug()
      • setAdditionalDebug

        public void setAdditionalDebug​(java.lang.Boolean b)
        Whether or not to generate additional TRACE level debug when attempting connections.
        Parameters:
        b - true to enable additional logging; default false.
      • additionalDebug

        protected boolean additionalDebug()
      • withJmxServiceUrl

        public JmxConnection withJmxServiceUrl​(java.lang.String s)
      • withUsername

        public JmxConnection withUsername​(java.lang.String s)
      • withPassword

        public JmxConnection withPassword​(java.lang.String s)
      • withAdditionalDebug

        public JmxConnection withAdditionalDebug​(java.lang.Boolean b)