SimMetricsHandler

class SimMetricsHandler(output: SimMetricsOutput) extends ResultHandler[SimMetricsAggregator]

A ResultHandler that collects simulation metrics to a SimMetricsAggregator.

Returns the SimMetricsAggregator with all the data as a result when done.

Outputs the result using an (optional) SimMetricsOutput.

Value Params
output

The SimMetricsOutput to use, if any.

trait ResultHandler[SimMetricsAggregator]
class Object
trait Matchable
class Any

Value members

Concrete methods

override
def onEvent(evt: Event): Unit
Definition Classes
override
def result: SimMetricsAggregator
Definition Classes

Inherited methods

def onDone(publisher: Publisher): Unit

Handles the end of a stream.

Handles the end of a stream.

Value Params
publisher

The Publisher that ended the stream.

Inherited from
EventHandler
def onFail(e: Throwable, publisher: Publisher): Unit

Handles an error in the stream.

Handles an error in the stream.

Value Params
e

The throwable error that occurred.

publisher

The Publisher that threw the error.

Inherited from
EventHandler
def onInit(publisher: Publisher): Unit

Handles the initialisation of a new event stream.

Handles the initialisation of a new event stream.

Value Params
publisher

The Publisher that started the stream.

Inherited from
EventHandler

Concrete fields

val metrics: SimMetricsAggregator

Inherited fields

val id: UUID

A unique identifier for the handler.

A unique identifier for the handler.

Returns

a unique identifier

Inherited from
EventHandler