congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
CachePurgeReport.getPurgeReportAsString
Code IndexAdd Tabnine to your IDE (free)

How to use
getPurgeReportAsString
method
in
org.camunda.bpm.engine.impl.persistence.deploy.cache.CachePurgeReport

Best Java code snippets using org.camunda.bpm.engine.impl.persistence.deploy.cache.CachePurgeReport.getPurgeReportAsString (Showing top 7 results out of 315)

origin: camunda/camunda-bpm-platform

/**
 * Ensures that the deployment cache is empty after a test. If not the cache
 * will be cleared.
 *
 * @param processEngine the {@link ProcessEngine} to test
 * @param fail if true the method will throw an {@link AssertionError} if the deployment cache is not clean
 * @return the deployment cache summary if fail is set to false or null if deployment cache was clean
 * @throws AssertionError if the deployment cache was not clean and fail is set to true
 */
public static String assertAndEnsureCleanDeploymentCache(ProcessEngine processEngine, boolean fail) {
 StringBuilder outputMessage = new StringBuilder();
 ProcessEngineConfigurationImpl processEngineConfiguration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration();
 CachePurgeReport cachePurgeReport = processEngineConfiguration.getDeploymentCache().purgeCache();
 outputMessage.append(cachePurgeReport.getPurgeReportAsString());
 if (outputMessage.length() > 0) {
  outputMessage.insert(0, "Deployment cache not clean:\n");
  LOG.error(outputMessage.toString());
  if (fail) {
   Assert.fail(outputMessage.toString());
  }
  return outputMessage.toString();
 }
 else {
  LOG.debug("Deployment cache was clean");
  return null;
 }
}
origin: camunda/camunda-bpm-platform

/**
 * Ensures that the deployment cache is empty after a test. If not the cache
 * will be cleared.
 *
 * @param processEngine the {@link ProcessEngine} to test
 * @param fail if true the method will throw an {@link AssertionError} if the deployment cache is not clean
 * @return the deployment cache summary if fail is set to false or null if deployment cache was clean
 * @throws AssertionError if the deployment cache was not clean and fail is set to true
 */
public static String assertAndEnsureCleanDeploymentCache(ProcessEngine processEngine, boolean fail) {
 StringBuilder outputMessage = new StringBuilder();
 ProcessEngineConfigurationImpl processEngineConfiguration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration();
 CachePurgeReport cachePurgeReport = processEngineConfiguration.getDeploymentCache().purgeCache();
 outputMessage.append(cachePurgeReport.getPurgeReportAsString());
 if (outputMessage.length() > 0) {
  outputMessage.insert(0, "Deployment cache not clean:\n");
  LOG.error(outputMessage.toString());
  if (fail) {
   Assert.fail(outputMessage.toString());
  }
  return outputMessage.toString();
 }
 else {
  LOG.debug("Deployment cache was clean");
  return null;
 }
}
origin: camunda/camunda-bpm-platform

builder.append(CACHE_IS_NOT_CLEAN).append(cachePurgeReport.getPurgeReportAsString());
origin: camunda/camunda-bpm-platform

if (!cachePurgeReport.isEmpty()) {
 message.append("Deployment cache is not clean:\n")
     .append(cachePurgeReport.getPurgeReportAsString());
} else {
 LOG.debug("Deployment cache was clean.");
origin: camunda/camunda-bpm-platform

if (!cachePurgeReport.isEmpty()) {
 message.append("Deployment cache is not clean:\n")
     .append(cachePurgeReport.getPurgeReportAsString());
} else {
 LOG.debug("Deployment cache was clean.");
origin: org.camunda.bpm/camunda-engine

/**
 * Ensures that the deployment cache is empty after a test. If not the cache
 * will be cleared.
 *
 * @param processEngine the {@link ProcessEngine} to test
 * @param fail if true the method will throw an {@link AssertionError} if the deployment cache is not clean
 * @return the deployment cache summary if fail is set to false or null if deployment cache was clean
 * @throws AssertionError if the deployment cache was not clean and fail is set to true
 */
public static String assertAndEnsureCleanDeploymentCache(ProcessEngine processEngine, boolean fail) {
 StringBuilder outputMessage = new StringBuilder();
 ProcessEngineConfigurationImpl processEngineConfiguration = ((ProcessEngineImpl) processEngine).getProcessEngineConfiguration();
 CachePurgeReport cachePurgeReport = processEngineConfiguration.getDeploymentCache().purgeCache();
 outputMessage.append(cachePurgeReport.getPurgeReportAsString());
 if (outputMessage.length() > 0) {
  outputMessage.insert(0, "Deployment cache not clean:\n");
  LOG.error(outputMessage.toString());
  if (fail) {
   Assert.fail(outputMessage.toString());
  }
  return outputMessage.toString();
 }
 else {
  LOG.debug("Deployment cache was clean");
  return null;
 }
}
origin: org.camunda.bpm/camunda-engine

if (!cachePurgeReport.isEmpty()) {
 message.append("Deployment cache is not clean:\n")
     .append(cachePurgeReport.getPurgeReportAsString());
} else {
 LOG.debug("Deployment cache was clean.");
org.camunda.bpm.engine.impl.persistence.deploy.cacheCachePurgeReportgetPurgeReportAsString

Popular methods of CachePurgeReport

  • getReportValue
  • isEmpty
  • <init>
  • addPurgeInformation

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • runOnUiThread (Activity)
  • getSystemService (Context)
  • Kernel (java.awt.image)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • JTextField (javax.swing)
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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