Package

com.metamx.tranquility

beam

Permalink

package beam

Visibility
  1. Public
  2. All

Type Members

  1. trait Beam[A] extends AnyRef

    Permalink

    Beams can accept events and forward them along.

    Beams can accept events and forward them along. The propagate method may throw a DefunctBeamException, which means the beam should be discarded (after calling close()).

  2. trait BeamMaker[A, BeamType <: Beam[A]] extends AnyRef

    Permalink

    Makes beams for particular intervals and partition numbers.

    Makes beams for particular intervals and partition numbers. Can also serialize and deserialize beam representations.

    A

    event type

    BeamType

    specific beam type we know how to create

  3. class BeamPacketizer[A] extends Logging

    Permalink

    Wraps a Beam and exposes a single-message API rather than the future-batch-based API.

    Wraps a Beam and exposes a single-message API rather than the future-batch-based API. Not thread-safe.

  4. trait BeamPacketizerListener[A] extends AnyRef

    Permalink
  5. class ClusteredBeam[EventType, InnerBeamType <: Beam[EventType]] extends Beam[EventType] with Logging

    Permalink

    Beam composed of a stack of smaller beams.

    Beam composed of a stack of smaller beams. The smaller beams are split across two axes: timestamp (time shard of the data) and partition (shard of the data within one time interval). The stack of beams for a particular timestamp are created in a coordinated fashion, such that all ClusteredBeams for the same identifier will have semantically identical stacks. This interaction is mediated through zookeeper. Beam information persists across ClusteredBeam restarts.

    In the case of Druid, each merged beam corresponds to one segment partition number, and each inner beam corresponds to either one index task or a set of redundant index tasks.

                                 ClusteredBeam
    
                        +-------------+---------------+
    2010-01-02T03:00:00 |                             |   2010-01-02T04:00:00
                        |                             |
                        v                             v
    
              +----+ Merged +----+                   ...
              |                  |
         partition 1         partition 2
              |                  |
              v                  v
    
          Decorated           Decorated
    
        InnerBeamType       InnerBeamType
  6. case class ClusteredBeamMeta(latestCloseTime: DateTime, beamDictss: Map[Long, Seq[Dict]]) extends Product with Serializable

    Permalink

    Metadata stored in ZooKeeper for a ClusteredBeam.

    Metadata stored in ZooKeeper for a ClusteredBeam.

    latestCloseTime

    Most recently shut-down interval (to prevent necromancy).

    beamDictss

    Map of interval start -> beam metadata, partition by partition.

  7. case class ClusteredBeamTuning(segmentGranularity: Granularity = Granularity.HOUR, warmingPeriod: Period = new Period(0), windowPeriod: Period = new Period("PT10M"), partitions: Int = 1, replicants: Int = 1, minSegmentsPerBeam: Int = 1, maxSegmentsPerBeam: Int = 1) extends Logging with Product with Serializable

    Permalink
  8. class DefunctBeamException extends Exception

    Permalink
  9. class HashPartitionBeam[A] extends MergingPartitioningBeam[A]

    Permalink
  10. class HttpBeam[A] extends Beam[A] with Logging

    Permalink

    Emits events over http.

    Emits events over http.

    This class is a little bit half-baked and might not work.

  11. class MemoryBeam[A] extends Beam[A]

    Permalink
  12. class MergingPartitioningBeam[A] extends Beam[A] with Logging

    Permalink

    Partitions events based on the output of a Partitioner, and propagates the partitioned events via the appropriate underlying beams.

  13. class NoopBeam[A] extends Beam[A]

    Permalink
  14. class RoundRobinBeam[A] extends Beam[A] with Logging

    Permalink

    Farms out events to various beams, round-robin.

Value Members

  1. object ClusteredBeamMeta extends Serializable

    Permalink
  2. object ClusteredBeamTuning extends Serializable

    Permalink
  3. object HttpBeam

    Permalink
  4. object MemoryBeam

    Permalink

Ungrouped