This is an automated email from the ASF dual-hosted git repository.

mmerli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 1a4095e  [pulsar-function] fix worker-stats broken admin-api (#4068)
1a4095e is described below

commit 1a4095e703f9b1116ad3c7def438d74900ee1085
Author: Rajan Dhabalia <[email protected]>
AuthorDate: Thu Apr 18 12:58:02 2019 -0700

    [pulsar-function] fix worker-stats broken admin-api (#4068)
---
 .../org/apache/pulsar/functions/worker/rest/Resources.java   | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git 
a/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/Resources.java
 
b/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/Resources.java
index 530f528..4a53d3e 100644
--- 
a/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/Resources.java
+++ 
b/pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/rest/Resources.java
@@ -18,18 +18,19 @@
  */
 package org.apache.pulsar.functions.worker.rest;
 
+import java.util.Arrays;
+import java.util.HashSet;
+import java.util.Set;
+
 import org.apache.pulsar.functions.worker.rest.api.FunctionsMetricsResource;
 import org.apache.pulsar.functions.worker.rest.api.v2.FunctionApiV2Resource;
+import org.apache.pulsar.functions.worker.rest.api.v2.WorkerApiV2Resource;
+import org.apache.pulsar.functions.worker.rest.api.v2.WorkerStatsApiV2Resource;
 import org.apache.pulsar.functions.worker.rest.api.v3.FunctionApiV3Resource;
 import org.apache.pulsar.functions.worker.rest.api.v3.SinkApiV3Resource;
 import org.apache.pulsar.functions.worker.rest.api.v3.SourceApiV3Resource;
-import org.apache.pulsar.functions.worker.rest.api.v2.WorkerApiV2Resource;
 import org.glassfish.jersey.media.multipart.MultiPartFeature;
 
-import java.util.Arrays;
-import java.util.HashSet;
-import java.util.Set;
-
 public final class Resources {
 
     private Resources() {
@@ -40,6 +41,7 @@ public final class Resources {
                 Arrays.asList(
                         FunctionApiV2Resource.class,
                         WorkerApiV2Resource.class,
+                        WorkerStatsApiV2Resource.class,
                         MultiPartFeature.class
                 ));
     }

Reply via email to