Class RequestJfrRecordingsDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • 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
      • 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