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

How to use
configure
method
in
com.ning.metrics.eventtracker.CollectorControllerModule

Best Java code snippets using com.ning.metrics.eventtracker.CollectorControllerModule.configure (Showing top 1 results out of 315)

origin: com.ning/metrics.eventtracker-http

  @Override
  protected void configure()
  {
    super.configure();

    switch (eventTrackerConfig.getType()) {
      case COLLECTOR:
        final EventSender httpSender = new HttpSender(
          eventTrackerConfig.getCollectorHost(),
          eventTrackerConfig.getCollectorPort(),
          eventTrackerConfig.getEventType(),
          eventTrackerConfig.getHttpMaxWaitTimeInMillis(),
          eventTrackerConfig.getHttpMaxKeepAlive().getMillis(),
          eventTrackerConfig.getHttpWorkersPoolSize()
        );
        bind(EventSender.class).toInstance(httpSender);
        log.info("Enabled HTTP Event Logging");
        break;
      case NO_LOGGING:
        bind(EventSender.class).to(NoLoggingSender.class).asEagerSingleton();
        log.info("Disabled Event Logging");
        break;
      default:
        throw new IllegalStateException("Unknown type " + eventTrackerConfig.getType());
    }
  }
}
com.ning.metrics.eventtrackerCollectorControllerModuleconfigure

Popular methods of CollectorControllerModule

  • bind

Popular in Java

  • Making http requests using okhttp
  • putExtra (Intent)
  • setContentView (Activity)
  • setScale (BigDecimal)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Table (org.hibernate.mapping)
    A relational table
  • Top Sublime Text plugins
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