kafka.network

SocketServer

class SocketServer extends Logging with KafkaMetricsGroup

An NIO socket server. The threading model is 1 Acceptor thread that handles new connections N Processor threads that each have their own selector and read requests from sockets M Handler threads that handle requests and produce responses back to the processor threads for writing.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SocketServer
  2. KafkaMetricsGroup
  3. Logging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SocketServer(brokerId: Int, host: String, port: Int, numProcessorThreads: Int, maxQueuedRequests: Int, sendBufferSize: Int, recvBufferSize: Int, maxRequestSize: Int = Int.MaxValue, maxConnectionsPerIp: Int = Int.MaxValue, connectionsMaxIdleMs: Long, maxConnectionsPerIpOverrides: Map[String, Int] = Map[String, Int]())

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  5. val brokerId: Int

  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val connectionsMaxIdleMs: Long

  8. def debug(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  9. def debug(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  10. def debug(msg: ⇒ String): Unit

    Definition Classes
    Logging
  11. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  13. def error(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  14. def error(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  15. def error(msg: ⇒ String): Unit

    Definition Classes
    Logging
  16. def fatal(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  17. def fatal(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  18. def fatal(msg: ⇒ String): Unit

    Definition Classes
    Logging
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. val host: String

  23. def info(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  24. def info(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  25. def info(msg: ⇒ String): Unit

    Definition Classes
    Logging
  26. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  27. var logIdent: String

    Attributes
    protected
    Definition Classes
    Logging
  28. lazy val logger: Logger

    Definition Classes
    Logging
  29. val loggerName: String

    Definition Classes
    Logging
  30. val maxConnectionsPerIp: Int

  31. val maxConnectionsPerIpOverrides: Map[String, Int]

  32. val maxQueuedRequests: Int

  33. val maxRequestSize: Int

  34. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. def newGauge[T](name: String, metric: Gauge[T]): Gauge[T]

    Definition Classes
    KafkaMetricsGroup
  36. def newHistogram(name: String, biased: Boolean = true): Histogram

    Definition Classes
    KafkaMetricsGroup
  37. def newMeter(name: String, eventType: String, timeUnit: TimeUnit): Meter

    Definition Classes
    KafkaMetricsGroup
  38. def newTimer(name: String, durationUnit: TimeUnit, rateUnit: TimeUnit): Timer

    Definition Classes
    KafkaMetricsGroup
  39. final def notify(): Unit

    Definition Classes
    AnyRef
  40. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  41. val numProcessorThreads: Int

  42. val port: Int

  43. val recvBufferSize: Int

  44. def removeMetric(name: String): Unit

    Definition Classes
    KafkaMetricsGroup
  45. val requestChannel: RequestChannel

  46. val sendBufferSize: Int

  47. def shutdown(): Unit

    Shutdown the socket server

  48. def startup(): Unit

    Start the socket server

  49. def swallow(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  50. def swallowDebug(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  51. def swallowError(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  52. def swallowInfo(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  53. def swallowTrace(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  54. def swallowWarn(action: ⇒ Unit): Unit

    Definition Classes
    Logging
  55. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  56. def toString(): String

    Definition Classes
    AnyRef → Any
  57. def trace(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  58. def trace(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  59. def trace(msg: ⇒ String): Unit

    Definition Classes
    Logging
  60. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  61. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  62. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  63. def warn(msg: ⇒ String, e: ⇒ Throwable): Unit

    Definition Classes
    Logging
  64. def warn(e: ⇒ Throwable): Any

    Definition Classes
    Logging
  65. def warn(msg: ⇒ String): Unit

    Definition Classes
    Logging

Inherited from KafkaMetricsGroup

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped