Examples of RemotingConnectionImpl


Examples of org.hornetq.core.protocol.core.impl.RemotingConnectionImpl

               ClientSessionFactoryImpl.log.trace("returning connection = " + connection + " as tc == null");
            }
            return connection;
         }

         connection = new RemotingConnectionImpl(tc, callTimeout, interceptors);

         connection.addFailureListener(new DelegatingFailureListener(connection.getID()));

         Channel channel0 = connection.getChannel(0, -1);
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.RemotingConnectionImpl

                     break;
                  }

                  Thread.sleep(1);

                  final RemotingConnectionImpl conn = (RemotingConnectionImpl)((ClientSessionInternal)session).getConnection();

                  // True means... fail session
                  if (poll)
                  {
                     conn.fail(new HornetQException(HornetQException.NOT_CONNECTED, "poop"));
                  }
                  else
                  {
                     // false means... finish thread
                     break;
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.RemotingConnectionImpl

   {
      SimpleString queue = RandomUtil.randomSimpleString();
      SimpleString address = RandomUtil.randomSimpleString();

      session.createTemporaryQueue(address, queue);
      RemotingConnectionImpl conn = (RemotingConnectionImpl)server.getRemotingService()
                                                                  .getConnections()
                                                                  .iterator()
                                                                  .next();

      final CountDownLatch latch = new CountDownLatch(1);
      conn.addCloseListener(new CloseListener()
      {
         public void connectionClosed()
         {
            latch.countDown();
         }
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.RemotingConnectionImpl

               HornetQClientLogger.LOGGER.trace("returning connection = " + connection + " as tc == null");
            }
            return connection;
         }

         connection = new RemotingConnectionImpl(packetDecoder, tc, callTimeout, callFailoverTimeout, incomingInterceptors, outgoingInterceptors);

         connection.addFailureListener(new DelegatingFailureListener(connection.getID()));

         Channel channel0 = connection.getChannel(0, -1);
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.RemotingConnectionImpl

      }


      public String getUsername(final Packet packet, final RemotingConnection connection)
      {
         RemotingConnectionImpl impl = (RemotingConnectionImpl)connection;
         ChannelImpl channel = (ChannelImpl) impl.getChannel(packet.getChannelID(), -1);
         ServerSessionPacketHandler sessionHandler = (ServerSessionPacketHandler) channel.getHandler();
         return sessionHandler.getSession().getUsername();
      }
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.RemotingConnectionImpl

      }


      public String getUsername(final Packet packet, final RemotingConnection connection)
      {
         RemotingConnectionImpl impl = (RemotingConnectionImpl)connection;
         ChannelImpl channel = (ChannelImpl) impl.getChannel(packet.getChannelID(), -1);
         ServerSessionPacketHandler sessionHandler = (ServerSessionPacketHandler) channel.getHandler();
         return sessionHandler.getSession().getUsername();
      }
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.RemotingConnectionImpl

                     break;
                  }

                  Thread.sleep(1);

                  final RemotingConnectionImpl conn = (RemotingConnectionImpl)((ClientSessionInternal)session).getConnection();

                  // True means... fail session
                  if (poll)
                  {
                     conn.fail(new HornetQException(HornetQException.NOT_CONNECTED, "poop"));
                  }
                  else
                  {
                     // false means... finish thread
                     break;
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.RemotingConnectionImpl

   {
      SimpleString queue = RandomUtil.randomSimpleString();
      SimpleString address = RandomUtil.randomSimpleString();

      session.createTemporaryQueue(address, queue);
      RemotingConnectionImpl conn = (RemotingConnectionImpl)server.getRemotingService()
                                                                  .getConnections()
                                                                  .iterator()
                                                                  .next();

      final CountDownLatch latch = new CountDownLatch(1);
      conn.addCloseListener(new CloseListener()
      {
         public void connectionClosed()
         {
            latch.countDown();
         }
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.RemotingConnectionImpl

      ClientProducer prod = session.createProducer("tmpAd");

      session.start();

      RemotingConnectionImpl conn = (RemotingConnectionImpl)((ClientSessionInternal)session).getConnection();

      conn.fail(new HornetQException(HornetQException.IO_ERROR));

      prod.send(session.createMessage(false));
      session.commit();

      assertNotNull(consumer.receive(1000));
View Full Code Here

Examples of org.hornetq.core.protocol.core.impl.RemotingConnectionImpl

               HornetQLogger.LOGGER.trace("returning connection = " + connection + " as tc == null");
            }
            return connection;
         }

         connection = new RemotingConnectionImpl(tc, callTimeout, callFailoverTimeout, interceptors);

         connection.addFailureListener(new DelegatingFailureListener(connection.getID()));

         Channel channel0 = connection.getChannel(0, -1);
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.