0

flink playground 给出了一个演示,如下所示:

public final class GreeterAppServer {

  public static void main(String[] args) {
    final StatefulFunctions functions = new StatefulFunctions();
    functions.withStatefulFunction(UserFn.SPEC);
    functions.withStatefulFunction(GreetingsFn.SPEC);

    final RequestReplyHandler requestReplyHandler = functions.requestReplyHandler();
    final Undertow httpServer =
        Undertow.builder()
            .addHttpListener(1108, "0.0.0.0")
            .setHandler(new UndertowHttpHandler(requestReplyHandler))
            .build();
    httpServer.start();
  }

如何通过http请求访问该功能?发布?得到?

4

0 回答 0