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 com.streamreduce.core.model.Connection

        public void testUpdateConnection_failsValidationIfS3OutboundBucketExists() throws Exception {
            createPreExistingBucket();

            awsConnection.setAccount(testAccount);
            awsConnection.setUser(testUser);
            Connection createdConnection = connectionService.createConnection(awsConnection);

            //AWS creds for jason@nodeable.com, but Dave gets billed so feel free to use these for fun and profit
            String anotherAccessKey = "AKIAJYE3KRM4KGQ43OKQ";
            String anotherSecretKey = "LplQfj37z4R0Uj00gErN0qLTr0ek8FHFrm30CUba";
            createdConnection.addOutboundConfiguration(new OutboundConfiguration.Builder()
                    .protocol("s3")
                    .dataTypes(OutboundDataType.PROCESSED)
                    .namespace(bucketName)
                    .credentials(new ConnectionCredentials(anotherAccessKey, anotherSecretKey))
                    .build());
    View Full Code Here

    Examples of com.subgraph.orchid.Connection

        }
        logger.fine("Get connection to "+ router.getAddress() + " "+ router.getOnionPort() + " " + router.getNickname());
        while(true) {
          Future<ConnectionImpl> f = getFutureFor(router, isDirectoryConnection);
          try {
            Connection c = f.get();
            if(c.isClosed()) {
              activeConnections.remove(router, f);
            } else {
              return c;
            }
          } catch (CancellationException e) {
    View Full Code Here

    Examples of com.sun.corba.ee.spi.legacy.connection.Connection

      J2EETransactionManager tm = Switch.getSwitch().getTransactionManager();
      if ( tm != null )
          tm.checkTransactionExport(StubAdapter.isLocal(target));

      // Get connection information and store it in ConnectionContext
      Connection c = ((RequestInfoExt)cri).connection();
      if(c != null) {
          SecurityMechanismSelector sms = new SecurityMechanismSelector();
          ConnectionContext cc = sms.getClientConnectionContext();
          if(_logger.isLoggable(Level.FINE)){
         _logger.log(Level.FINE,"SENDING request on connection: " + c);
          }
          if(cc != null) {
              cc.setSocket(c.getSocket());
          }
      }
        }
    View Full Code Here

    Examples of com.sun.corba.se.pept.transport.Connection

            bbwi.fragmented = false;
        }

        public void sendMessage ()
        {
            Connection conn =
                  ((OutputObject)outputObject).getMessageMediator().getConnection();

            conn.writeLock();

            try {

                conn.sendWithoutLock((OutputObject)outputObject);

                sentFullMessage = true;

            } finally {

                conn.writeUnlock();
            }
        }
    View Full Code Here

    Examples of com.sun.hotspot.igv.graph.Connection

            return connection;
        }

        public void updateControlPoints() {
            List<Point> newControlPoints = connection.getControlPoints();
            Connection c = connection;
            Figure f = c.getInputSlot().getFigure();
            Point p = new Point(f.getPosition());
            p.translate(c.getInputSlot().getRelativePosition().x, f.getSize().height / 2);
            Point p4 = new Point(f.getPosition());
            p4.translate(c.getInputSlot().getRelativePosition().x, c.getInputSlot().getRelativePosition().y);

            Figure f2 = c.getOutputSlot().getFigure();
            Point p2 = new Point(f2.getPosition());
            p2.translate(c.getOutputSlot().getRelativePosition().x, f2.getSize().height / 2);
            Point p3 = new Point(f2.getPosition());
            p3.translate(c.getOutputSlot().getRelativePosition().x, c.getOutputSlot().getRelativePosition().y);

            /*if(controlPoints.size() >= 2) {
            String className = Preferences.userNodeForPackage(PreferenceConstants.class).get(PreferenceConstants.KEY_LINE_GENERATOR, PreferenceConstants.DEFAULT_LINE_GENERATOR);
            try {
            LineGenerator lg = (LineGenerator)Class.forName(className).newInstance();
    View Full Code Here

    Examples of com.sun.jdi.connect.spi.Connection

            String cmd = exe + " -Xdebug -Xrunjdwp:transport=dt_socket,timeout=15000,address=" +
                key.address() +
                " -classpath " + System.getProperty("test.classes") +
                " " + className;
            Process process = Runtime.getRuntime().exec(cmd);
            Connection conn = ts.accept(key, 30*1000, 9*1000);
            ts.stopListening(key);

            /*
             * Debugee is connected - return the virtual machine mirror
             */
     
    View Full Code Here

    Examples of com.sun.messaging.jmq.jmsserver.service.Connection

                if (!valid) return;
                valid = false;
            }
            logger.log(Logger.DEBUG,"Close Session " + uid);
           
            Connection conn = Globals.getConnectionManager().getConnection(getConnectionUID());
            boolean old = false;
            if (conn != null && conn.getClientProtocolVersion() < Connection.RAPTOR_PROTOCOL) {
                old =true;
            }

            Iterator itr = null;
            synchronized (this) {
                itr = new HashSet(consumers.values()).iterator();
            }
            while (itr.hasNext()) {
                Consumer c =(Consumer)itr.next();
                itr.remove();
                detatchConsumer(c, null, old, false);
            }

            // deal w/ old messages
            synchronized(deliveredMessages) {
                if (!deliveredMessages.isEmpty()) {
                    // get the list by IDs
                    HashMap openMsgs = new HashMap();
                    itr = deliveredMessages.entrySet().iterator();
                    while (itr.hasNext()) {
                        Map.Entry entry = (Map.Entry)itr.next();
                        ackEntry e = (ackEntry)entry.getValue();

                        ConsumerUID cuid = e.getConsumerUID();
                        ConsumerUID storeduid = (e.getStoredUID() == null ? cuid:e.getStoredUID());

                        // deal w/ orphan messages
                        TransactionUID tid = e.getTUID();
                        if (tid != null) {
                            JMQXid jmqxid = Globals.getTransactionList().UIDToXid(tid);
                            if (jmqxid != null) {
                                Globals.getTransactionList().addOrphanAck(
                                        tid, e.getSysMessageID(), storeduid, cuid);
                                itr.remove();
                                continue;
                            }
                            TransactionState ts = Globals.getTransactionList().retrieveState(tid, true);
                            if (ts != null && ts.getState() == TransactionState.PREPARED) {
                                Globals.getTransactionList().addOrphanAck(
                                        tid, e.getSysMessageID(), storeduid, cuid);
                                itr.remove();
                                continue;
                            }
                            if (ts != null && ts.getState() == TransactionState.COMMITTED) {
                                itr.remove();
                                continue;
                            }
                            if (ts != null && conn != null &&
                                ts.getState() == TransactionState.COMPLETE &&
                                conn.getConnectionState() >= Connection.STATE_CLOSED) {
                                String[] args = { ""+tid,
                                                  TransactionState.toString(ts.getState()),
                                                  getConnectionUID().toString() };
                                logger.log(Logger.INFO, Globals.getBrokerResources().getKString(
                                           BrokerResources.I_CONN_CLEANUP_KEEP_TXN, args));
    View Full Code Here

    Examples of com.sun.xml.ws.transport.tcp.io.Connection

                    logger.log(Level.WARNING, MessagesMessages.WSTCP_0006_VERSION_MISMATCH());
                }
                return;
            }
           
            final Connection connection = connectionSession.getConnection();
            connection.setInputStreamByteBuffer(messageBuffer);
            connectionCache.requestReceived(connectionSession);
           
            try {
                do {
                    connection.prepareForReading()// Reading headers
                   
                    final int channelId = connection.getChannelId();
                    final ChannelContext channelContext = connectionSession.findWSServiceContextByChannelId(channelId);
                   
                    if (channelContext != null) {
                        listener.onMessage(channelContext);
                    } else {
    View Full Code Here

    Examples of com.taobao.gecko.service.Connection

            this.fileMessageSet.flush();
            assertEquals(2L * str.length(), this.fileMessageSet.highWaterMark());
            final FileMessageSet subSet = (FileMessageSet) this.fileMessageSet.slice(0, 100);

            assertEquals(2L * str.length(), subSet.highWaterMark());
            final Connection conn = EasyMock.createMock(Connection.class);
            EasyMock.expect(conn.getRemoteSocketAddress()).andReturn(new InetSocketAddress(8181)).anyTimes();

            final int opaque = 99;
            final IoBuffer head = IoBuffer.wrap(("value " + 2 * str.length() + " " + opaque + "\r\n").getBytes());
            conn.transferFrom(head, null, this.fileMessageSet.channel(), 0, 2 * str.length());
            EasyMock.expectLastCall();
            EasyMock.replay(conn);

            subSet.write(new GetCommand("test", "boyan-test", -1, 0, 1024 * 1024, opaque), new SessionContextImpl(null,
                conn));
    View Full Code Here

    Examples of com.trilead.ssh2.Connection

       */
      protected Connection getBaseAuthentication() throws Exception {

        try { // to connect and authenticate
          boolean isAuthenticated = false;
          this.setSshConnection(new Connection(this.host, this.port));

          if (proxyHost != null && this.proxyHost.length() > 0) {
            if (this.proxyUser != null && this.proxyUser.length() > 0) {
              this.getSshConnection().setProxyData(new HTTPProxyData(this.proxyHost, this.proxyPort));
            }
    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.