congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JobMessage.getMessage
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using de.otto.edison.jobs.domain.JobMessage.getMessage (Showing top 5 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

private void assertMessageEvent(final ArgumentCaptor<JobMessage> messageCaptor,
                final de.otto.edison.jobs.domain.Level expectedLevel) {
  final JobMessage jobMessage = messageCaptor.getValue();
  assertThat(jobMessage.getMessage(), is("someMessage"));
  assertThat(jobMessage.getLevel(), is(expectedLevel));
}
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: 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.domainJobMessagegetMessage

Popular methods of JobMessage

  • getLevel
  • jobMessage
  • getTimestamp
  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • getResourceAsStream (ClassLoader)
  • getExternalFilesDir (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • CodeWhisperer alternatives
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