You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/05/30 14:32:07 UTC
[GitHub] [pulsar] freeznet commented on a change in pull request #10697: [fix #9640] remove `pulsar-client-admin-api` dependency : `pulsar-common`
freeznet commented on a change in pull request #10697:
URL: https://github.com/apache/pulsar/pull/10697#discussion_r642085025
##########
File path: pulsar-client-admin-api/src/main/java/org/apache/pulsar/common/policies/data/FunctionStats.java
##########
@@ -18,25 +18,17 @@
*/
package org.apache.pulsar.common.policies.data;
-import com.fasterxml.jackson.annotation.JsonInclude;
-import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.annotation.JsonPropertyOrder;
-import java.io.IOException;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import lombok.Data;
import lombok.EqualsAndHashCode;
-import org.apache.pulsar.common.util.ObjectMapperFactory;
/**
* Statistics for Pulsar Function.
*/
@Data
-@JsonInclude(JsonInclude.Include.ALWAYS)
-@JsonPropertyOrder({"receivedTotal", "processedSuccessfullyTotal", "systemExceptionsTotal", "userExceptionsTotal",
Review comment:
My initial plan was to use MixIn class with jackson to add annotations but seems it is not working as I expected. So I extracted `FunctionStats` and inner classes with interfaces, please take another look on this commit https://github.com/apache/pulsar/pull/10697/commits/80fb31cab755915ef95034d2e43070f2249c130e, thanks.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org