Class InternalsImpl

  • All Implemented Interfaces:
    Internals

    public class InternalsImpl
    extends java.lang.Object
    implements Internals
    • Field Detail

      • SERIALIZED_APPLICATION_SERVER

        public static final java.lang.String SERIALIZED_APPLICATION_SERVER
        See Also:
        Constant Field Values
      • SERIALIZED_CAMUNDA_INTEGRATION

        public static final java.lang.String SERIALIZED_CAMUNDA_INTEGRATION
        See Also:
        Constant Field Values
      • SERIALIZED_LICENSE_KEY

        public static final java.lang.String SERIALIZED_LICENSE_KEY
        See Also:
        Constant Field Values
      • SERIALIZED_TELEMETRY_ENABLED

        public static final java.lang.String SERIALIZED_TELEMETRY_ENABLED
        See Also:
        Constant Field Values
      • SERIALIZED_TELEMETRY_DATA_COLLECTION_START_DATE

        public static final java.lang.String SERIALIZED_TELEMETRY_DATA_COLLECTION_START_DATE
        See Also:
        Constant Field Values
      • applicationServer

        @SerializedName("application-server")
        protected ApplicationServerImpl applicationServer
      • camundaIntegration

        @SerializedName("camunda-integration")
        protected java.util.Set<java.lang.String> camundaIntegration
      • dataCollectionStartDate

        @SerializedName("data-collection-start-date")
        protected java.util.Date dataCollectionStartDate
      • commands

        protected java.util.Map<java.lang.String,​Command> commands
      • metrics

        protected java.util.Map<java.lang.String,​Metric> metrics
      • webapps

        protected java.util.Set<java.lang.String> webapps
      • telemetryEnabled

        @SerializedName("telemetry-enabled")
        protected java.lang.Boolean telemetryEnabled
    • Method Detail

      • setDatabase

        public void setDatabase​(DatabaseImpl database)
      • getDataCollectionStartDate

        public java.util.Date getDataCollectionStartDate()
        Description copied from interface: Internals
        The date when the engine started to collect dynamic data, such as command executions and metrics. If telemetry sending is enabled, dynamic data resets on sending the data to Camunda. This method returns a date that represents the date and time when the dynamic data collected for telemetry is reset. Dynamic data and the date returned by this method are reset in three cases:
        • At engine startup, the date is set to the current time, even if telemetry is disabled. It is then only used by the telemetry Query API that returns the currently collected data but sending telemetry to Camunda is disabled.
        • When sending telemetry to Camunda is enabled after engine start via API (e.g., ManagementService.toggleTelemetry(boolean). This call causes the engine to wipe all dynamic data and therefore the collection date is reset to the current time.
        • When sending telemetry to Camunda is enabled, after sending the data, all existing dynamic data is wiped and therefore the collection date is reset to the current time.
        Specified by:
        getDataCollectionStartDate in interface Internals
        Returns:
        A date that represents the start of the time frame where the current telemetry data set was collected.
      • setDataCollectionStartDate

        public void setDataCollectionStartDate​(java.util.Date dataCollectionStartDate)
      • getCommands

        public java.util.Map<java.lang.String,​Command> getCommands()
        Description copied from interface: Internals
        Information about the number of command executions performed by the Camunda engine. If telemetry sending is enabled, the number of executions per command resets on sending the data to Camunda. Retrieving the data through ManagementService.getTelemetryData() will not reset the count.
        Specified by:
        getCommands in interface Internals
      • setCommands

        public void setCommands​(java.util.Map<java.lang.String,​Command> commands)
      • putCommand

        public void putCommand​(java.lang.String commandName,
                               int count)
      • getMetrics

        public java.util.Map<java.lang.String,​Metric> getMetrics()
        Description copied from interface: Internals
        A selection of metrics collected by the engine. Metrics included are:
        • The number of root process instance executions started.
        • The number of activity instances started or also known as flow node instances.
        • The number of executed decision instances.
        • The number of executed decision elements.
        The metrics reset on sending the data to Camunda. Retrieving the data through ManagementService.getTelemetryData() will not reset the count.
        Specified by:
        getMetrics in interface Internals
      • setMetrics

        public void setMetrics​(java.util.Map<java.lang.String,​Metric> metrics)
      • putMetric

        public void putMetric​(java.lang.String metricName,
                              int count)
      • mergeDynamicData

        public void mergeDynamicData​(InternalsImpl other)
      • getJdk

        public JdkImpl getJdk()
        Description copied from interface: Internals
        Information about the installed Java runtime environment.
        Specified by:
        getJdk in interface Internals
      • setJdk

        public void setJdk​(JdkImpl jdk)
      • getCamundaIntegration

        public java.util.Set<java.lang.String> getCamundaIntegration()
        Description copied from interface: Internals
        Used Camunda integrations (e.g, Spring boot starter, Camunda Platform Run, WildFly/JBoss subsystem or Camunda EJB service).
        Specified by:
        getCamundaIntegration in interface Internals
      • setCamundaIntegration

        public void setCamundaIntegration​(java.util.Set<java.lang.String> camundaIntegration)
      • getLicenseKey

        public LicenseKeyDataImpl getLicenseKey()
        Description copied from interface: Internals
        Information about the Camunda license key issued for enterprise editions of Camunda Platform. May be null when no license is used.
        Specified by:
        getLicenseKey in interface Internals
      • isTelemetryEnabled

        public java.lang.Boolean isTelemetryEnabled()
      • setTelemetryEnabled

        public void setTelemetryEnabled​(java.lang.Boolean telemetryEnabled)
      • getWebapps

        public java.util.Set<java.lang.String> getWebapps()
        Description copied from interface: Internals
        Webapps enabled in the Camunda installation (e.g., cockpit, admin, tasklist).
        Specified by:
        getWebapps in interface Internals
      • setWebapps

        public void setWebapps​(java.util.Set<java.lang.String> webapps)