StepExecution.getEndTime
Code IndexAdd Codota to your IDE (free)

Best code snippets using javax.batch.runtime.StepExecution.getEndTime(Showing top 6 results out of 315)

origin: IQSS/dataverse

public static StepExecutionEntity create(final StepExecution stepExecution) {
  final StepExecutionEntity result = new StepExecutionEntity();
  result.id = stepExecution.getStepExecutionId();
  result.name = stepExecution.getStepName();
  result.status = stepExecution.getBatchStatus();
  result.exitStatus = stepExecution.getExitStatus();
  result.endTime = stepExecution.getEndTime();
  result.startTime = stepExecution.getStartTime();
  // metrics
  result.metrics = new HashMap<>();
  final Metric[] metricArr = stepExecution.getMetrics();
  for (Metric m : metricArr) {
    result.metrics.put(m.getType().name().toLowerCase(), m.getValue());
  }
  if (stepExecution.getPersistentUserData() != null) {
    result.setPersistentUserData(stepExecution.getPersistentUserData().toString());
  }
  return result;
}
origin: org.jberet/jberet-core

@Override
public void updateStepExecution(final StepExecution stepExecution) {
  final StepExecutionImpl stepExecutionImpl = (StepExecutionImpl) stepExecution;
  try {
    final DBObject update = new BasicDBObject(TableColumns.ENDTIME, stepExecution.getEndTime());
    update.put(TableColumns.BATCHSTATUS, stepExecution.getBatchStatus().name());
    update.put(TableColumns.EXITSTATUS, stepExecution.getExitStatus());
    update.put(TableColumns.EXECUTIONEXCEPTION, TableColumns.formatException(stepExecutionImpl.getException()));
    update.put(TableColumns.PERSISTENTUSERDATA, BatchUtil.objectToBytes(stepExecution.getPersistentUserData()));
    update.put(TableColumns.READCOUNT, stepExecutionImpl.getStepMetrics().get(Metric.MetricType.READ_COUNT));
    update.put(TableColumns.WRITECOUNT, stepExecutionImpl.getStepMetrics().get(Metric.MetricType.WRITE_COUNT));
    update.put(TableColumns.COMMITCOUNT, stepExecutionImpl.getStepMetrics().get(Metric.MetricType.COMMIT_COUNT));
    update.put(TableColumns.ROLLBACKCOUNT, stepExecutionImpl.getStepMetrics().get(Metric.MetricType.ROLLBACK_COUNT));
    update.put(TableColumns.READSKIPCOUNT, stepExecutionImpl.getStepMetrics().get(Metric.MetricType.READ_SKIP_COUNT));
    update.put(TableColumns.PROCESSSKIPCOUNT, stepExecutionImpl.getStepMetrics().get(Metric.MetricType.PROCESS_SKIP_COUNT));
    update.put(TableColumns.FILTERCOUNT, stepExecutionImpl.getStepMetrics().get(Metric.MetricType.FILTER_COUNT));
    update.put(TableColumns.WRITESKIPCOUNT, stepExecutionImpl.getStepMetrics().get(Metric.MetricType.WRITE_SKIP_COUNT));
    update.put(TableColumns.READERCHECKPOINTINFO, BatchUtil.objectToBytes(stepExecutionImpl.getReaderCheckpointInfo()));
    update.put(TableColumns.WRITERCHECKPOINTINFO, BatchUtil.objectToBytes(stepExecutionImpl.getWriterCheckpointInfo()));
    db.getCollection(TableColumns.STEP_EXECUTION).update(
        new BasicDBObject(TableColumns.STEPEXECUTIONID, stepExecution.getStepExecutionId()),
        new BasicDBObject("$set", update));
  } catch (final Exception e) {
    throw BatchMessages.MESSAGES.failToRunQuery(e, "updateStepExecution");
  }
}
origin: IQSS/dataverse

StepExecution step = jobOperator.getStepExecutions(jobContext.getInstanceId()).get(0);
getJobLogger().log(Level.INFO, "Job start = " + step.getStartTime());
getJobLogger().log(Level.INFO, "Job end   = " + step.getEndTime());
getJobLogger().log(Level.INFO, "Job exit status = " + step.getExitStatus());
origin: fish.payara.extras/payara-embedded-all

if (stepExecution.getEndTime() != null) {
  data = stepExecution.getEndTime().getTime();
  cfData[index] = stepExecution.getEndTime().toString();
} else {
  data = "";
origin: org.jberet/jberet-core

try {
  preparedStatement = connection.prepareStatement(update);
  preparedStatement.setTimestamp(1, createTimestamp(stepExecution.getEndTime()));
  preparedStatement.setString(2, stepExecution.getBatchStatus().name());
  preparedStatement.setString(3, stepExecution.getExitStatus());
origin: javaee/glassfish

if (stepExecution.getEndTime() != null) {
  data = stepExecution.getEndTime().getTime();
  cfData[index] = stepExecution.getEndTime().toString();
} else {
  data = "";
javax.batch.runtimeStepExecutiongetEndTime

Javadoc

Get time this step ended.

Popular methods of StepExecution

  • getBatchStatus
    Get batch status of this step execution.
  • getStepName
    Get step name.
  • getExitStatus
    Get exit status of step.
  • getMetrics
    Get step metrics.
  • getStepExecutionId
    Get unique id for this StepExecution.
  • getPersistentUserData
    Get persistent user data. For a partitioned step, this returns the persistent user data of theStep
  • getStartTime
    Get time this step started.

Popular classes and methods

  • setContentView (Activity)
  • setScale (BigDecimal)
    Returns a new BigDecimal instance with the specified scale. If the new scale is greater than the old
  • requestLocationUpdates (LocationManager)
  • Component (java.awt)
  • URL (java.net)
    Class URL represents a Uniform Resource Locator, a pointer to a "resource" on the World Wide Web.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JOptionPane (javax.swing)
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t

For IntelliJ IDEA and
Android Studio

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)