Package

kafka

utils

Permalink

package utils

Visibility
  1. Public
  2. All

Type Members

  1. class ByteBoundedBlockingQueue[E] extends Iterable[E]

    Permalink

    A blocking queue that have size limits on both number of elements and number of bytes.

  2. class DelayedItem extends Delayed with Logging

    Permalink
  3. class DoublyLinkedList[T] extends AnyRef

    Permalink

    A simple doubly linked list util to allow O(1) remove.

    A simple doubly linked list util to allow O(1) remove.

    T

    type of element in nodes

    Annotations
    @threadsafe()
  4. class DoublyLinkedListNode[T] extends AnyRef

    Permalink

    Simple doubly LinkedList node

    Simple doubly LinkedList node

    T

    The type of element

  5. class FileLock extends Logging

    Permalink

    A file lock a la flock/funlock

    A file lock a la flock/funlock

    The given path will be created and opened if it doesn't exist.

  6. abstract class IteratorTemplate[T] extends Iterator[T] with Iterator[T]

    Permalink

    Transliteration of the iterator template in google collections.

    Transliteration of the iterator template in google collections. To implement an iterator override makeNext and call allDone() when there is no more items

  7. class KafkaScheduler extends Scheduler with Logging

    Permalink

    A scheduler based on java.util.concurrent.ScheduledThreadPoolExecutor

    A scheduler based on java.util.concurrent.ScheduledThreadPoolExecutor

    It has a pool of kafka-scheduler- threads that do the actual work.

    Annotations
    @threadsafe()
  8. trait Logging extends AnyRef

    Permalink
  9. final class NetworkClientBlockingOps extends AnyVal

    Permalink

    Provides extension methods for NetworkClient that are useful for implementing blocking behaviour.

    Provides extension methods for NetworkClient that are useful for implementing blocking behaviour. Use with care.

    Example usage:

    val networkClient: NetworkClient = ...
    import NetworkClientBlockingOps._
    networkClient.blockingReady(...)
  10. class Pool[K, V] extends Iterable[(K, V)]

    Permalink
  11. trait Scheduler extends AnyRef

    Permalink

    A scheduler for running jobs

    A scheduler for running jobs

    This interface controls a job scheduler that allows scheduling either repeating background jobs that execute periodically or delayed one-time actions that are scheduled in the future.

  12. abstract class ShutdownableThread extends Thread with Logging

    Permalink
  13. class State extends AnyRef

    Permalink
  14. class Throttler extends Logging with KafkaMetricsGroup

    Permalink

    A class to measure and throttle the rate of some process.

    A class to measure and throttle the rate of some process. The throttler takes a desired rate-per-second (the units of the process don't matter, it could be bytes or a count of some other thing), and will sleep for an appropriate amount of time when maybeThrottle() is called to attain the desired rate.

    Annotations
    @threadsafe()
  15. trait Time extends AnyRef

    Permalink

    A mockable interface for time functions

  16. class VerifiableProperties extends Logging

    Permalink
  17. class ZKCheckedEphemeral extends Logging

    Permalink

    Creates an ephemeral znode checking the session owner in the case of conflict.

    Creates an ephemeral znode checking the session owner in the case of conflict. In the regular case, the znode is created and the create call returns OK. If the call receives a node exists event, then it checks if the session matches. If it does, then it returns OK, and otherwise it fails the operation.

  18. class ZKConfig extends AnyRef

    Permalink
  19. class ZKGroupDirs extends AnyRef

    Permalink
  20. class ZKGroupTopicDirs extends ZKGroupDirs

    Permalink
  21. class ZkUtils extends Logging

    Permalink
  22. class immutable extends Annotation with StaticAnnotation

    Permalink

    Indicates that the annotated class is immutable

  23. class nonthreadsafe extends Annotation with StaticAnnotation

    Permalink

    Indicates that the annotated class is not threadsafe

  24. class threadsafe extends Annotation with StaticAnnotation

    Permalink

    Indicates that the annotated class is meant to be threadsafe.

    Indicates that the annotated class is meant to be threadsafe. For an abstract class it is an part of the interface that an implementation must respect

Value Members

  1. object CommandLineUtils extends Logging

    Permalink

    Helper functions for dealing with command line utilities

  2. object CoreUtils extends Logging

    Permalink

    General helper functions!

    General helper functions!

    This is for general helper functions that aren't specific to Kafka logic. Things that should have been included in the standard library etc.

    If you are making a new helper function and want to add it to this class please ensure the following: 1. It has documentation 2. It is the most general possible utility, not just the thing you needed in one particular place 3. You have tests for it if it is nontrivial in any way

  3. object DONE extends State

    Permalink
  4. object FAILED extends State

    Permalink
  5. object Json extends Logging

    Permalink

    A wrapper that synchronizes JSON in scala, which is not threadsafe.

  6. object Log4jController

    Permalink
  7. object Mx4jLoader extends Logging

    Permalink

    If mx4j-tools is in the classpath call maybeLoad to load the HTTP interface of mx4j.

    If mx4j-tools is in the classpath call maybeLoad to load the HTTP interface of mx4j.

    The default port is 8082. To override that provide e.g. -Dmx4jport=8083 The default listen address is 0.0.0.0. To override that provide -Dmx4jaddress=127.0.0.1 This feature must be enabled with -Dmx4jenable=true

    This is a Scala port of org.apache.cassandra.utils.Mx4jTool written by Ran Tavory for CASSANDRA-1068

  8. object NOT_READY extends State

    Permalink
  9. object NetworkClientBlockingOps

    Permalink
  10. object Os

    Permalink
  11. object READY extends State

    Permalink
  12. object ReplicationUtils extends Logging

    Permalink
  13. object SystemTime extends Time

    Permalink

    The normal system implementation of time functions

  14. object Throttler

    Permalink
  15. object Time

    Permalink

    Some common constants

  16. object ToolsUtils

    Permalink
  17. object ZkPath

    Permalink
  18. object ZkUtils

    Permalink
  19. package timer

    Permalink

Ungrouped