Class FeedHandlerV3

java.lang.Object
com.yahoo.jdisc.AbstractResource
com.yahoo.jdisc.handler.AbstractRequestHandler
com.yahoo.container.jdisc.ThreadedRequestHandler
com.yahoo.container.jdisc.ThreadedHttpRequestHandler
com.yahoo.vespa.http.server.FeedHandlerV3
All Implemented Interfaces:
com.yahoo.container.jdisc.HttpRequestHandler, com.yahoo.jdisc.handler.RequestHandler, com.yahoo.jdisc.SharedResource

public class FeedHandlerV3 extends com.yahoo.container.jdisc.ThreadedHttpRequestHandler
One client has one ClientFeederV3 shared between all client threads. Contains logic for shutting down cleanly as the server is upgraded.
Author:
dybis
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler

    com.yahoo.container.jdisc.ThreadedHttpRequestHandler.Context, com.yahoo.container.jdisc.ThreadedHttpRequestHandler.LazyContentChannel

    Nested classes/interfaces inherited from interface com.yahoo.jdisc.SharedResource

    com.yahoo.jdisc.SharedResource.Debug
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final com.yahoo.messagebus.ReplyHandler
     

    Fields inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler

    CONTENT_TYPE

    Fields inherited from interface com.yahoo.jdisc.SharedResource

    DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
  • Constructor Summary

    Constructors
    Constructor
    Description
    FeedHandlerV3(Executor executor, com.yahoo.jdisc.Metric metric, com.yahoo.document.DocumentTypeManager documentTypeManager, com.yahoo.container.jdisc.messagebus.SessionCache sessionCache, DocumentApiMetrics metricsHelper)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    com.yahoo.container.jdisc.HttpResponse
    handle(com.yahoo.container.jdisc.HttpRequest request)
     
    void
    injectDocumentManangerForTests(com.yahoo.document.DocumentTypeManager docTypeManager)
     
    protected com.yahoo.jdisc.ReferencedResource<com.yahoo.messagebus.shared.SharedSourceSession>
    retainSource(com.yahoo.container.jdisc.messagebus.SessionCache sessionCache, com.yahoo.messagebus.SourceSessionParams params)
     

    Methods inherited from class com.yahoo.container.jdisc.ThreadedHttpRequestHandler

    addDateHeader, asHttpRequest, createLoggingCompletionHandler, handle, handleRequest, testContext

    Methods inherited from class com.yahoo.container.jdisc.ThreadedRequestHandler

    executor, getRequestType, getTimeout, handleRequest, writeErrorResponseOnOverload

    Methods inherited from class com.yahoo.jdisc.handler.AbstractRequestHandler

    handleTimeout

    Methods inherited from class com.yahoo.jdisc.AbstractResource

    currentState, refer, refer, release, retainCount

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.yahoo.container.jdisc.HttpRequestHandler

    requestHandlerSpec

    Methods inherited from interface com.yahoo.jdisc.handler.RequestHandler

    handleRequest, handleTimeout

    Methods inherited from interface com.yahoo.jdisc.SharedResource

    refer, refer, release
  • Field Details

    • feedReplyHandler

      protected final com.yahoo.messagebus.ReplyHandler feedReplyHandler
  • Constructor Details

    • FeedHandlerV3

      public FeedHandlerV3(Executor executor, com.yahoo.jdisc.Metric metric, com.yahoo.document.DocumentTypeManager documentTypeManager, com.yahoo.container.jdisc.messagebus.SessionCache sessionCache, DocumentApiMetrics metricsHelper)
  • Method Details

    • injectDocumentManangerForTests

      public void injectDocumentManangerForTests(com.yahoo.document.DocumentTypeManager docTypeManager)
    • handle

      public com.yahoo.container.jdisc.HttpResponse handle(com.yahoo.container.jdisc.HttpRequest request)
      Specified by:
      handle in class com.yahoo.container.jdisc.ThreadedHttpRequestHandler
    • retainSource

      protected com.yahoo.jdisc.ReferencedResource<com.yahoo.messagebus.shared.SharedSourceSession> retainSource(com.yahoo.container.jdisc.messagebus.SessionCache sessionCache, com.yahoo.messagebus.SourceSessionParams params)
    • destroy

      protected void destroy()
      Overrides:
      destroy in class com.yahoo.jdisc.AbstractResource