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
- Alphabetic
- By Inheritance
- MetricsPrinter
- Serializable
- Serializable
- Product
- Equals
- MetricsStringOutput
- MetricsFormatting
- MetricsOutput
- Function1
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
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
-
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()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
and(h: MetricsOutput[KeyT]): MetricsOutputs[KeyT]
Compose with another MetricsOutput in sequence.
Compose with another MetricsOutput in sequence.
- Definition Classes
- MetricsOutput
-
def
andThen[A](g: (Unit) ⇒ A): (MetricsAggregator[KeyT]) ⇒ A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
def
apply(aggregator: MetricsAggregator[KeyT]): Unit
- Definition Classes
- MetricsPrinter → Function1
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
compose[A](g: (A) ⇒ MetricsAggregator[KeyT]): (A) ⇒ Unit
- Definition Classes
- Function1
- Annotations
- @unspecialized()
-
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
-
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
-
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
-
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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatDuration(from: Option[Long], to: Option[Long], format: String, nullValue: String): String
- Definition Classes
- MetricsFormatting
-
def
formatDuration(from: Option[Long], to: Long, format: String, nullValue: String): String
- Definition Classes
- MetricsFormatting
-
def
formatDuration(from: Long, to: Long, format: String): String
- Definition Classes
- MetricsFormatting
-
def
formatOption[T](v: Option[T], nullValue: String, format: (T) ⇒ String = x: T => x.toString): String
- Definition Classes
- MetricsFormatting
-
def
formatTime(format: String)(time: Long): String
- Definition Classes
- MetricsFormatting
-
def
formatTimeOption(time: Option[Long], format: String, nullValue: String): String
- Definition Classes
- MetricsFormatting
-
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()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
val
lineSep: String
Separates metrics instances.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
val
nullValue: String
A string representing null values.
A string representing null values.
- Definition Classes
- MetricsStringOutput
-
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
-
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
-
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
-
def
quote(s: String): String
- Definition Classes
- MetricsFormatting
- val separator: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val timeFormat: Some[String]
-
def
toString(): String
- Definition Classes
- Function1 → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
-
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
-
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
-
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