Examples of RmiServer


Examples of com.flaptor.util.remote.RmiServer

        Config config = Config.getConfig("searcher.properties");
        this.indexDir = Config.getConfig("common.properties").getString("baseDir")
                  + File.separator + config.getString("searcher.dir")
                  + File.separator + "indexes";
        int fetchIndexPort = PortUtil.getPort("post.new.index");
        server = new RmiServer(fetchIndexPort);
        server.addHandler(RmiServer.DEFAULT_SERVICE_NAME, this);
        server.start();
    }
View Full Code Here

Examples of com.flaptor.util.remote.RmiServer

        this.baseSearcher = baseSearcher;
        if (rmi) {
            int port = PortUtil.getPort("searcher.rmi");
            logger.info("MultipleRpcSearcher constructor: starting rmi searcher on port " + port);
            rmiSearcherWrapper = new RmiSearcherWrapper(baseSearcher);
            rmiServer = new RmiServer(port);
            rmiServer.addHandler(RmiServer.DEFAULT_SERVICE_NAME, rmiSearcherWrapper);
            rmiServer.start();
        }
        if (xmlrpc) {
            int port = PortUtil.getPort("searcher.xmlrpc");
View Full Code Here

Examples of com.flaptor.util.remote.RmiServer

    public MultipleRpcIndexer(IIndexer indexer, boolean rmi, boolean xmlrpc) {
        this.baseIndexer = indexer;
        if (rmi) {
          int port = PortUtil.getPort("indexer.rmi");
            logger.info("MultipleRpcIndexer constructor: starting rmi indexer on port " + port);
            rmiServer = new RmiServer(port);
            rmiServer.addHandler(RmiServer.DEFAULT_SERVICE_NAME, (IRmiIndexer)baseIndexer);
            rmiServer.start();
        }
        if (xmlrpc) {
          int port = PortUtil.getPort("indexer.xml");
View Full Code Here

Examples of com.flaptor.util.remote.RmiServer

        if (pageDir.length() > 0) {
            pageCache = new FileCache<DocumentCacheItem>(pageDir);
        }
        textLengthLimit = globalConfig.getInt("page.text.max.length");
       
        cacheRmiServer = new RmiServer(PortUtil.getPort("crawler.pageCache.rmi"));
        cacheRmiServer.addHandler(RmiServer.DEFAULT_SERVICE_NAME, pageCache);
        try {
          cacheRmiServer.start();
        } catch (Exception e) {
          logger.warn("Starting cache server", e);
View Full Code Here

Examples of com.flaptor.util.remote.RmiServer

    // Publish this catcher on the RMI registry.
    private void exportCatcher(int basePort) {
        try {
            this.port = com.flaptor.util.PortUtil.getPort(basePort,"pagecatcher.rmi");
            this.server = new RmiServer(this.port);
            this.server.addHandler(RmiServer.DEFAULT_SERVICE_NAME,this);
            this.server.start();
            //RmiUtil.registerLocalService(port,"PageCatcher",this);
        } catch (Exception e) {
            logger.error(e,e);
View Full Code Here

Examples of de.jetwick.rmi.RMIServer

        producerFromFriends.setTwitterSearch(tws);
        producerFromFriends.setUserSearch(userSearch);
        producerFromFriends.setUncaughtExceptionHandler(excHandler);

        // feeding consumer from UI       
        RMIServer rmiServer = injector.getInstance(RMIServer.class);
        rmiServer.setQueue(twConsumer.register("producer-rmi", queueCapacity, 20));
        Thread rmiServerThread = rmiServer.createThread();
 
        // configure tweet index to call UrlResolver after feeding of a tweet       
        tweetSearch.setRemoveOlderThanDays(cfg.getTweetSearchRemoveDays());
        tweetSearch.setBatchSize(cfg.getTweetSearchBatch());               
View Full Code Here

Examples of de.jetwick.rmi.RMIServer

//        urlResolver.setMaxQueueSize(config.getUrlResolverHelperQueueSize());       
        return urlResolver;
    }

    public void installRMIModule() {
        bind(RMIServer.class).toInstance(new RMIServer(config));
    }
View Full Code Here

Examples of javax.management.remote.rmi.RMIServer

    public static void main(String[] args) throws Exception {

        // Create RMIJRMPServerImpl
        //
        System.out.println("Create RMIJRMPServerImpl");
        RMIServer server = new RMIJRMPServerImpl(0, null, null, null);

        // Get the JMX Remote impl version from RMIServer
        //
        System.out.println("Get JMX Remote implementation version from RMIServer");
        String full_version = server.getVersion();
        System.out.println("RMIServer.getVersion() = "+ full_version);
        String impl_version = full_version.substring(
            full_version.indexOf("java_runtime_")+"java_runtime_".length());

        // Display JMX Remote impl version and Java Runtime version
View Full Code Here

Examples of org.cspoker.server.rmi.RMIServer

          String host = attributes.getValue("host");
          String type = attributes.getValue("type");
          if (type.equals("rmi")) {
            try {
              // need to do this in two steps to prevent GC!!
              rmiserver = new RMIServer(port, cspokerServer);
              rmiserver.start();
            } catch (AccessException e) {
              logger.warn("Failed to start RMI server at port " + port, e);
            } catch (RemoteException e) {
              logger.warn("Failed to start RMI server at port " + port, e);
View Full Code Here

Examples of pl.icedev.rmi.RMIServer

import java.util.Map;

public class TestCS {

    public static void main(String[] args) throws IOException {
        final RMIServer serv = new RMIServer(new InetSocketAddress(2888));
        serv.registerInterface(new AwesomeServiceImpl(), AwesomeService.class);

        new Thread(new Runnable() {
            public void run() {
                try {
                    System.out.println("Listening.");
                    while (true) {
                        serv.update(-1);
                    }
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.