Class MeterLogManager
- java.lang.Object
-
- org.camunda.bpm.engine.impl.persistence.AbstractManager
-
- org.camunda.bpm.engine.impl.persistence.entity.MeterLogManager
-
- All Implemented Interfaces:
Session
public class MeterLogManager extends AbstractManager
- Author:
- Daniel Meyer
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DELETE_ALL_METER
static java.lang.String
DELETE_ALL_METER_BY_TIMESTAMP_AND_REPORTER
static java.lang.String
DELETE_TASK_METER_BY_IDS
static java.lang.String
DELETE_TASK_METER_BY_REMOVAL_TIME
static java.lang.String
DELETE_TASK_METER_BY_TIMESTAMP
static java.lang.String
SELECT_METER_INTERVAL
static java.lang.String
SELECT_METER_SUM
static java.lang.String
SELECT_TASK_METER_FOR_CLEANUP
static java.lang.String
SELECT_UNIQUE_TASK_WORKER
-
Constructor Summary
Constructors Constructor Description MeterLogManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteAll()
void
deleteByTimestampAndReporter(java.util.Date timestamp, java.lang.String reporter)
void
deleteTaskMetricsById(java.util.List<java.lang.String> taskMetricIds)
DbOperation
deleteTaskMetricsByRemovalTime(java.util.Date currentTimestamp, java.lang.Integer timeToLive, int minuteFrom, int minuteTo, int batchSize)
void
deleteTaskMetricsByTimestamp(java.util.Date timestamp)
java.util.List<MetricIntervalValue>
executeSelectInterval(MetricsQueryImpl query)
java.lang.Long
executeSelectSum(MetricsQueryImpl query)
java.util.List<java.lang.String>
findTaskMetricsForCleanup(int batchSize, java.lang.Integer timeToLive, int minuteFrom, int minuteTo)
long
findUniqueTaskWorkerCount(java.util.Date startTime, java.util.Date endTime)
void
insert(MeterLogEntity meterLogEntity)
protected boolean
isEndTimeAfterLastReportInterval(MetricsQueryImpl query)
protected boolean
shouldAddCurrentUnloggedCount(MetricsQueryImpl query)
-
Methods inherited from class org.camunda.bpm.engine.impl.persistence.AbstractManager
checkAuthorization, close, configureQuery, delete, deleteAuthorizations, deleteAuthorizationsForGroup, deleteAuthorizationsForUser, deleteDefaultAuthorizations, flush, getAttachmentManager, getAuthorizationManager, getBatchManager, getByteArrayManager, getCamundaFormDefinitionManager, getCaseDefinitionManager, getCaseExecutionManager, getCaseInstanceManager, getCommandContext, getCurrentAuthentication, getDbEntityManager, getDbSqlSession, getDecisionDefinitionManager, getDecisionRequirementsDefinitionManager, getDeploymentManager, getEventSubscriptionManager, getHistoricActivityInstanceManager, getHistoricBatchManager, getHistoricCaseActivityInstanceManager, getHistoricCaseInstanceManager, getHistoricDecisionInstanceManager, getHistoricDetailManager, getHistoricExternalTaskLogManager, getHistoricIdentityLinkManager, getHistoricIncidentManager, getHistoricJobLogManager, getHistoricProcessInstanceManager, getHistoricReportManager, getHistoricTaskInstanceManager, getHistoricVariableInstanceManager, getIdentityInfoManager, getIdentityLinkManager, getJobDefinitionManager, getJobManager, getProcessDefinitionManager, getProcessInstanceManager, getResourceAuthorizationProvider, getResourceManager, getSession, getTaskManager, getTaskReportManager, getTenantManager, getUserOperationLogManager, getVariableInstanceManager, insert, isAuthorizationEnabled, saveDefaultAuthorizations
-
-
-
-
Field Detail
-
SELECT_METER_INTERVAL
public static final java.lang.String SELECT_METER_INTERVAL
- See Also:
- Constant Field Values
-
SELECT_METER_SUM
public static final java.lang.String SELECT_METER_SUM
- See Also:
- Constant Field Values
-
DELETE_ALL_METER
public static final java.lang.String DELETE_ALL_METER
- See Also:
- Constant Field Values
-
DELETE_ALL_METER_BY_TIMESTAMP_AND_REPORTER
public static final java.lang.String DELETE_ALL_METER_BY_TIMESTAMP_AND_REPORTER
- See Also:
- Constant Field Values
-
SELECT_UNIQUE_TASK_WORKER
public static final java.lang.String SELECT_UNIQUE_TASK_WORKER
- See Also:
- Constant Field Values
-
SELECT_TASK_METER_FOR_CLEANUP
public static final java.lang.String SELECT_TASK_METER_FOR_CLEANUP
- See Also:
- Constant Field Values
-
DELETE_TASK_METER_BY_TIMESTAMP
public static final java.lang.String DELETE_TASK_METER_BY_TIMESTAMP
- See Also:
- Constant Field Values
-
DELETE_TASK_METER_BY_REMOVAL_TIME
public static final java.lang.String DELETE_TASK_METER_BY_REMOVAL_TIME
- See Also:
- Constant Field Values
-
DELETE_TASK_METER_BY_IDS
public static final java.lang.String DELETE_TASK_METER_BY_IDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
insert
public void insert(MeterLogEntity meterLogEntity)
-
executeSelectSum
public java.lang.Long executeSelectSum(MetricsQueryImpl query)
-
executeSelectInterval
public java.util.List<MetricIntervalValue> executeSelectInterval(MetricsQueryImpl query)
-
isEndTimeAfterLastReportInterval
protected boolean isEndTimeAfterLastReportInterval(MetricsQueryImpl query)
-
shouldAddCurrentUnloggedCount
protected boolean shouldAddCurrentUnloggedCount(MetricsQueryImpl query)
-
deleteAll
public void deleteAll()
-
deleteByTimestampAndReporter
public void deleteByTimestampAndReporter(java.util.Date timestamp, java.lang.String reporter)
-
findUniqueTaskWorkerCount
public long findUniqueTaskWorkerCount(java.util.Date startTime, java.util.Date endTime)
-
deleteTaskMetricsByTimestamp
public void deleteTaskMetricsByTimestamp(java.util.Date timestamp)
-
deleteTaskMetricsById
public void deleteTaskMetricsById(java.util.List<java.lang.String> taskMetricIds)
-
deleteTaskMetricsByRemovalTime
public DbOperation deleteTaskMetricsByRemovalTime(java.util.Date currentTimestamp, java.lang.Integer timeToLive, int minuteFrom, int minuteTo, int batchSize)
-
findTaskMetricsForCleanup
public java.util.List<java.lang.String> findTaskMetricsForCleanup(int batchSize, java.lang.Integer timeToLive, int minuteFrom, int minuteTo)
-
-