Examples of reconnect()


Examples of com.alibaba.dubbo.remoting.Client.reconnect()

        +Constants.RECONNECT_KEY+"="+10 //1ms reconnect,保证有足够频率的重连
        +"&reconnect.waring.period=1";
        DubboAppender.doStart();
        Client client = Exchangers.connect(url);
        try {
      client.reconnect();
    } catch (Exception e) {
      //do nothing
    }
        Thread.sleep(1500);//重连线程的运行
        Assert.assertTrue("have more then one warn msgs . bug was :" + LogUtil.findMessage(Level.WARN, "client reconnect to "),LogUtil.findMessage(Level.WARN, "client reconnect to ") >1);
View Full Code Here

Examples of com.almende.eve.transport.TransportService.reconnect()

      // init scheduler tasks
      scheduler = host.getScheduler(this);
    } else if (AgentSignal.ADDTRANSPORTSERVICE.equals(event.getEvent())) {
      final TransportService service = (TransportService) event.getData();
      try {
        service.reconnect(getId());
      } catch (final IOException e) {
        LOG.log(Level.WARNING,
            "Failed to reconnect agent on new transport.", e);
      }
    }
View Full Code Here

Examples of com.google.walkaround.slob.server.SlobStore.reconnect()

      throws IOException, JSONException {
    JSONObject result = new JSONObject();
    SlobStore store = storeSelector.get(session.getStoreType()).getSlobStore();
    try {
      int revision = Integer.parseInt(requireParameter(req, Params.REVISION));
      ConnectResult r = store.reconnect(session.getObjectId(), session.getClientId());
      if (r.getChannelToken() != null) {
        result.put("token", r.getChannelToken());
        HistoryResult history = store.loadHistory(session.getObjectId(), revision, null);
        result.put("history", HistoryHandler.serializeHistory(revision, history.getData()));
        result.put("head", r.getVersion());
View Full Code Here

Examples of com.xmultra.processor.db.exception.ContentPersistenceException.reconnect()

                  this.logError(cpe, "processItem()");
                }
                else if (cpe.getSeverityLevel() == ContentPersistenceException.LOW_SEVERITY) {
                  this.logWarning(cpe, "processItem()");
                }
                if (cpe.reconnect()) {
                  reconnectFlag = true;
                }
              }
              if (reconnectFlag) {
                this.getNewDBConnection();
View Full Code Here

Examples of de.anomic.server.serverCore.reconnect()

            // generate new shortcut (used for Windows)
            //yacyAccessible.setNewPortBat(Integer.parseInt(port));
            //yacyAccessible.setNewPortLink(Integer.parseInt(port));
           
            // force reconnection in 7 seconds
            theServerCore.reconnect(7000);
        } else {
            reconnect = false;
            prop.put("reconnect", "0");
        }
View Full Code Here

Examples of de.anomic.server.serverCore.reconnect()

                    prop.put("info_restart_ip",(hostName.equals("0.0.0.0"))? "localhost" : hostName);
                    prop.put("info_restart_port", theNewAddress.getPort());

                    env.setConfig("port", port);

                    theServerCore.reconnect(5000);
                } catch (final SocketException e) {
                    prop.put("info", "26");
                    return prop;
                }
            } else {
View Full Code Here

Examples of javax.naming.ldap.InitialLdapContext.reconnect()

                ctx.addToEnvironment(Context.SECURITY_PRINCIPAL, userDN);
                ctx.addToEnvironment(Context.SECURITY_CREDENTIALS, inputPassword);
                ctx.addToEnvironment(Context.SECURITY_AUTHENTICATION, "simple");

                //if successful then verified that user and pw are valid ldap credentials
                ctx.reconnect(null);

                return true;
            }

            // If we try all the BaseDN's and have not found a match, return false
View Full Code Here

Examples of javax.naming.ldap.InitialLdapContext.reconnect()

                ctx.addToEnvironment(Context.SECURITY_CREDENTIALS,testUserPassword);
                ctx.addToEnvironment(Context.SECURITY_AUTHENTICATION,"simple");

                // if successful then verified that user and pw
                // are valid ldap credentials
                ctx.reconnect(null);
                msg = "STEP-2:PASS: The user '"
                    + testUserName
                    + "' was succesfully authenticated using userDN '"
                    + userDN + "' and password provided.\n"
                    +"*Note: the loginProperty must match the loginProperty listed in dn: for the user. It is the DN that RHQ will lookup and use.";
View Full Code Here

Examples of javax.naming.ldap.InitialLdapContext.reconnect()

        server.setResponseSeq(new LdapMessage[] { new LdapMessage(
                LdapASN1Constant.OP_BIND_RESPONSE, new BindResponse(), null) });

        expected = new Control[] { new SortControl("", Control.NONCRITICAL) };
        context.reconnect(expected);

        controls = context.getConnectControls();
        assertNotNull(controls);
        assertEquals(1, controls.length);
        c = controls[0];
View Full Code Here

Examples of javax.naming.ldap.InitialLdapContext.reconnect()

        assertTrue(c instanceof SortControl);
        assertEquals(Control.NONCRITICAL, ((SortControl) c).isCritical());

        server.setResponseSeq(new LdapMessage[] { new LdapMessage(
                LdapASN1Constant.OP_BIND_RESPONSE, new BindResponse(), null) });
        context.reconnect(null);

        assertNull(context.getConnectControls());
    }

    public void testReconnect_share_connection() throws Exception {
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.