public static class RequestJfrRecordingsDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
public RequestJfrRecordingsDetails.Builder targets(List<JfrAttachmentTarget> targets)
The attachment targets to start JFR.
targets
- the value to setpublic RequestJfrRecordingsDetails.Builder jfcProfileName(String jfcProfileName)
The profile used for JFR events selection. If the name isn’t recognized, the settings from jfcV1 or jfcV2 will be used depending on the JVM version. Both jfcV2 and jfcV1 should be provided to ensure JFR collection on different JVM versions.
jfcProfileName
- the value to setpublic RequestJfrRecordingsDetails.Builder jfcV1(String jfcV1)
The BASE64 encoded string of JFR settings XML with schema used by JDK 8.
jfcV1
- the value to setpublic RequestJfrRecordingsDetails.Builder jfcV2(String jfcV2)
The BASE64 encoded string of JFR settings XML with schema used by JDK 9 and after.
jfcV2
- the value to setpublic RequestJfrRecordingsDetails.Builder recordingDurationInMinutes(Integer recordingDurationInMinutes)
Duration of the JFR recording in minutes.
recordingDurationInMinutes
- the value to setpublic RequestJfrRecordingsDetails.Builder recordingSizeInMb(Integer recordingSizeInMb)
The maximum size limit for the JFR file collected.
recordingSizeInMb
- the value to setpublic RequestJfrRecordingsDetails.Builder waitingPeriodInMinutes(Integer waitingPeriodInMinutes)
Period to looking for JVMs. In addition to attach to running JVMs when given the command, JVM started within the waiting period will also be attached for JFR. The value should be larger than the agent polling interval setting for the fleet to ensure agent can get the instructions. If not specified, the agent polling interval for the fleet is used.
waitingPeriodInMinutes
- the value to setpublic RequestJfrRecordingsDetails build()
public RequestJfrRecordingsDetails.Builder copy(RequestJfrRecordingsDetails model)
Copyright © 2016–2024. All rights reserved.