Examples of ConnectionListener


Examples of org.jivesoftware.smack.ConnectionListener

      conConfig.setReconnectionAllowed(true);
      //conConfig.setDebuggerEnabled(true);
      if (connection == null || !connection.isAuthenticated()) {
        connection = new XMPPConnection(conConfig);
        connection.connect();
        connection.addConnectionListener(new ConnectionListener() {
 
          public void connectionClosed() {
            log.warn("IM admin connection closed!");
          }
 
View Full Code Here

Examples of org.mule.tck.listener.ConnectionListener

        // Assert messages are received correctly
        MuleMessage message = client.request("vm://out", RECEIVE_TIMEOUT);
        assertNotNull("No message received", message);

        ConnectionListener connectionListener = new ConnectionListener(muleContext)
                .setExpectedAction(ConnectionNotification.CONNECTION_FAILED).setNumberOfExecutionsRequired(3);

        // Stop the database, Mule should try to reconnect
        stopDatabase();

        // Wait for reconnect attempts ("connect failed" notifications)
        connectionListener.waitUntilNotificationsAreReceived();

        // Restart the database
        startDatabase();
        createTable();
        populateTable();
View Full Code Here

Examples of org.springframework.amqp.rabbit.connection.ConnectionListener

          ((CachingConnectionFactory) this.connectionFactory).getCacheMode() == CacheMode.CONNECTION) {
        logger.warn("RabbitAdmin auto declaration is not supported with CacheMode.CONNECTION");
        return;
      }

      this.connectionFactory.addConnectionListener(new ConnectionListener() {

        // Prevent stack overflow...
        private final AtomicBoolean initializing = new AtomicBoolean(false);

        @Override
View Full Code Here

Examples of se.bitcraze.crazyflie.ConnectionListener

    crazyflie.getLogging().addGroup("stabilizer", 200, "stabilizer.roll",
        "stabilizer.pitch", "stabilizer.yaw", "stabilizer.thrust");
    crazyflie.getLogging().addGroup("baro", 200, "baro.aslLong",
        "baro.temp", "baro.pressure");
    logging.startAll();
    crazyflie.addListener(new ConnectionListener() {

      @Override
      public void linkQualityUpdate(CrtpDriver l, int quality) {
        // log.info("linkQualityUpdate: {}", quality);
      }
View Full Code Here

Examples of weka.gui.sql.event.ConnectionListener

   * @param type      the type of the action, CONNECT or DISCONNECT
   * @param ex        an optional exception that happened (indicates failure!)
   */
  protected void notifyConnectionListeners(int type, Exception ex) {
    Iterator              iter;
    ConnectionListener    l;

    iter = m_ConnectionListeners.iterator();
    while (iter.hasNext()) {
      l = (ConnectionListener) iter.next();
      l.connectionChange(
          new ConnectionEvent(this, type, m_DbUtils, ex));
    }
  }
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.