Class MBeanConnectionFactory


  • public class MBeanConnectionFactory
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      MBeanConnectionFactory​(java.lang.String jmxHost, int jmxPort)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.management.MBeanServerConnection awaitConnection​(com.newrelic.telemetry.Backoff backoff)
      Obtain a connection to the MBean Server, retrying on error according to the backoff policy.
      static com.newrelic.telemetry.Backoff waitForeverBackoff()
      Obtain a backoff instance which will wait indefinitely.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MBeanConnectionFactory

        public MBeanConnectionFactory​(java.lang.String jmxHost,
                                      int jmxPort)
    • Method Detail

      • awaitConnection

        public javax.management.MBeanServerConnection awaitConnection​(com.newrelic.telemetry.Backoff backoff)
                                                               throws java.io.IOException
        Obtain a connection to the MBean Server, retrying on error according to the backoff policy.
        Parameters:
        backoff - the backoff policy
        Returns:
        the connection
        Throws:
        java.io.IOException - if unable to obtain a connection after backing off
      • waitForeverBackoff

        public static com.newrelic.telemetry.Backoff waitForeverBackoff()
        Obtain a backoff instance which will wait indefinitely.
        Returns:
        the backoff instance