Tabnine Logo
DeployExecution.isRollback
Code IndexAdd Tabnine to your IDE (free)

How to use
isRollback
method
in
com.gs.obevo.api.appdata.DeployExecution

Best Java code snippets using com.gs.obevo.api.appdata.DeployExecution.isRollback (Showing top 9 results out of 315)

origin: com.goldmansachs.obevo/obevo-core

private void logDeployExecutions(ImmutableCollection<DeployExecution> deployExecutions, String message) {
  if (LOG.isInfoEnabled()) {
    LOG.info("Found {} {} for this schema", deployExecutions.size(), message);
    if (LOG.isDebugEnabled()) {
      for (DeployExecution deployExecution : deployExecutions.toSortedListBy(new Function<DeployExecution, Long>() {
        @Override
        public Long valueOf(DeployExecution deployExecution1) {
          return deployExecution1.getId();
        }
      })) {
        LOG.debug("Execution ID={}, Version Name={}, Deploy Time={}, Rollback={}",
            deployExecution.getId(), getDeployVersion(deployExecution), deployExecution.getDeployTime(), deployExecution.isRollback());
      }
    }
  }
}
origin: goldmansachs/obevo

private void logDeployExecutions(ImmutableCollection<DeployExecution> deployExecutions, String message) {
  if (LOG.isInfoEnabled()) {
    LOG.info("Found {} {} for this schema", deployExecutions.size(), message);
    if (LOG.isDebugEnabled()) {
      for (DeployExecution deployExecution : deployExecutions.toSortedListBy(new Function<DeployExecution, Long>() {
        @Override
        public Long valueOf(DeployExecution deployExecution1) {
          return deployExecution1.getId();
        }
      })) {
        LOG.debug("Execution ID={}, Version Name={}, Deploy Time={}, Rollback={}",
            deployExecution.getId(), getDeployVersion(deployExecution), deployExecution.getDeployTime(), deployExecution.isRollback());
      }
    }
  }
}
origin: goldmansachs/obevo

  private DeployExecution newExecution(long id, String versionName, boolean rollback) {
    DeployExecution exec = mock(DeployExecution.class);
    when(exec.getId()).thenReturn(id);
    when(exec.isRollback()).thenReturn(rollback);
    when(exec.getProductVersion()).thenReturn(versionName);

    return exec;
  }
}
origin: com.goldmansachs.obevo/obevo-mongodb

private Document getDocumentFromDeployExecution(DeployExecution deployExecution, boolean forUpdate) {
  ImmutableSet<Document> attrs = deployExecution.getAttributes().collect(new Function<DeployExecutionAttribute, Document>() {
    @Override
    public Document valueOf(DeployExecutionAttribute object) {
      return new Document()
          .append(attrNameColName, object.getName())
          .append(attrValueColName, object.getValue());
    }
  });
  return new Document()
      .append(idColName, deployExecution.getId())
      .append(requesterIdColName, deployExecution.getRequesterId())
      .append(deployExecutionIdColName, deployExecution.getExecutorId())
      .append(dbSchemaColName, deployExecution.getSchema())
      .append(toolVersionColName, deployExecution.getToolVersion())
      .append(deployTimeColName, new Date(deployExecution.getDeployTime().getTime()))
      .append(initCommandColName, deployExecution.isInit())
      .append(rollbackCommandColName, deployExecution.isRollback())
      .append(productVersionColName, deployExecution.getProductVersion())
      .append(reasonColName, deployExecution.getReason())
      .append("attrs", new ArrayList<>(attrs.toList()));
}
origin: goldmansachs/obevo

private Document getDocumentFromDeployExecution(DeployExecution deployExecution, boolean forUpdate) {
  ImmutableSet<Document> attrs = deployExecution.getAttributes().collect(new Function<DeployExecutionAttribute, Document>() {
    @Override
    public Document valueOf(DeployExecutionAttribute object) {
      return new Document()
          .append(attrNameColName, object.getName())
          .append(attrValueColName, object.getValue());
    }
  });
  return new Document()
      .append(idColName, deployExecution.getId())
      .append(requesterIdColName, deployExecution.getRequesterId())
      .append(deployExecutionIdColName, deployExecution.getExecutorId())
      .append(dbSchemaColName, deployExecution.getSchema())
      .append(toolVersionColName, deployExecution.getToolVersion())
      .append(deployTimeColName, new Date(deployExecution.getDeployTime().getTime()))
      .append(initCommandColName, deployExecution.isInit())
      .append(rollbackCommandColName, deployExecution.isRollback())
      .append(productVersionColName, deployExecution.getProductVersion())
      .append(reasonColName, deployExecution.getReason())
      .append("attrs", new ArrayList<>(attrs.toList()));
}
origin: com.goldmansachs.obevo/obevo-core

if (!currentExecution.isRollback()) {
  executionStack.push(currentExecution);
} else {
origin: goldmansachs/obevo

if (!currentExecution.isRollback()) {
  executionStack.push(currentExecution);
} else {
origin: com.goldmansachs.obevo/obevo-db

entry.getToolVersion() != null ? entry.getToolVersion() : "0.0.0",
entry.isInit() ? 1 : 0,
entry.isRollback() ? 1 : 0,
entry.getRequesterId(),
entry.getReason(),
origin: goldmansachs/obevo

entry.getToolVersion() != null ? entry.getToolVersion() : "0.0.0",
entry.isInit() ? 1 : 0,
entry.isRollback() ? 1 : 0,
entry.getRequesterId(),
entry.getReason(),
com.gs.obevo.api.appdataDeployExecutionisRollback

Popular methods of DeployExecution

  • getId
  • getAttributes
  • getProductVersion
  • getReason
  • getDeployTime
  • getExecutorId
  • getRequesterId
  • getSchema
  • getToolVersion
  • isInit
  • getStatus
  • setStatus
  • getStatus,
  • setStatus

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • onCreateOptionsMenu (Activity)
  • onRequestPermissionsResult (Fragment)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Notification (javax.management)
  • Top 17 PhpStorm Plugins
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