congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SmileEnvelopeEvent.fromPOJO
Code IndexAdd Tabnine to your IDE (free)

How to use
fromPOJO
method
in
com.ning.metrics.serialization.event.SmileEnvelopeEvent

Best Java code snippets using com.ning.metrics.serialization.event.SmileEnvelopeEvent.fromPOJO (Showing top 2 results out of 315)

origin: com.ning.jetty/ning-service-skeleton-eventtracker

  @Override
  public void trackRequest(final RequestLog request)
  {
    try {
      controller.offerEvent(SmileEnvelopeEvent.fromPOJO(eventName, Granularity.HOURLY, new DateTime(DateTimeZone.UTC), request));
    }
    catch (IOException e) {
      log.warn("Got I/O exception trying to send RequestLog [{}]: {}", request, e.toString());
    }
  }
}
origin: com.ning/metrics.serialization-smile

public static SmileEnvelopeEvent fromPOJO(final String eventName, final Granularity granularity,
    final DateTime eventDateTime,
    final Object pojo)
{
  JsonNode tree = smileObjectMapper.valueToTree(pojo);
  return new SmileEnvelopeEvent(eventName, granularity, eventDateTime, tree);
}

com.ning.metrics.serialization.eventSmileEnvelopeEventfromPOJO

Popular methods of SmileEnvelopeEvent

  • <init>
  • addToTree
  • getEventDateTime
  • getEventDateTimeFromJson
  • getGranularityFromJson
  • getObjectMapper
  • getSerializedEvent
  • parseAsTree
  • setEventPropertiesFromNode
  • setPlainJson
  • writeToJsonGenerator
  • writeToJsonGenerator

Popular in Java

  • Making http requests using okhttp
  • getSupportFragmentManager (FragmentActivity)
  • onCreateOptionsMenu (Activity)
  • setContentView (Activity)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • JFrame (javax.swing)
  • 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