Class SetupUtils


  • public class SetupUtils
    extends java.lang.Object
    • Method Detail

      • buildCommonAttributes

        public static com.newrelic.telemetry.Attributes buildCommonAttributes​(DaemonConfig config)
        Build a base set of common attributes.
        Parameters:
        config - the daemon config
        Returns:
        the attributes
      • buildConfig

        public static DaemonConfig buildConfig()
        Parse the environment and build a config instance.
        Returns:
        the config
      • buildDynamicAttachConfig

        public static DaemonConfig buildDynamicAttachConfig​(java.lang.String agentArgs)
      • buildUploader

        public static JFRUploader buildUploader​(DaemonConfig config)
        Build a JFRUploader with the config.
        Parameters:
        config - the config
        Returns:
        the uploader
      • buildJfrController

        public static JfrController buildJfrController​(DaemonConfig config,
                                                       JFRUploader uploader)
        Build a JfrController with the config and uploader.

        This method is called by the New Relic Java Agent.

        Parameters:
        config - the config
        uploader - the uploader
        Returns:
        the JfrController