Package com.newrelic.jfr.daemon
Class SetupUtils
- java.lang.Object
-
- com.newrelic.jfr.daemon.SetupUtils
-
public class SetupUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringHTTPSstatic java.lang.StringJFR_DAEMONstatic java.lang.StringPROXY_AUTHORIZATION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.newrelic.telemetry.AttributesbuildCommonAttributes(DaemonConfig config)Build a base set of common attributes.static DaemonConfigbuildConfig()Parse the environment and build a config instance.static DaemonConfigbuildDynamicAttachConfig(java.lang.String agentArgs)static JfrControllerbuildJfrController(DaemonConfig config, JFRUploader uploader)static JFRUploaderbuildUploader(DaemonConfig config)Build aJFRUploaderwith theconfig.
-
-
-
Field Detail
-
JFR_DAEMON
public static final java.lang.String JFR_DAEMON
- See Also:
- Constant Field Values
-
PROXY_AUTHORIZATION
public static final java.lang.String PROXY_AUTHORIZATION
- See Also:
- Constant Field Values
-
HTTPS
public static final java.lang.String HTTPS
- See Also:
- Constant Field Values
-
-
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 aJFRUploaderwith theconfig.- Parameters:
config- the config- Returns:
- the uploader
-
buildJfrController
public static JfrController buildJfrController(DaemonConfig config, JFRUploader uploader)
Build aJfrControllerwith theconfiganduploader.This method is called by the New Relic Java Agent.
- Parameters:
config- the configuploader- the uploader- Returns:
- the JfrController
-
-