Examples of Connection

  • 2 ends that can be connected to {@link Gate}.
  • A {@link Path} that provides the path from the first end to the last end @author zxpletran007
  • spark.api.Connection
    A connection to a SPARQL processor. Connections can be used to create commands, get metadata, or be closed.
  • sun.rmi.transport.Connection
  • tv.floe.metronome.classification.neuralnetworks.core.Connection
  • vicazh.hyperpool.stream.Connection
    This class is the superclass of all connections @author Victor Zhigunov @version 0.4.8.3

  • Examples of nextapp.echo2.webrender.Connection

        /**
         * Determines the URI of the chat server based on either
         */
        private void loadServerUri() {
            Connection conn = WebRenderServlet.getActiveConnection();
            String chatServerUri = conn.getServlet().getInitParameter("ChatServerURI");
            if (chatServerUri != null && chatServerUri.trim().length() > 0) {
                this.chatServerUri = chatServerUri;
            } else {
                this.chatServerUri = (conn.getRequest().isSecure() ? "https" : "http")
                        + "://" + conn.getRequest().getServerName() + ":" + conn.getRequest().getServerPort() + "/ChatServer/app";
            }
        }
    View Full Code Here

    Examples of org.adbcj.Connection

          connection.close(true);
        }
      }

      public void testRollback() throws Exception {
        Connection connection = connectionManager.connect().get();
        try {
          // Clear out updates table
          Result result = connection.executeUpdate("DELETE FROM updates").get();
          assertNotNull(result);

          // Make sure updates is empty
          ResultSet rs = connection.executeQuery("SELECT id FROM updates").get();
          assertNotNull(rs);
          assertEquals(rs.size(), 0);

          connection.beginTransaction();

          // Insert a row
          result = connection.executeUpdate("INSERT INTO updates (id) VALUES (1)").get();
          assertNotNull(result);
          assertEquals(result.getAffectedRows(), Long.valueOf(1));

          // Make sure we can select the row
          rs = connection.executeQuery("SELECT id FROM updates").get();
          assertNotNull(rs);
          assertEquals(rs.size(), 1);
          Value value = rs.get(0).get(0);
          assertEquals(value.getInt(), 1);

          // Rollback transaction
          connection.rollback().get();

          // select query should now be empty
          rs = connection.executeQuery("SELECT id FROM updates").get();
          assertNotNull(rs);
          assertEquals(rs.size(), 0);

        } finally {
          connection.close(true);
        }
      }
    View Full Code Here

    Examples of org.apache.activemq.broker.Connection

            return connectionId == connectionId2 || (connectionId != null && connectionId.equals(connectionId2));
        }

        public Connection[] getClients() throws Exception {
            ArrayList<Connection> l = new ArrayList<Connection>(connections);
            Connection rc[] = new Connection[l.size()];
            l.toArray(rc);
            return rc;
        }
    View Full Code Here

    Examples of org.apache.agila.model.Connection

            }
           
            // create childrenNode.length connections
            Connection[] connections = new Connection[childrenNode.length];
            for(int i = 0; i < connections.length; i++) {
                Connection connection = new ConnectionImpl("connection_"+ i);           
               
                connection.setParentNode(parentNode);
                connection.setChildNode(childrenNode[i]);
               
                parentNode.addOutboundConnection(connection);
                childrenNode[i].addInboundConnection(connection);
               
                connections[i] = connection;
    View Full Code Here

    Examples of org.apache.blur.thrift.Connection

        int controllerPort = localConf.getInt(BLUR_CONTROLLER_BIND_PORT, 40010);
        for (int i = 0; i < num; i++) {
          try {
            ThriftServer server = ThriftBlurControllerServer.createServer(i, localConf);
            controllers.add(server);
            Connection connection = new Connection("localhost", controllerPort + i);
            if (builder.length() != 0) {
              builder.append(',');
            }
            builder.append(connection.getConnectionStr());
            startServer(server, connection);
          } catch (Exception e) {
            LOG.error(e);
            throw new RuntimeException(e);
          }
    View Full Code Here

    Examples of org.apache.cxf.connector.Connection

        }

        public void testCloseConnection() throws Exception {
         
            final Connection conn = (Connection)mci.getConnection(subj, cri);
            EasyMock.reset(mockListener);
            mockListener.connectionClosed(EasyMock.isA(ConnectionEvent.class));
            EasyMock.expectLastCall();
            EasyMock.replay(mockListener);      
            conn.close();
        }
    View Full Code Here

    Examples of org.apache.directory.ldapstudio.browser.core.internal.model.Connection

         */
        public IConnection getTestConnection()
        {
            if ( getAuthenticationMethod() == IConnection.AUTH_ANONYMOUS )
            {
                Connection conn;
                try
                {
                    conn = new Connection( null, getHostName(), getPort(), getEncyrptionMethod(), isAutoFetchBaseDns(),
                        new DN( getBaseDN() ), getCountLimit(), getTimeLimit(), getAliasesDereferencingMethod(),
                        getReferralsHandlingMethod(), IConnection.AUTH_ANONYMOUS, null, null );
                }
                catch ( NameException e )
                {
                    conn = null;
                }
                return conn;
            }
            else if ( getAuthenticationMethod() == IConnection.AUTH_SIMPLE )
            {
                Connection conn;
                try
                {
                    conn = new Connection( null, getHostName(), getPort(), getEncyrptionMethod(), isAutoFetchBaseDns(),
                        new DN( getBaseDN() ), getCountLimit(), getTimeLimit(), getAliasesDereferencingMethod(),
                        getReferralsHandlingMethod(), IConnection.AUTH_SIMPLE, getSimpleAuthBindPrincipal(),
                        getSimpleAuthBindPassword() );
                }
                catch ( NameException e )
    View Full Code Here

    Examples of org.apache.directory.studio.connection.core.Connection

         */
        public void select( Object obj )
        {
            if ( obj instanceof Connection )
            {
                Connection connection = ( Connection ) obj;

                mainWidget.getViewer().reveal( connection );
                mainWidget.getViewer().refresh( connection, true );
                mainWidget.getViewer().setSelection( new StructuredSelection( connection ), true );
            }
    View Full Code Here

    Examples of org.apache.geronimo.interop.rmi.iiop.client.Connection

            {
                return _forwardingAddress.$connect();
            }
            try
            {
                Connection conn = $getNamingContext().getConnectionPool().get(_protocol, $getEndpoint(), this);
                conn.beforeInvoke();
                return conn;
            }
            catch (RuntimeException ex)
            {
                throw ex;
    View Full Code Here

    Examples of org.apache.hadoop.hbase.client.Connection

       * The passed in list gets changed in this method
       */
      @Override
      protected void handleTableOperation(List<HRegionInfo> hris) throws IOException {
        MasterFileSystem fileSystemManager = masterServices.getMasterFileSystem();
        Connection conn = masterServices.getShortCircuitConnection();
        FileSystem fs = fileSystemManager.getFileSystem();
        Path rootDir = fileSystemManager.getRootDir();
        TableName tableName = hTableDescriptor.getTableName();

        try {
    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.