more("jobExecutions.-1.hostName", execution.getHostName()). more("jobExecutions.-1.activeExecutionId", execution.getActiveExecutionId()). more("jobExecutions.-1.actualStartDate", Literal.value(execution.getActualStartDate())). more("jobExecutions.-1.status", MigrationJob.STATE_ACTIVE))); LOGGER.debug("Marking job {} as active", migrationJob.get_id()); LightblueResponse response = null; Query.withValue("activeExecutionId", Query.eq, activeExecution.get_id()), Update.set("status", execution.getStatus()). more("errorMsg", execution.getErrorMsg() == null ? "" : execution.getErrorMsg()). more("processedDocumentCount", execution.getProcessedDocumentCount()). more("consistentDocumentCount", execution.getConsistentDocumentCount()). more("inconsistentDocumentCount", execution.getInconsistentDocumentCount()). more("overwrittenDocumentCount", execution.getOverwrittenDocumentCount()). more("actualEndDate", Literal.value(new Date())))));
public Set more(String field, long i) { return more(field, Literal.value(i)); }
public Set more(String field, Date date) { return more(field, Literal.value(date)); }
public Set more(String field, boolean i) { return more(field, Literal.value(i)); }
public Set more(String field, int i) { return more(field, Literal.value(i)); }
public Set more(String field, String i) { return more(field, Literal.value(i)); }
/** * Add a new field/value to $set */ public Set more(String field, SetLiteral value) { return more(field, value.toJson()); }