Skip to content

Commit

Permalink
[pulsar-function] fix worker-stats broken admin-api (apache#4068)
Browse files Browse the repository at this point in the history
  • Loading branch information
rdhabalia authored and merlimat committed Apr 18, 2019
1 parent 6a2db62 commit 1a4095e
Showing 1 changed file with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -40,6 +41,7 @@ public static Set<Class<?>> getApiV2Resources() {
Arrays.asList(
FunctionApiV2Resource.class,
WorkerApiV2Resource.class,
WorkerStatsApiV2Resource.class,
MultiPartFeature.class
));
}
Expand Down

0 comments on commit 1a4095e

Please sign in to comment.