Codota Logo
CachePurgeReport.getPurgeReportAsString
Code IndexAdd Codota 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)

  • Common ways to obtain CachePurgeReport
private void myMethod () {
CachePurgeReport c =
  • Codota IconPurgeReport purgeReport;purgeReport.getCachePurgeReport()
  • Smart code suggestions by Codota
}
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

  • Running tasks concurrently on multiple threads
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getContentResolver (Context)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now