You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@eventmesh.apache.org by "mxsm (via GitHub)" <gi...@apache.org> on 2023/05/03 14:41:08 UTC

[GitHub] [eventmesh] mxsm opened a new pull request, #3862: [ISSUE #3338]Add OpenmessageGrpcProduder implemention in sdk-java

mxsm opened a new pull request, #3862:
URL: https://github.com/apache/eventmesh/pull/3862

   <!--
   ### Contribution Checklist
   
     - Name the pull request in the form "[ISSUE #XXXX] Title of the pull request", 
       where *XXXX* should be replaced by the actual issue number.
       Skip *[ISSUE #XXXX]* if there is no associated github issue for this pull request.
   
     - Fill out the template below to describe the changes contributed by the pull request. 
       That will give reviewers the context they need to do the review.
     
     - Each pull request should address only one issue. 
       Please do not mix up code from multiple issues.
     
     - Each commit in the pull request should have a meaningful commit message.
   
     - Once all items of the checklist are addressed, remove the above text and this checklist, 
       leaving only the filled out template below.
   
   (The sections below can be removed for hotfixes of typos)
   -->
   
   <!--
   (If this PR fixes a GitHub issue, please add `Fixes #<XXX>` or `Closes #<XXX>`.)
   -->
   
   Fixes #3338 
   
   ### Motivation
   
   - Add OpenmessageGrpcProduder implemention in sdk-java
   
   
   
   ### Modifications
   
   - Add OpenmessageGrpcProduder implemention in sdk-java
   
   
   ### Documentation
   
   - Does this pull request introduce a new feature? (yes / no)
   - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
   - If a feature is not applicable for documentation, explain why?
   - If a feature is not documented yet in this PR, please create a followup issue for adding the documentation
   


-- 
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.

To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: dev-help@eventmesh.apache.org


Re: [PR] [ISSUE #3338]Add OpenmessageGrpcProduder implemention in sdk-java (eventmesh)

Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #3862:
URL: https://github.com/apache/eventmesh/pull/3862#issuecomment-2070573938

   ## [Codecov](https://app.codecov.io/gh/apache/eventmesh/pull/3862?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
   Attention: Patch coverage is `53.10345%` with `68 lines` in your changes are missing coverage. Please review.
   > Project coverage is 13.96%. Comparing base [(`91aab4d`)](https://app.codecov.io/gh/apache/eventmesh/commit/91aab4d4ec18b7644c45e745fc85aafd053d8fd8?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to head [(`6406574`)](https://app.codecov.io/gh/apache/eventmesh/pull/3862?dropdown=coverage&src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   > Report is 536 commits behind head on master.
   
   > :exclamation: Current head 6406574 differs from pull request most recent head dabadff. Consider uploading reports for the commit dabadff to get more accurate results
   
   | [Files](https://app.codecov.io/gh/apache/eventmesh/pull/3862?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Patch % | Lines |
   |---|---|---|
   | [...h/client/grpc/producer/OpenMessageGrpProducer.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&filepath=eventmesh-sdk-java%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Feventmesh%2Fclient%2Fgrpc%2Fproducer%2FOpenMessageGrpProducer.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZXZlbnRtZXNoLXNkay1qYXZhL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9ldmVudG1lc2gvY2xpZW50L2dycGMvcHJvZHVjZXIvT3Blbk1lc3NhZ2VHcnBQcm9kdWNlci5qYXZh) | 13.63% | [38 Missing :warning: ](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [...ventmesh/client/grpc/util/EventMeshClientUtil.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&filepath=eventmesh-sdk-java%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Feventmesh%2Fclient%2Fgrpc%2Futil%2FEventMeshClientUtil.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZXZlbnRtZXNoLXNkay1qYXZhL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9ldmVudG1lc2gvY2xpZW50L2dycGMvdXRpbC9FdmVudE1lc2hDbGllbnRVdGlsLmphdmE=) | 80.95% | [6 Missing and 10 partials :warning: ](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [...sh/client/grpc/producer/EventMeshGrpcProducer.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&filepath=eventmesh-sdk-java%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Feventmesh%2Fclient%2Fgrpc%2Fproducer%2FEventMeshGrpcProducer.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZXZlbnRtZXNoLXNkay1qYXZhL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9ldmVudG1lc2gvY2xpZW50L2dycGMvcHJvZHVjZXIvRXZlbnRNZXNoR3JwY1Byb2R1Y2VyLmphdmE=) | 10.00% | [9 Missing :warning: ](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [...sh/storage/pulsar/consumer/PulsarConsumerImpl.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&filepath=eventmesh-storage-plugin%2Feventmesh-storage-pulsar%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Feventmesh%2Fstorage%2Fpulsar%2Fconsumer%2FPulsarConsumerImpl.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZXZlbnRtZXNoLXN0b3JhZ2UtcGx1Z2luL2V2ZW50bWVzaC1zdG9yYWdlLXB1bHNhci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvZXZlbnRtZXNoL3N0b3JhZ2UvcHVsc2FyL2NvbnN1bWVyL1B1bHNhckNvbnN1bWVySW1wbC5qYXZh) | 25.00% | [3 Missing :warning: ](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [.../storage/knative/consumer/KnativeConsumerImpl.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&filepath=eventmesh-storage-plugin%2Feventmesh-storage-knative%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Feventmesh%2Fstorage%2Fknative%2Fconsumer%2FKnativeConsumerImpl.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZXZlbnRtZXNoLXN0b3JhZ2UtcGx1Z2luL2V2ZW50bWVzaC1zdG9yYWdlLWtuYXRpdmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC9zdG9yYWdlL2tuYXRpdmUvY29uc3VtZXIvS25hdGl2ZUNvbnN1bWVySW1wbC5qYXZh) | 50.00% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   | [...standalone/consumer/StandaloneConsumerAdaptor.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&filepath=eventmesh-storage-plugin%2Feventmesh-storage-standalone%2Fsrc%2Fmain%2Fjava%2Forg%2Fapache%2Feventmesh%2Fstorage%2Fstandalone%2Fconsumer%2FStandaloneConsumerAdaptor.java&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache#diff-ZXZlbnRtZXNoLXN0b3JhZ2UtcGx1Z2luL2V2ZW50bWVzaC1zdG9yYWdlLXN0YW5kYWxvbmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC9zdG9yYWdlL3N0YW5kYWxvbmUvY29uc3VtZXIvU3RhbmRhbG9uZUNvbnN1bWVyQWRhcHRvci5qYXZh) | 0.00% | [1 Missing :warning: ](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
   
   <details><summary>Additional details and impacted files</summary>
   
   
   ```diff
   @@             Coverage Diff              @@
   ##             master    #3862      +/-   ##
   ============================================
   + Coverage     13.77%   13.96%   +0.19%     
   - Complexity     1290     1307      +17     
   ============================================
     Files           571      572       +1     
     Lines         29129    29267     +138     
     Branches       2837     2863      +26     
   ============================================
   + Hits           4012     4087      +75     
   - Misses        24745    24797      +52     
   - Partials        372      383      +11     
   ```
   
   
   
   </details>
   
   [:umbrella: View full report in Codecov by Sentry](https://app.codecov.io/gh/apache/eventmesh/pull/3862?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).   
   :loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


[GitHub] [eventmesh] codecov[bot] commented on pull request #3862: [ISSUE #3338]Add OpenmessageGrpcProduder implemention in sdk-java

Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #3862:
URL: https://github.com/apache/eventmesh/pull/3862#issuecomment-1533984673

   ## [Codecov](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
   > Merging [#3862](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (6406574) into [master](https://app.codecov.io/gh/apache/eventmesh/commit/91aab4d4ec18b7644c45e745fc85aafd053d8fd8?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (91aab4d) will **increase** coverage by `0.18%`.
   > The diff coverage is `53.10%`.
   
   > :exclamation: Current head 6406574 differs from pull request most recent head dabadff. Consider uploading reports for the commit dabadff to get more accurate results
   
   ```diff
   @@             Coverage Diff              @@
   ##             master    #3862      +/-   ##
   ============================================
   + Coverage     13.77%   13.95%   +0.18%     
   - Complexity     1290     1307      +17     
   ============================================
     Files           571      572       +1     
     Lines         29129    29260     +131     
     Branches       2837     2851      +14     
   ============================================
   + Hits           4012     4083      +71     
   - Misses        24745    24795      +50     
   - Partials        372      382      +10     
   ```
   
   
   | [Impacted Files](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
   |---|---|---|
   | [...tmesh/common/protocol/grpc/common/ProtocolKey.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLWNvbW1vbi9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvZXZlbnRtZXNoL2NvbW1vbi9wcm90b2NvbC9ncnBjL2NvbW1vbi9Qcm90b2NvbEtleS5qYXZh) | `0.00% <ø> (ø)` | |
   | [...mesh/storage/kafka/consumer/KafkaConsumerImpl.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXN0b3JhZ2UtcGx1Z2luL2V2ZW50bWVzaC1zdG9yYWdlLWthZmthL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9ldmVudG1lc2gvc3RvcmFnZS9rYWZrYS9jb25zdW1lci9LYWZrYUNvbnN1bWVySW1wbC5qYXZh) | `9.09% <ø> (ø)` | |
   | [...eventmesh/storage/pravega/PravegaConsumerImpl.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXN0b3JhZ2UtcGx1Z2luL2V2ZW50bWVzaC1zdG9yYWdlLXByYXZlZ2Evc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC9zdG9yYWdlL3ByYXZlZ2EvUHJhdmVnYUNvbnN1bWVySW1wbC5qYXZh) | `16.66% <ø> (ø)` | |
   | [...standalone/consumer/StandaloneConsumerAdaptor.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXN0b3JhZ2UtcGx1Z2luL2V2ZW50bWVzaC1zdG9yYWdlLXN0YW5kYWxvbmUvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC9zdG9yYWdlL3N0YW5kYWxvbmUvY29uc3VtZXIvU3RhbmRhbG9uZUNvbnN1bWVyQWRhcHRvci5qYXZh) | `0.00% <0.00%> (ø)` | |
   | [...che/eventmesh/trace/jaeger/JaegerTraceService.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXRyYWNlLXBsdWdpbi9ldmVudG1lc2gtdHJhY2UtamFlZ2VyL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9ldmVudG1lc2gvdHJhY2UvamFlZ2VyL0phZWdlclRyYWNlU2VydmljZS5qYXZh) | `60.00% <ø> (ø)` | |
   | [...eventmesh/trace/pinpoint/PinpointTraceService.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXRyYWNlLXBsdWdpbi9ldmVudG1lc2gtdHJhY2UtcGlucG9pbnQvc3JjL21haW4vamF2YS9vcmcvYXBhY2hlL2V2ZW50bWVzaC90cmFjZS9waW5wb2ludC9QaW5wb2ludFRyYWNlU2VydmljZS5qYXZh) | `52.17% <ø> (ø)` | |
   | [...che/eventmesh/trace/zipkin/ZipkinTraceService.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXRyYWNlLXBsdWdpbi9ldmVudG1lc2gtdHJhY2Utemlwa2luL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9ldmVudG1lc2gvdHJhY2Uvemlwa2luL1ppcGtpblRyYWNlU2VydmljZS5qYXZh) | `55.12% <ø> (ø)` | |
   | [...sh/client/grpc/producer/EventMeshGrpcProducer.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXNkay1qYXZhL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9ldmVudG1lc2gvY2xpZW50L2dycGMvcHJvZHVjZXIvRXZlbnRNZXNoR3JwY1Byb2R1Y2VyLmphdmE=) | `40.42% <10.00%> (-5.73%)` | :arrow_down: |
   | [...h/client/grpc/producer/OpenMessageGrpProducer.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXNkay1qYXZhL3NyYy9tYWluL2phdmEvb3JnL2FwYWNoZS9ldmVudG1lc2gvY2xpZW50L2dycGMvcHJvZHVjZXIvT3Blbk1lc3NhZ2VHcnBQcm9kdWNlci5qYXZh) | `13.63% <13.63%> (ø)` | |
   | [...sh/storage/pulsar/consumer/PulsarConsumerImpl.java](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-ZXZlbnRtZXNoLXN0b3JhZ2UtcGx1Z2luL2V2ZW50bWVzaC1zdG9yYWdlLXB1bHNhci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvZXZlbnRtZXNoL3N0b3JhZ2UvcHVsc2FyL2NvbnN1bWVyL1B1bHNhckNvbnN1bWVySW1wbC5qYXZh) | `5.88% <25.00%> (ø)` | |
   | ... and [2 more](https://app.codecov.io/gh/apache/eventmesh/pull/3862?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
   
   :mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [PR] [ISSUE #3338] Add OpenmessageGrpcProduder implemention in sdk-java (eventmesh)

Posted by "Pil0tXia (via GitHub)" <gi...@apache.org>.
Pil0tXia commented on code in PR #3862:
URL: https://github.com/apache/eventmesh/pull/3862#discussion_r1575645832


##########
eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/grpc/producer/OpenMessageGrpProducer.java:
##########
@@ -0,0 +1,123 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.eventmesh.client.grpc.producer;
+
+import org.apache.eventmesh.client.grpc.config.EventMeshGrpcClientConfig;
+import org.apache.eventmesh.client.grpc.util.EventMeshClientUtil;
+import org.apache.eventmesh.common.enums.EventMeshProtocolType;
+import org.apache.eventmesh.common.protocol.grpc.protos.BatchMessage;
+import org.apache.eventmesh.common.protocol.grpc.protos.PublisherServiceGrpc.PublisherServiceBlockingStub;
+import org.apache.eventmesh.common.protocol.grpc.protos.Response;
+import org.apache.eventmesh.common.protocol.grpc.protos.SimpleMessage;
+
+import org.apache.commons.collections4.CollectionUtils;
+
+import java.util.List;
+import java.util.concurrent.TimeUnit;
+
+
+import io.openmessaging.api.Message;
+
+import lombok.extern.slf4j.Slf4j;
+
+@Slf4j
+public class OpenMessageGrpProducer implements GrpcProducer<Message> {
+
+    private static final EventMeshProtocolType PROTOCOL_TYPE = EventMeshProtocolType.OPEN_MESSAGE;
+
+    private final EventMeshGrpcClientConfig clientConfig;
+
+    private final PublisherServiceBlockingStub publisherClient;
+
+    public OpenMessageGrpProducer(EventMeshGrpcClientConfig clientConfig, PublisherServiceBlockingStub publisherClient) {
+        this.clientConfig = clientConfig;
+        this.publisherClient = publisherClient;
+    }
+
+    @Override
+    public Response publish(Message message) {
+
+        if (null == message) {
+            return null;
+        }
+
+        if (log.isDebugEnabled()) {
+            log.info("Publish message: {}", message);
+        }
+        SimpleMessage simpleMessage = EventMeshClientUtil.buildSimpleMessage(message, clientConfig, PROTOCOL_TYPE);
+        try {
+            Response response = publisherClient.publish(simpleMessage);
+            if (log.isInfoEnabled()) {
+                log.info("Received response:{}", response);
+            }
+            return response;
+        } catch (Exception e) {
+            log.error("Error in publishing message {}", message, e);
+        }
+        return null;
+    }
+
+    @Override
+    public Response publish(List<Message> messages) {
+
+        if (CollectionUtils.isEmpty(messages)) {
+            return null;
+        }
+        BatchMessage batchMessage = EventMeshClientUtil.buildBatchMessages(messages, clientConfig, PROTOCOL_TYPE);
+        try {
+            Response response = publisherClient.batchPublish(batchMessage);
+            if (log.isInfoEnabled()) {
+                log.info("Received response:{}", response);
+            }
+            return response;
+        } catch (Exception e) {
+            if (log.isErrorEnabled()) {
+                log.error("Error in BatchPublish message {}", messages, e);
+            }
+        }
+        return null;
+    }
+
+    @Override
+    public Message requestReply(final Message message, long timeout) {
+        if (log.isInfoEnabled()) {
+            log.info("RequestReply message:{}", message);
+        }
+
+        SimpleMessage simpleMessage = EventMeshClientUtil.buildSimpleMessage(message, clientConfig, PROTOCOL_TYPE);

Review Comment:
   SimpleMessage has been renamed. Please resolve conflicts~



-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org


Re: [PR] [ISSUE #3338]Add OpenmessageGrpcProduder implemention in sdk-java (eventmesh)

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #3862:
URL: https://github.com/apache/eventmesh/pull/3862#issuecomment-2070568667

   It has been 60 days since the last activity on this pull request. I am reaching out here to gently remind you that the Apache EventMesh community values every pull request, and please feel free to get in touch with the reviewers at any time. They are available to assist you in advancing the progress of your pull request and offering the latest feedback.
   
   If you encounter any challenges during development, seeking support within the community is encouraged. We sincerely appreciate your contributions to Apache EventMesh.


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: issues-help@eventmesh.apache.org