wolfstudy commented on issue #7005:
URL: https://github.com/apache/pulsar/issues/7005#issuecomment-636444912


   @itaross Thanks for your feedback. Do you want to test the pulsar source or 
pulsar sink using java code in a [similar 
way](https://pulsar.apache.org/docs/en/functions-debug/#debug-with-localrun-mode)?
   
   For example:
   
   ```
       public static void main(String[] args) throws Exception {
           SourceConfig sourceConfig = new SourceConfig();
           sourceConfig.setName("exclamation");
           sourceConfig.setClassName(ExclamationFunction.class.getName());
           LocalRunner sourceLocalRunner = 
LocalRunner.builder().sourceConfig(sourceConfig).build();
           sourceLocalRunner.start(false);
       }
   ```


----------------------------------------------------------------
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:
[email protected]


Reply via email to