T
- Tuple typepublic abstract class SingleMetricAbstractOplet<T> extends Peek<T>
Modifier | Constructor and Description |
---|---|
protected |
SingleMetricAbstractOplet(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected abstract com.codahale.metrics.Metric |
getMetric() |
java.lang.String |
getMetricName()
Returns the name of the metric used by this oplet for registration.
|
void |
initialize(OpletContext<T,T> context)
Initialize the oplet.
|
getDestination, getInputs, start, submit
getOpletContext
protected SingleMetricAbstractOplet(java.lang.String name)
public java.lang.String getMetricName()
MetricRegistry
.
The name of the metric is null
prior to oplet initialization,
or if this oplet has not been initialized with a
MetricRegistry
.
protected abstract com.codahale.metrics.Metric getMetric()
public final void initialize(OpletContext<T,T> context)
Oplet
initialize
in interface Oplet<T,T>
initialize
in class Pipe<T,T>
context
- the OpletContextpublic final void close() throws java.lang.Exception
java.lang.Exception
Copyright © 2016 The Apache Software Foundation. All Rights Reserved - bbe71fa-20161201-1641