Package com.oracle.bmc.jms.model
Class RequestJfrRecordingsDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.jms.model.RequestJfrRecordingsDetails.Builder
-
- Enclosing class:
- RequestJfrRecordingsDetails
public static class RequestJfrRecordingsDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
targets
public RequestJfrRecordingsDetails.Builder targets(List<JfrAttachmentTarget> targets)
The attachment targets to start JFR.- Parameters:
targets
- the value to set- Returns:
- this builder
-
jfcProfileName
public 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.
- Parameters:
jfcProfileName
- the value to set- Returns:
- this builder
-
jfcV1
public RequestJfrRecordingsDetails.Builder jfcV1(String jfcV1)
The BASE64 encoded string of JFR settings XML with schema used by JDK 8.- Parameters:
jfcV1
- the value to set- Returns:
- this builder
-
jfcV2
public RequestJfrRecordingsDetails.Builder jfcV2(String jfcV2)
The BASE64 encoded string of JFR settings XML with schema used by JDK 9 and after.- Parameters:
jfcV2
- the value to set- Returns:
- this builder
-
recordingDurationInMinutes
public RequestJfrRecordingsDetails.Builder recordingDurationInMinutes(Integer recordingDurationInMinutes)
Duration of the JFR recording in minutes.- Parameters:
recordingDurationInMinutes
- the value to set- Returns:
- this builder
-
recordingSizeInMb
public RequestJfrRecordingsDetails.Builder recordingSizeInMb(Integer recordingSizeInMb)
The maximum size limit for the JFR file collected.- Parameters:
recordingSizeInMb
- the value to set- Returns:
- this builder
-
waitingPeriodInMinutes
public 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.
- Parameters:
waitingPeriodInMinutes
- the value to set- Returns:
- this builder
-
build
public RequestJfrRecordingsDetails build()
-
copy
public RequestJfrRecordingsDetails.Builder copy(RequestJfrRecordingsDetails model)
-
-