Apache REEF  0.16.0
Retainable Evaluator Execution Framework
Public Member Functions | Properties | List of all members
Org.Apache.REEF.Common.Metrics.MutableMetricsLayer.IMetricContainer< out out T > Interface Template Reference

A container interface visible to the user to create and access metric of particular type. More...

Public Member Functions

Create (string name, string desc)
 Creates metric of type T from name and description. More...
 
bool Delete (string name)
 Deletes a metric with given name and description. More...
 

Properties

this[string name] [get]
 Indexer to access metric by name. More...
 

Detailed Description

A container interface visible to the user to create and access metric of particular type.

Template Parameters
TType of mutable metric.
Type Constraints
T :IMutableMetric 

Member Function Documentation

◆ Create()

T Org.Apache.REEF.Common.Metrics.MutableMetricsLayer.IMetricContainer< out out T >.Create ( string  name,
string  desc 
)

Creates metric of type T from name and description.

Exceptions
MetricsExceptionthrown if metric with the name already exists.
Parameters
nameName of the metric.
descDescription of the metric.
Returns
Newly created Metric.

◆ Delete()

Deletes a metric with given name and description.

Parameters
nameName of the metric.
Returns
True if the metric is deleted, false if it does not exist

Property Documentation

◆ this[string name]

Indexer to access metric by name.

Exceptions
MetricsExceptionthrown if metric with that name does not exist.
Parameters
nameName of the metric.
Returns
Metric with given name.

The documentation for this interface was generated from the following file: