package apso
Contains ShiftForward's general-purpose utility classes and methods, as well as extensions of existing ones.
- Alphabetic
- By Inheritance
- apso
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
ExpSampler
[T](base: Double = 2.0) extends Sampler[T] with Product with Serializable
Sampler in which sampling level ratios are distributed in an exponential way.
Sampler in which sampling level ratios are distributed in an exponential way. More formally, each sampling level corresponds to a sample with
1.0 / pow(base, level) * 100%of the original size.- T
the type of the elements of the sequence
- base
the base to use for calculating the ratios, as described above
-
trait
FallbackToMinimum
[T] extends Sampler[T]
Mixin that modifies an existing sampler by setting a minimum ratio for any sampling level.
Mixin that modifies an existing sampler by setting a minimum ratio for any sampling level. Mixing this trait in, levels which previously corresponded to a sampling ratio below the minimum defined use that minimum.
- T
the type of the elements of the sequence
- trait JreVersionHelper extends AnyRef
-
case class
ListSampler
[T](list: Double*) extends Sampler[T] with Product with Serializable
Sampler in which ratios for each sampling level are given explicitly as a list.
Sampler in which ratios for each sampling level are given explicitly as a list.
- T
the type of the elements of the sequence
- list
the sampling ratios to use in which sampling level
-
trait
Logging
extends AnyRef
Trait to mixin a slf4j
Loggerobject.Trait to mixin a slf4j
Loggerobject. TheLoggerobject is initialized lazily. - trait NamedActorLogging extends ActorLogging
-
case class
ProgressBar
(total: Long = 100, width: Int = 80, throughputUnit: String = "ops", throughputTransformer: (Double) ⇒ Double = identity) extends Product with Serializable
A widget for printing a dynamic progress bar in a console.
A widget for printing a dynamic progress bar in a console.
- total
the number representing the full progress bar
- width
the line width of the progress bar
- throughputUnit
the throughput unit that is being measured
- throughputTransformer
a function to transform the measured throughput value, before displaying it
-
trait
Sampler
[T] extends AnyRef
Class that encapsulates a sampling strategy over a sequence of elements.
Class that encapsulates a sampling strategy over a sequence of elements.
- T
the type of the elements of the sequence
- To do
move the type parameter T to the apply method.
-
trait
StrictLogging
extends AnyRef
Trait to mixin a slf4j
Loggerobject.Trait to mixin a slf4j
Loggerobject. TheLoggerobject is initialized strictly.
Value Members
-
object
Benchmark
Utility object for measuring the running time of a block of code.
-
object
CounterPair
Factory and extractor for packing two numbers in the range of an unsigned short (0 to 65535) in an
Int. -
object
Geo
Object containing geo-location functions.
-
object
Implicits
Object containing implicit classes and methods of general purpose.
- object JreVersionHelper extends JreVersionHelper
-
object
NetUtils
Object containing network utility methods.
-
object
OrderingHelper
Object containing utilities related to ordered objects.
-
object
Reflect
Object containing reflection-related helpers.
-
object
Retry
Utility object for retrying Future a number of times.
-
object
ShellRun
extends Product with Serializable
Wrapper around Scala's process library that facilitates the launching of shell commands.