com.xxl.rpc.remoting.net.impl.jetty.server.JettyServerHandler Java Examples
The following examples show how to use
com.xxl.rpc.remoting.net.impl.jetty.server.JettyServerHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: XxlJobDynamicScheduler.java From microservices-platform with Apache License 2.0 | 6 votes |
private void initRpcProvider(){ // init XxlRpcProviderFactory xxlRpcProviderFactory = new XxlRpcProviderFactory(); xxlRpcProviderFactory.initConfig( NetEnum.JETTY, Serializer.SerializeEnum.HESSIAN.getSerializer(), null, 0, XxlJobAdminConfig.getAdminConfig().getAccessToken(), null, null); // add services xxlRpcProviderFactory.addService(AdminBiz.class.getName(), null, XxlJobAdminConfig.getAdminConfig().getAdminBiz()); // jetty handler jettyServerHandler = new JettyServerHandler(xxlRpcProviderFactory); }
Example #2
Source File: XxlJobDynamicScheduler.java From zuihou-admin-boot with Apache License 2.0 | 5 votes |
private void initRpcProvider() { // init XxlRpcProviderFactory xxlRpcProviderFactory = new XxlRpcProviderFactory(); xxlRpcProviderFactory.initConfig(NetEnum.JETTY, Serializer.SerializeEnum.HESSIAN.getSerializer(), null, 0, XxlJobAdminConfig.getAdminConfig().getAccessToken(), null, null); // add services xxlRpcProviderFactory.addService(AdminBiz.class.getName(), null, XxlJobAdminConfig.getAdminConfig().getAdminBiz()); // jetty handler jettyServerHandler = new JettyServerHandler(xxlRpcProviderFactory); }
Example #3
Source File: XxlJobDynamicScheduler.java From zuihou-admin-cloud with Apache License 2.0 | 5 votes |
private void initRpcProvider() { // init XxlRpcProviderFactory xxlRpcProviderFactory = new XxlRpcProviderFactory(); xxlRpcProviderFactory.initConfig(NetEnum.JETTY, Serializer.SerializeEnum.HESSIAN.getSerializer(), null, 0, XxlJobAdminConfig.getAdminConfig().getAccessToken(), null, null); // add services xxlRpcProviderFactory.addService(AdminBiz.class.getName(), null, XxlJobAdminConfig.getAdminConfig().getAdminBiz()); // jetty handler jettyServerHandler = new JettyServerHandler(xxlRpcProviderFactory); }