c

com.workflowfm.pew.metrics

MetricsPrinter

case class MetricsPrinter[KeyT](separator: String = "\t| ", timeFormat: Some[String] = Some("YYYY-MM-dd HH:mm:ss.SSS")) extends MetricsStringOutput[KeyT] with Product with Serializable

Prints all metrics to standard output.

separator

A string to separate values.

timeFormat

An optional time format using java.text.SimpleDateFormat

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MetricsPrinter
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. MetricsStringOutput
  7. MetricsFormatting
  8. MetricsOutput
  9. Function1
  10. AnyRef
  11. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MetricsPrinter(separator: String = "\t| ", timeFormat: Some[String] = Some("YYYY-MM-dd HH:mm:ss.SSS"))

    separator

    A string to separate values.

    timeFormat

    An optional time format using java.text.SimpleDateFormat

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from MetricsPrinter[KeyT] to any2stringadd[MetricsPrinter[KeyT]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (MetricsPrinter[KeyT], B)
    Implicit
    This member is added by an implicit conversion from MetricsPrinter[KeyT] to ArrowAssoc[MetricsPrinter[KeyT]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. def and(h: MetricsOutput[KeyT]): MetricsOutputs[KeyT]

    Compose with another MetricsOutput in sequence.

    Compose with another MetricsOutput in sequence.

    Definition Classes
    MetricsOutput
  7. def andThen[A](g: (Unit) ⇒ A): (MetricsAggregator[KeyT]) ⇒ A
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  8. def apply(aggregator: MetricsAggregator[KeyT]): Unit
    Definition Classes
    MetricsPrinter → Function1
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. def compose[A](g: (A) ⇒ MetricsAggregator[KeyT]): (A) ⇒ Unit
    Definition Classes
    Function1
    Annotations
    @unspecialized()
  12. def ensuring(cond: (MetricsPrinter[KeyT]) ⇒ Boolean, msg: ⇒ Any): MetricsPrinter[KeyT]
    Implicit
    This member is added by an implicit conversion from MetricsPrinter[KeyT] to Ensuring[MetricsPrinter[KeyT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: (MetricsPrinter[KeyT]) ⇒ Boolean): MetricsPrinter[KeyT]
    Implicit
    This member is added by an implicit conversion from MetricsPrinter[KeyT] to Ensuring[MetricsPrinter[KeyT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean, msg: ⇒ Any): MetricsPrinter[KeyT]
    Implicit
    This member is added by an implicit conversion from MetricsPrinter[KeyT] to Ensuring[MetricsPrinter[KeyT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. def ensuring(cond: Boolean): MetricsPrinter[KeyT]
    Implicit
    This member is added by an implicit conversion from MetricsPrinter[KeyT] to Ensuring[MetricsPrinter[KeyT]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  16. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatDuration(from: Option[Long], to: Option[Long], format: String, nullValue: String): String
    Definition Classes
    MetricsFormatting
  19. def formatDuration(from: Option[Long], to: Long, format: String, nullValue: String): String
    Definition Classes
    MetricsFormatting
  20. def formatDuration(from: Long, to: Long, format: String): String
    Definition Classes
    MetricsFormatting
  21. def formatOption[T](v: Option[T], nullValue: String, format: (T) ⇒ String = x: T => x.toString): String
    Definition Classes
    MetricsFormatting
  22. def formatTime(format: String)(time: Long): String
    Definition Classes
    MetricsFormatting
  23. def formatTimeOption(time: Option[Long], format: String, nullValue: String): String
    Definition Classes
    MetricsFormatting
  24. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from MetricsPrinter[KeyT] to StringFormat[MetricsPrinter[KeyT]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  25. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  27. val lineSep: String

    Separates metrics instances.

  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. val nullValue: String

    A string representing null values.

    A string representing null values.

    Definition Classes
    MetricsStringOutput
  32. def procCSV(separator: String, timeFormat: Option[String])(m: ProcessMetrics[KeyT]): String

    String representation of a ProcessMetrics instance.

    String representation of a ProcessMetrics instance.

    separator

    a string (such as a space or comma) to separate the values

    timeFormat

    optional argument to format timestamps using java.text.SimpleDateFormat

    m

    the ProcessMetrics instance to be handled

    Definition Classes
    MetricsStringOutput
  33. def procHeader(separator: String): String

    The field names for ProcessMetrics.

    The field names for ProcessMetrics.

    separator

    a string (such as a space or comma) to separate the names

    Definition Classes
    MetricsStringOutput
  34. def processes(aggregator: MetricsAggregator[KeyT], separator: String, lineSep: String = "\n", timeFormat: Option[String] = None): String

    Formats all ProcessMetrics in a MetricsAggregator in a single string.

    Formats all ProcessMetrics in a MetricsAggregator in a single string.

    aggregator

    the MetricsAggregator to retrieve the metrics to be formatted

    separator

    a string (such as a space or comma) to separate values

    lineSep

    a string (such as a new line) to separate process metrics

    timeFormat

    optional argument to format timestamps using java.text.SimpleDateFormat

    Definition Classes
    MetricsStringOutput
  35. def quote(s: String): String
    Definition Classes
    MetricsFormatting
  36. val separator: String
  37. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  38. val timeFormat: Some[String]
  39. def toString(): String
    Definition Classes
    Function1 → AnyRef → Any
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  43. def workflowCSV(separator: String, timeFormat: Option[String])(m: WorkflowMetrics[KeyT]): String

    String representation of a WorkflowMetrics instance.

    String representation of a WorkflowMetrics instance.

    separator

    a string (such as a space or comma) to separate the values

    timeFormat

    optional argument to format timestamps using java.text.SimpleDateFormat

    m

    the WorkflowMetrics instance to be handled

    Definition Classes
    MetricsStringOutput
  44. def workflowHeader(separator: String): String

    The field names for WorkflowMetrics.

    The field names for WorkflowMetrics.

    separator

    a string (such as a space or comma) to separate the names

    Definition Classes
    MetricsStringOutput
  45. def workflows(aggregator: MetricsAggregator[KeyT], separator: String, lineSep: String = "\n", timeFormat: Option[String] = None): String

    Formats all WorkflowMetrics in a MetricsAggregator in a single string.

    Formats all WorkflowMetrics in a MetricsAggregator in a single string.

    aggregator

    the MetricsAggregator to retrieve the metrics to be formatted

    separator

    a string (such as a space or comma) to separate values

    lineSep

    a string (such as a new line) to separate workflow metrics

    timeFormat

    optional argument to format timestamps using java.text.SimpleDateFormat

    Definition Classes
    MetricsStringOutput
  46. def [B](y: B): (MetricsPrinter[KeyT], B)
    Implicit
    This member is added by an implicit conversion from MetricsPrinter[KeyT] to ArrowAssoc[MetricsPrinter[KeyT]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from MetricsStringOutput[KeyT]

Inherited from MetricsFormatting

Inherited from MetricsOutput[KeyT]

Inherited from (MetricsAggregator[KeyT]) ⇒ Unit

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from MetricsPrinter[KeyT] to any2stringadd[MetricsPrinter[KeyT]]

Inherited by implicit conversion StringFormat from MetricsPrinter[KeyT] to StringFormat[MetricsPrinter[KeyT]]

Inherited by implicit conversion Ensuring from MetricsPrinter[KeyT] to Ensuring[MetricsPrinter[KeyT]]

Inherited by implicit conversion ArrowAssoc from MetricsPrinter[KeyT] to ArrowAssoc[MetricsPrinter[KeyT]]

Ungrouped