Mark Payne created NIFI-16656:
---------------------------------
Summary: Add Counter and Gauge methods to
ConnectorInitializationContext
Key: NIFI-16656
URL: https://issues.apache.org/jira/browse/NIFI-16656
Project: Apache NiFi
Issue Type: Improvement
Components: NiFi API
Reporter: Mark Payne
Assignee: Mark Payne
Add two default methods to ConnectorInitializationContext in nifi-api so that a
Connector can record Counters and Gauges directly. This implements NIP-53.
{code:java}
default void adjustCounter(String name, long delta, Map<String, String>
attributes) { }
default void recordGauge(String name, double value, Map<String, String>
attributes) { }
{code}
Both methods do nothing by default, so existing implementations are unaffected.
There is no CommitTiming argument because a Connector has no ProcessSession;
values are recorded as soon as the method is called.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)