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

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

Best Java code snippets using com.xxl.rpc.remoting.provider.XxlRpcProviderFactory.start (Showing top 3 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: 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.providerXxlRpcProviderFactorystart

Popular methods of XxlRpcProviderFactory

  • <init>
  • addService
  • initConfig
  • stop

Popular in Java

  • Reading from database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
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