Class InternalsImpl
- java.lang.Object
-
- org.camunda.bpm.engine.impl.telemetry.dto.InternalsImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected ApplicationServerImpl
applicationServer
protected Set<String>
camundaIntegration
protected Map<String,Command>
commands
protected DatabaseImpl
database
protected Date
dataCollectionStartDate
protected JdkImpl
jdk
protected LicenseKeyDataImpl
licenseKey
protected Map<String,Metric>
metrics
static String
SERIALIZED_APPLICATION_SERVER
static String
SERIALIZED_CAMUNDA_INTEGRATION
static String
SERIALIZED_LICENSE_KEY
static String
SERIALIZED_TELEMETRY_DATA_COLLECTION_START_DATE
static String
SERIALIZED_TELEMETRY_ENABLED
protected Boolean
telemetryEnabled
protected Set<String>
webapps
-
Constructor Summary
Constructors Constructor Description InternalsImpl()
InternalsImpl(DatabaseImpl database, ApplicationServerImpl server, LicenseKeyDataImpl licenseKey, JdkImpl jdk)
InternalsImpl(InternalsImpl internals)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationServerImpl
getApplicationServer()
Information about the application server Camunda is running on.Set<String>
getCamundaIntegration()
Used Camunda integrations (e.g, Spring boot starter, Camunda Platform Run, WildFly/JBoss subsystem or Camunda EJB service).Map<String,Command>
getCommands()
Information about the number of command executions performed by the Camunda engine.DatabaseImpl
getDatabase()
Information about the connected database system.Date
getDataCollectionStartDate()
The date when the engine started to collect dynamic data, such as command executions and metrics.JdkImpl
getJdk()
Information about the installed Java runtime environment.LicenseKeyDataImpl
getLicenseKey()
Information about the Camunda license key issued for enterprise editions of Camunda Platform.Map<String,Metric>
getMetrics()
A selection of metrics collected by the engine.Set<String>
getWebapps()
Webapps enabled in the Camunda installation (e.g., cockpit, admin, tasklist).Boolean
isTelemetryEnabled()
void
mergeDynamicData(InternalsImpl other)
void
putCommand(String commandName, int count)
void
putMetric(String metricName, int count)
void
setApplicationServer(ApplicationServerImpl applicationServer)
void
setCamundaIntegration(Set<String> camundaIntegration)
void
setCommands(Map<String,Command> commands)
void
setDatabase(DatabaseImpl database)
void
setDataCollectionStartDate(Date dataCollectionStartDate)
void
setJdk(JdkImpl jdk)
void
setLicenseKey(LicenseKeyDataImpl licenseKey)
void
setMetrics(Map<String,Metric> metrics)
void
setTelemetryEnabled(Boolean telemetryEnabled)
void
setWebapps(Set<String> webapps)
-
-
-
Field Detail
-
SERIALIZED_APPLICATION_SERVER
public static final String SERIALIZED_APPLICATION_SERVER
- See Also:
- Constant Field Values
-
SERIALIZED_CAMUNDA_INTEGRATION
public static final String SERIALIZED_CAMUNDA_INTEGRATION
- See Also:
- Constant Field Values
-
SERIALIZED_LICENSE_KEY
public static final String SERIALIZED_LICENSE_KEY
- See Also:
- Constant Field Values
-
SERIALIZED_TELEMETRY_ENABLED
public static final String SERIALIZED_TELEMETRY_ENABLED
- See Also:
- Constant Field Values
-
SERIALIZED_TELEMETRY_DATA_COLLECTION_START_DATE
public static final String SERIALIZED_TELEMETRY_DATA_COLLECTION_START_DATE
- See Also:
- Constant Field Values
-
database
protected DatabaseImpl database
-
applicationServer
@SerializedName("application-server") protected ApplicationServerImpl applicationServer
-
licenseKey
@SerializedName("license-key") protected LicenseKeyDataImpl licenseKey
-
dataCollectionStartDate
@SerializedName("data-collection-start-date") protected Date dataCollectionStartDate
-
jdk
protected JdkImpl jdk
-
telemetryEnabled
@SerializedName("telemetry-enabled") protected Boolean telemetryEnabled
-
-
Constructor Detail
-
InternalsImpl
public InternalsImpl()
-
InternalsImpl
public InternalsImpl(DatabaseImpl database, ApplicationServerImpl server, LicenseKeyDataImpl licenseKey, JdkImpl jdk)
-
InternalsImpl
public InternalsImpl(InternalsImpl internals)
-
-
Method Detail
-
getDatabase
public DatabaseImpl getDatabase()
Description copied from interface:Internals
Information about the connected database system.- Specified by:
getDatabase
in interfaceInternals
-
setDatabase
public void setDatabase(DatabaseImpl database)
-
getApplicationServer
public ApplicationServerImpl getApplicationServer()
Description copied from interface:Internals
Information about the application server Camunda is running on.- Specified by:
getApplicationServer
in interfaceInternals
-
setApplicationServer
public void setApplicationServer(ApplicationServerImpl applicationServer)
-
getDataCollectionStartDate
public 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 interfaceInternals
- Returns:
- A date that represents the start of the time frame where the current telemetry data set was collected.
-
setDataCollectionStartDate
public void setDataCollectionStartDate(Date dataCollectionStartDate)
-
getCommands
public Map<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 throughManagementService.getTelemetryData()
will not reset the count.- Specified by:
getCommands
in interfaceInternals
-
putCommand
public void putCommand(String commandName, int count)
-
getMetrics
public Map<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.
ManagementService.getTelemetryData()
will not reset the count.- Specified by:
getMetrics
in interfaceInternals
-
putMetric
public void putMetric(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.
-
setJdk
public void setJdk(JdkImpl jdk)
-
getCamundaIntegration
public Set<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 interfaceInternals
-
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 interfaceInternals
-
setLicenseKey
public void setLicenseKey(LicenseKeyDataImpl licenseKey)
-
isTelemetryEnabled
public Boolean isTelemetryEnabled()
-
setTelemetryEnabled
public void setTelemetryEnabled(Boolean telemetryEnabled)
-
getWebapps
public Set<String> getWebapps()
Description copied from interface:Internals
Webapps enabled in the Camunda installation (e.g., cockpit, admin, tasklist).- Specified by:
getWebapps
in interfaceInternals
-
-