Tabnine Logo
CleanableHistoricBatchReportResult.getHistoryTimeToLive
Code IndexAdd Tabnine to your IDE (free)

How to use
getHistoryTimeToLive
method
in
org.camunda.bpm.engine.history.CleanableHistoricBatchReportResult

Best Java code snippets using org.camunda.bpm.engine.history.CleanableHistoricBatchReportResult.getHistoryTimeToLive (Showing top 8 results out of 315)

origin: camunda/camunda-bpm-platform

public static List<CleanableHistoricBatchReportResultDto> convert(List<CleanableHistoricBatchReportResult> reportResult) {
 List<CleanableHistoricBatchReportResultDto> dtos = new ArrayList<CleanableHistoricBatchReportResultDto>();
 for (CleanableHistoricBatchReportResult current : reportResult) {
  CleanableHistoricBatchReportResultDto dto = new CleanableHistoricBatchReportResultDto();
  dto.setBatchType(current.getBatchType());
  dto.setHistoryTimeToLive(current.getHistoryTimeToLive());
  dto.setFinishedBatchesCount(current.getFinishedBatchesCount());
  dto.setCleanableBatchesCount(current.getCleanableBatchesCount());
  dtos.add(dto);
 }
 return dtos;
}
origin: camunda/camunda-bpm-platform

public static List<CleanableHistoricBatchReportResultDto> convert(List<CleanableHistoricBatchReportResult> reportResult) {
 List<CleanableHistoricBatchReportResultDto> dtos = new ArrayList<CleanableHistoricBatchReportResultDto>();
 for (CleanableHistoricBatchReportResult current : reportResult) {
  CleanableHistoricBatchReportResultDto dto = new CleanableHistoricBatchReportResultDto();
  dto.setBatchType(current.getBatchType());
  dto.setHistoryTimeToLive(current.getHistoryTimeToLive());
  dto.setFinishedBatchesCount(current.getFinishedBatchesCount());
  dto.setCleanableBatchesCount(current.getCleanableBatchesCount());
  dtos.add(dto);
 }
 return dtos;
}
origin: camunda/camunda-bpm-platform

private void setupHistoryReportMock() {
 CleanableHistoricBatchReport report = mock(CleanableHistoricBatchReport.class);
 CleanableHistoricBatchReportResult reportResult = mock(CleanableHistoricBatchReportResult.class);
 when(reportResult.getBatchType()).thenReturn(EXAMPLE_TYPE);
 when(reportResult.getHistoryTimeToLive()).thenReturn(EXAMPLE_TTL);
 when(reportResult.getFinishedBatchesCount()).thenReturn(EXAMPLE_FINISHED_COUNT);
 when(reportResult.getCleanableBatchesCount()).thenReturn(EXAMPLE_CLEANABLE_COUNT);
 CleanableHistoricBatchReportResult anotherReportResult = mock(CleanableHistoricBatchReportResult.class);
 when(anotherReportResult.getBatchType()).thenReturn("batchId2");
 when(anotherReportResult.getHistoryTimeToLive()).thenReturn(null);
 when(anotherReportResult.getFinishedBatchesCount()).thenReturn(13l);
 when(anotherReportResult.getCleanableBatchesCount()).thenReturn(0l);
 List<CleanableHistoricBatchReportResult> mocks = new ArrayList<CleanableHistoricBatchReportResult>();
 mocks.add(reportResult);
 mocks.add(anotherReportResult);
 when(report.list()).thenReturn(mocks);
 when(report.count()).thenReturn((long) mocks.size());
 historicBatchReport = report;
 when(processEngine.getHistoryService().createCleanableHistoricBatchReport()).thenReturn(historicBatchReport);
}
origin: camunda/camunda-bpm-platform

private void checkResultNumbers(CleanableHistoricBatchReportResult result, int expectedCleanable, int expectedFinished, Integer expectedTTL) {
 assertEquals(expectedCleanable, result.getCleanableBatchesCount());
 assertEquals(expectedFinished, result.getFinishedBatchesCount());
 assertEquals(expectedTTL, result.getHistoryTimeToLive());
}
origin: camunda/camunda-bpm-platform

private void checkResultNumbers(CleanableHistoricBatchReportResult result, int expectedCleanable, int expectedFinished, Integer expectedTTL) {
 assertEquals(expectedCleanable, result.getCleanableBatchesCount());
 assertEquals(expectedFinished, result.getFinishedBatchesCount());
 assertEquals(expectedTTL, result.getHistoryTimeToLive());
}
origin: org.camunda.bpm/camunda-engine-rest-jaxrs2

public static List<CleanableHistoricBatchReportResultDto> convert(List<CleanableHistoricBatchReportResult> reportResult) {
 List<CleanableHistoricBatchReportResultDto> dtos = new ArrayList<CleanableHistoricBatchReportResultDto>();
 for (CleanableHistoricBatchReportResult current : reportResult) {
  CleanableHistoricBatchReportResultDto dto = new CleanableHistoricBatchReportResultDto();
  dto.setBatchType(current.getBatchType());
  dto.setHistoryTimeToLive(current.getHistoryTimeToLive());
  dto.setFinishedBatchesCount(current.getFinishedBatchesCount());
  dto.setCleanableBatchesCount(current.getCleanableBatchesCount());
  dtos.add(dto);
 }
 return dtos;
}
origin: org.camunda.bpm/camunda-engine

private void checkResultNumbers(CleanableHistoricBatchReportResult result, int expectedCleanable, int expectedFinished, Integer expectedTTL) {
 assertEquals(expectedCleanable, result.getCleanableBatchesCount());
 assertEquals(expectedFinished, result.getFinishedBatchesCount());
 assertEquals(expectedTTL, result.getHistoryTimeToLive());
}
origin: org.camunda.bpm/camunda-engine

private void checkResultNumbers(CleanableHistoricBatchReportResult result, int expectedCleanable, int expectedFinished, Integer expectedTTL) {
 assertEquals(expectedCleanable, result.getCleanableBatchesCount());
 assertEquals(expectedFinished, result.getFinishedBatchesCount());
 assertEquals(expectedTTL, result.getHistoryTimeToLive());
}
org.camunda.bpm.engine.historyCleanableHistoricBatchReportResultgetHistoryTimeToLive

Javadoc

Returns the history time to live for the selected batch type.

Popular methods of CleanableHistoricBatchReportResult

  • getBatchType
    Returns the batch type.
  • getCleanableBatchesCount
    Returns the amount of cleanable historic batches.
  • getFinishedBatchesCount
    Returns the amount of finished historic batches.

Popular in Java

  • Running tasks concurrently on multiple threads
  • getApplicationContext (Context)
  • setContentView (Activity)
  • compareTo (BigDecimal)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now