Examples of ConnectionEntry


Examples of com.caucho.quercus.env.ConnectionEntry

      if (url == null || url.equals("")) {
        url = "jdbc:postgresql://" + host + ":" + port + "/" + dbname;
      }

      ConnectionEntry jConn;
     
      jConn = env.getConnection(driver, url, userName, password, ! isNewLink);

      return jConn;
    } catch (SQLException e) {
View Full Code Here

Examples of jsync.types.ConnectionEntry

   
    List<ConnectionEntry> entries = ConnectionsHelper.getConnectionEntries();
   
    while(entries.size() > 0)
    { 
      ConnectionEntry entry = entries.get(0);
         
          String srcPath = entry.getSource();
            String destPath = entry.getDestination();
            List<String> excludes = entry.getExcludes();
           
            String fullSrcPath = Path.getAbsolutePath(srcPath);
            String fullDestPath = Path.getAbsolutePath(destPath);
           
            if(Path.exists(fullSrcPath) == false)
View Full Code Here

Examples of jsync.types.ConnectionEntry

                String targetValue = file.getValue("targets", t);
               
                if(targetValue == null)
                  targetValue = target;
               
                entries.add(new ConnectionEntry(srcValue, targetValue, excludeList));
              }
          }
    }
   
    return entries;
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      if (config.getConnectionTTLOverride() != -1)
      {
         ttl = config.getConnectionTTLOverride();
      }

      final ConnectionEntry entry = new ConnectionEntry(rc, connectionExecutor, System.currentTimeMillis(), ttl);

      final Channel channel0 = rc.getChannel(0, -1);

      channel0.setHandler(new LocalChannelHandler(config, entry, channel0, acceptorUsed, rc));
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      return started;
   }

   public RemotingConnection removeConnection(final Object remotingConnectionID)
   {
      ConnectionEntry entry = connections.remove(remotingConnectionID);

      if (entry != null)
      {
         return entry.connection;
      }
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      if (pmgr == null)
      {
         throw HornetQMessageBundle.BUNDLE.unknownProtocol(protocol);
      }

      ConnectionEntry entry = pmgr.createConnectionEntry((Acceptor) component, connection);

      if (isTrace)
      {
         HornetQServerLogger.LOGGER.trace("Connection created " + connection);
      }
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      if (isTrace)
      {
         HornetQServerLogger.LOGGER.trace("Connection removed " + connectionID + " from server " + this.server, new Exception("trace"));
      }

      ConnectionEntry conn = connections.get(connectionID);

      if (conn != null)
      {
         // Bit of a hack - find a better way to do this
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

   private final class DelegatingBufferHandler implements BufferHandler
   {
      public void bufferReceived(final Object connectionID, final HornetQBuffer buffer)
      {
         ConnectionEntry conn = connections.get(connectionID);

         if (conn != null)
         {
            conn.connection.bufferReceived(connectionID, buffer);
         }
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

   @Override
   public ConnectionEntry createConnectionEntry(Acceptor acceptorUsed, Connection connection)
   {
      ProtonRemotingConnection conn = new ProtonRemotingConnection(acceptorUsed, connection, this);
      //todo do we have a ttl?
      return new ConnectionEntry(conn, null, System.currentTimeMillis(), 1 * 60 * 1000);
   }
View Full Code Here

Examples of org.hornetq.spi.core.protocol.ConnectionEntry

      return started;
   }

   public RemotingConnection removeConnection(final Object remotingConnectionID)
   {
      ConnectionEntry entry = connections.remove(remotingConnectionID);

      if (entry != null)
      {
         return entry.connection;
      }
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.