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 org.apache.hadoop.ipc.Server.Connection

          int serviceClass, boolean noChanged) throws IOException{
        Client client = new Client(LongWritable.class, conf);

        client.call(new LongWritable(RANDOM.nextLong()),
            addr, null, null, MIN_SLEEP_TIME, serviceClass, conf);
        Connection connection = server.getConnections().get(0);
        int serviceClass2 = connection.getServiceClass();
        assertFalse(noChanged ^ serviceClass == serviceClass2);
        client.stop();
      }
    View Full Code Here

    Examples of org.apache.jackrabbit.oak.api.Connection

        public Session login(Credentials credentials, String workspaceName) throws RepositoryException {
            // TODO: needs complete refactoring

            RepositoryService service = context.getInstance(RepositoryService.class);
            try {
                Connection connection = service.login(credentials, workspaceName);
                return new SessionImpl(context, connection);
            } catch (LoginException e) {
                throw new javax.jcr.LoginException(e.getMessage());
            }
    View Full Code Here

    Examples of org.apache.qpid.amqp_1_0.client.Connection

        protected SessionImpl(final ConnectionImpl connection, final AcknowledgeMode acknowledgeMode) throws JMSException
        {
            _connection = connection;
            _acknowledgeMode = acknowledgeMode;
            Connection clientConn = _connection.getClientConnection();
            try
            {
                _session = clientConn.createSession();
            }
            catch (ConnectionException e)
            {
                JMSException jmsException;
                if (e instanceof ChannelsExhaustedException)
    View Full Code Here

    Examples of org.apache.qpid.nclient.Connection

        }

        public static void main(String[] args)
        {
            // Create connection
            Connection con = Client.createConnection();
            try
            {
                con.connect("localhost", 5672, "test", "guest", "guest");
            }
            catch(Exception e)
            {
                System.out.print("Error connecting to broker");
                e.printStackTrace();
            }

            // Create session
            Session session = con.createSession(0);

            // Create an instance of the listener
            TopicPublisher publisher = new TopicPublisher();

            publisher.publishMessages(session, "usa.news");
            publisher.publishMessages(session, "usa.weather");
            publisher.publishMessages(session, "europe.news");
            publisher.publishMessages(session, "europe.weather");

            // confirm completion
            session.sync();

            //cleanup
            session.sessionDetach(session.getName());
            try
            {
                con.close();
            }
            catch(Exception e)
            {
                System.out.print("Error closing broker connection");
                e.printStackTrace();
    View Full Code Here

    Examples of org.apache.qpid.proton.engine.Connection

                    //        pn_connector_process(ctor);
                    //        return false;
                    //    }
                    // }

                    Connection connection = c.getConnection();
                    for (Link link : new Links(connection, ACTIVE, ANY))
                    {
                        if (link instanceof Sender)
                        {
                            total += link.getQueued();
    View Full Code Here

    Examples of org.apache.qpid.transport.Connection

        //--- constructor
        public AMQConnectionDelegate_0_10(AMQConnection conn)
        {
            _conn = conn;
            _qpidConnection = new Connection();
            _qpidConnection.addConnectionListener(this);
        }
    View Full Code Here

    Examples of org.apache.qpidity.nclient.Connection

        }

        public void start() throws AMQPSynapseException
        {
            Connection con = Client.createConnection();
            try{
                con.connect(url);
            }catch(Exception e){
                throw new AMQPSynapseException("Error creating a connection to the broker",e);
            }
        }
    View Full Code Here

    Examples of org.apache.tomcat.jdbc.test.driver.Connection

                       
                       
                        pcon = useuser ? (PooledConnection)AlternateUsernameTest.this.datasource.getConnection(username, password) :
                                         (PooledConnection)AlternateUsernameTest.this.datasource.getConnection();
                       
                        Connection con = (Connection)pcon.getConnection();
                       
                        assertTrue("Username mismatch: Requested User:"+username+" Actual user:"+con.getUsername(), con.getUsername().equals(username));
                        assertTrue("Password mismatch: Requested Password:"+password+" Actual password:"+con.getPassword(), con.getPassword().equals(password));
                    }catch (SQLException x) {
                        test.failures++;
                        test.lastMessage = x.getMessage();
                        done = true;
                        x.printStackTrace();
    View Full Code Here

    Examples of org.asem.eclipse.mii.model.abs.Connection

            if (newSource != null && !((IShape)newSource).canConnectTo(oldTarget))
                return false;

        // return false, if the connection exists already
        for (Iterator iter = newSource.getSourceConnections().iterator(); iter.hasNext();) {
          Connection conn = (Connection) iter.next();
          // return false if a newSource -> oldTarget connection exists
          // already
          // and it is a different instance than the connection-field
          if (conn.getTarget().equals(oldTarget) && !conn.equals(connection)) {
            return false;
          }
        }
        return true;
      }
    View Full Code Here

    Examples of org.cyclopsgroup.jmxterm.Connection

            throws IOException
        {
            Session session = getSession();
            if ( url == null )
            {
                Connection con = session.getConnection();
                if ( con == null )
                {
                    session.output.printMessage( "not connected" );
                    session.output.println( SyntaxUtils.NULL );
                }
                else
                {
                    session.output.println( String.format( "%s,%s", con.getConnectorId(), con.getUrl() ) );
                }
                return;
            }
            Map<String, Object> env;
            if ( user != null )
    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.