Package com.flaptor.util.remote

Examples of com.flaptor.util.remote.ExponentialFallbackPolicy


    private MultiExecutor<GroupedSearchResults> multiQueryExecutor;
    private List<String> searcherIPs = new ArrayList<String>();
    private long timeout;

    public MultiSearcher() {
      this(new ExponentialFallbackPolicy());
    }
View Full Code Here


     * Ctor with ExponentialFallbackPolicy
     * @param basePort
     * @param host
     */
    public RmiSearcherStub(final int basePort, final String host) {
      this(basePort, host, new ExponentialFallbackPolicy());
    }
View Full Code Here

    /**
     * @todo the searcher should be able to specify the connection policy.
     */
    public IndexUpdatesListenerStub(final int basePort, final String host) {
        super(PortUtil.getPort(basePort,"post.new.index"), host, new ExponentialFallbackPolicy(),true);
    }
View Full Code Here

    private static long CONNECTION_TIMEOUT = 5 * 60 * 1000L; // 5 min.
  /**
   * Constructor.
   */
    public PageCatcherStub(final int basePort, final String host) {
        super(PortUtil.getPort(basePort,"pagecatcher.rmi"), host, new ExponentialFallbackPolicy(),false);
        int catcherPort = PortUtil.getPort(basePort,"pagecatcher.rmi");
        logger.info("Creating PageCatcherStub for PageCatcher located at " + host + ":" + catcherPort);
        boolean connected = false;
        long start = System.currentTimeMillis();
        while (!connected) {
View Full Code Here

TOP

Related Classes of com.flaptor.util.remote.ExponentialFallbackPolicy

Copyright © 2018 www.massapicom. 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.