Tabnine Logo
JobMessage.getTimestamp
Code IndexAdd Tabnine to your IDE (free)

How to use
getTimestamp
method
in
de.otto.edison.jobs.domain.JobMessage

Best Java code snippets using de.otto.edison.jobs.domain.JobMessage.getTimestamp (Showing top 6 results out of 315)

origin: otto-de/edison-microservice

public List<String> getMessages() {
  return job.getMessages().stream().map((jobMessage) ->
    "[" + formatTime(jobMessage.getTimestamp()) + "] [" + jobMessage.getLevel().getKey() + "] " + jobMessage.getMessage()
  ).collect(Collectors.toList());
}
origin: otto-de/edison-microservice

@Override
public void appendMessage(String jobId, JobMessage jobMessage) {
  JobInfo jobInfo = jobs.get(jobId);
  jobs.replace(jobId, jobInfo.copy().setLastUpdated(jobMessage.getTimestamp()).addMessage(jobMessage).build());
}
origin: otto-de/edison-microservice

public void appendMessage(final String jobId,
             final JobMessage jobMessage) {
  writeMessageAndStatus(jobId, jobMessage.getLevel(), jobMessage.getMessage(), jobMessage.getLevel() == Level.ERROR ? ERROR : null, jobMessage.getTimestamp());
}
origin: otto-de/edison-microservice

private static Document encodeJobMessage(final JobMessage jm) {
  return new Document() {{
    put(JobStructure.MSG_LEVEL.key(), jm.getLevel().name());
    put(JobStructure.MSG_TS.key(), Date.from(jm.getTimestamp().toInstant()));
    put(JobStructure.MSG_TEXT.key(), jm.getMessage());
  }};
}
origin: otto-de/edison-microservice

@Override
public void appendMessage(final String jobId, final JobMessage jobMessage) {
  collectionWithWriteTimeout(mongoProperties.getDefaultWriteTimeout(), TimeUnit.MILLISECONDS).updateOne(eq(ID, jobId), combine(push(JobStructure.MESSAGES.key(), encodeJobMessage(jobMessage)), set(JobStructure.LAST_UPDATED.key(), Date.from(jobMessage.getTimestamp().toInstant()))));
}
origin: de.otto.edison/edison-mongo

private static Document encodeJobMessage(final JobMessage jm) {
  return new Document() {{
    put(JobStructure.MSG_LEVEL.key(), jm.getLevel().name());
    put(JobStructure.MSG_TS.key(), DateTimeConverters.toDate(jm.getTimestamp()));
    put(JobStructure.MSG_TEXT.key(), jm.getMessage());
  }};
}
de.otto.edison.jobs.domainJobMessagegetTimestamp

Popular methods of JobMessage

  • getLevel
  • getMessage
  • jobMessage
  • <init>

Popular in Java

  • Reading from database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSupportFragmentManager (FragmentActivity)
  • runOnUiThread (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • JFrame (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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