Completed NB4 Pulsar driver code migration to NB5. But there are still a few lingering issues due to the difference of how NB4 vs NB5 driver/adapter interacts with the NB engine.

This commit is contained in:
yabinmeng
2022-11-16 15:37:26 -06:00
parent ca6f2b052b
commit 0c71696b15
28 changed files with 1435 additions and 118 deletions

View File

@@ -194,11 +194,6 @@ public class ActivityMetrics {
return (Counter) register(named, name, Counter::new);
}
public static Counter counter(String fullName) {
Counter counter = get().register(fullName, new Counter());
return counter;
}
/**
* <p>Create a meter associated with an activity.</p>
* <p>This method ensures that if multiple threads attempt to create the same-named metric on a given activity,
@@ -229,10 +224,6 @@ public class ActivityMetrics {
return (Gauge<T>) register(named, name, () -> gauge);
}
public static <T> Gauge<T> gauge(String fullMetricsName, Gauge<T> gauge) {
return (Gauge<T>) register(fullMetricsName, () -> gauge);
}
@SuppressWarnings("unchecked")
public static <T> Gauge<T> gauge(ScriptContext scriptContext, String name, Gauge<T> gauge) {
return (Gauge<T>) register(scriptContext, name, () -> gauge);