Codota Logo
XxlRpcProviderFactory.addService
Code IndexAdd Codota to your IDE (free)

How to use
addService
method
in
com.xxl.rpc.remoting.provider.XxlRpcProviderFactory

Best Java code snippets using com.xxl.rpc.remoting.provider.XxlRpcProviderFactory.addService (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: xuxueli/xxl-job

private void initRpcProvider(String ip, int port, String appName, String accessToken) throws Exception {
  // init, provider factory
  String address = IpUtil.getIpPort(ip, port);
  Map<String, String> serviceRegistryParam = new HashMap<String, String>();
  serviceRegistryParam.put("appName", appName);
  serviceRegistryParam.put("address", address);
  xxlRpcProviderFactory = new XxlRpcProviderFactory();
  xxlRpcProviderFactory.initConfig(NetEnum.JETTY, Serializer.SerializeEnum.HESSIAN.getSerializer(), ip, port, accessToken, ExecutorServiceRegistry.class, serviceRegistryParam);
  // add services
  xxlRpcProviderFactory.addService(ExecutorBiz.class.getName(), null, new ExecutorBizImpl());
  // start
  xxlRpcProviderFactory.start();
}
origin: xuxueli/xxl-job

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);
}
private void stopRpcProvider() throws Exception {
origin: com.xuxueli/xxl-job-core

private void initRpcProvider(String ip, int port, String appName, String accessToken) throws Exception {
  // init invoker factory
  xxlRpcInvokerFactory = new XxlRpcInvokerFactory();
  // init, provider factory
  String address = IpUtil.getIpPort(ip, port);
  Map<String, String> serviceRegistryParam = new HashMap<String, String>();
  serviceRegistryParam.put("appName", appName);
  serviceRegistryParam.put("address", address);
  xxlRpcProviderFactory = new XxlRpcProviderFactory();
  xxlRpcProviderFactory.initConfig(NetEnum.JETTY, Serializer.SerializeEnum.HESSIAN.getSerializer(), ip, port, accessToken, ExecutorServiceRegistry.class, serviceRegistryParam);
  // add services
  xxlRpcProviderFactory.addService(ExecutorBiz.class.getName(), null, new ExecutorBizImpl());
  // start
  xxlRpcProviderFactory.start();
}
origin: xuxueli/xxl-mq

public void initServer() throws Exception {
  // address, static registry
  ip = (ip!=null&&ip.trim().length()>0)?ip:IpUtil.getIp();
  String address = IpUtil.getIpPort(ip, port);
  XxlCommonRegistryData xxlCommonRegistryData = new XxlCommonRegistryData();
  xxlCommonRegistryData.setKey(IXxlMqBroker.class.getName());
  xxlCommonRegistryData.setValue(address);
  XxlCommonRegistryServiceImpl.staticRegistryData = xxlCommonRegistryData;
  // init server
  providerFactory = new XxlRpcProviderFactory();
  providerFactory.initConfig(NetEnum.NETTY, Serializer.SerializeEnum.HESSIAN.getSerializer(), ip, port, null, null, null);
  // add server
  providerFactory.addService(IXxlMqBroker.class.getName(), null, this);
  // start server
  providerFactory.start();
}
com.xxl.rpc.remoting.providerXxlRpcProviderFactoryaddService

Popular methods of XxlRpcProviderFactory

  • <init>
  • initConfig
  • start
  • stop

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • runOnUiThread (Activity)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • JList (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now