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.jgroups.blocks.BasicConnectionTable.Connection

            num_conns=ct1.getNumConnections();
            assertEquals(1, num_conns);
            num_conns=ct2.getNumConnections();
            assertEquals(1, num_conns);        
           
            Connection connection = ct1.getConnection(addr2);
            assertFalse("valid connection to peer",connection.isSocketClosed());
            connection = ct2.getConnection(addr1);
            assertFalse("valid connection to peer",connection.isSocketClosed());;     
                  
        }
    View Full Code Here

    Examples of org.jivesoftware.openfire.Connection

         * @param hostName the address's hostname of the client or null if using old connection manager.
         * @param hostAddress the textual representation of the address of the client or null if using old CM.
         * @return true if a session was created or false if the client should disconnect.
         */
        public boolean createClientSession(String connectionManagerDomain, String streamID, String hostName, String hostAddress) {
            Connection connection = new ClientSessionConnection(connectionManagerDomain, hostName, hostAddress);
            // Check if client is allowed to connect from the specified IP address. Ignore the checking if connection
            // manager is old version and is not passing client's address
            byte[] address = null;
            try {
                address = connection.getAddress();
            } catch (UnknownHostException e) {
                // Ignore
            }
            if (address == null || LocalClientSession.isAllowed(connection)) {
                LocalClientSession session =
    View Full Code Here

    Examples of org.jivesoftware.smack.Connection

         */
        public static Connection createMockedConnection(final Protocol protocol,
                        String initiatorJID, String xmppServer) {

            // mock XMPP connection
            Connection connection = mock(Connection.class);
            when(connection.getUser()).thenReturn(initiatorJID);
            when(connection.getServiceName()).thenReturn(xmppServer);

            // mock packet collector
            PacketCollector collector = mock(PacketCollector.class);
            when(connection.createPacketCollector(isA(PacketFilter.class))).thenReturn(
                            collector);
            Answer<Object> addIncoming = new Answer<Object>() {

                public Object answer(InvocationOnMock invocation) throws Throwable {
                    protocol.getRequests().add((Packet) invocation.getArguments()[0]);
    View Full Code Here

    Examples of org.jredis.connector.Connection

       * @return
       */
      protected Connection createSynchConnection (String host, int port, int database, byte[] credentials, boolean isShared, RedisVersion redisVersion)
      {
        InetAddress   address = null;
        Connection     synchConnection = null;
        try {
         
          address = InetAddress.getByName(host);
          ConnectionSpec spec = DefaultConnectionSpec.newSpec(address, port, database, credentials);
          synchConnection = createSynchConnection(spec, isShared, redisVersion);
    View Full Code Here

    Examples of org.jscsi.initiator.connection.Connection

        /** {@inheritDoc} */
        @Override
        public final boolean login (final Session session) throws Exception {

            final Connection connection = session.getNextFreeConnection();
            connection.nextState(new GetConnectionsRequestState(connection));
            session.releaseUsedConnection(connection);
            return true;
        }
    View Full Code Here

    Examples of org.jsmpp.session.connection.Connection

         * @throws IOException if there is an IO error occur.
         * @see SMPPServerSession
         * @see BindRequest
         */
        public SMPPServerSession accept() throws IOException {
            Connection conn = serverConn.accept();
            conn.setSoTimeout(initiationTimer);
            return new SMPPServerSession(conn, sessionStateListener,
                    messageReceiverListener, responseDeliveryListener,
                    pduProcessorDegree);
        }
    View Full Code Here

    Examples of org.jsoup.Connection

      public static Connection connect(final String url) {
        return Jsoup.connect(url);
      }

      public static Document document(final String url) {
        final Connection conn = connect(url);
        try {
          return conn.get();
        } catch (final IOException e) {
          e.printStackTrace();
        }
        return null;
      }
    View Full Code Here

    Examples of org.jvnet.glassfish.comms.clb.core.sip.Connection

            return md;
        }
       
        public static Connection getConnection(ViaImpl via) {
            String connectionIdentity = via.getParameter(CLBConstants.CONNID_PARAM);
            Connection connection = null;

            try {
                connection = (connectionIdentity != null)
                    ? Connection.getFromEncoded(connectionIdentity) : null;
            } catch (ConnectionParseException e) {
    View Full Code Here

    Examples of org.kie.api.definition.process.Connection

            if (CONSTRAINTS.equals(id)) {
                Iterator<Map.Entry<ConnectionRef, Constraint>> iterator = ((Map<ConnectionRef, Constraint>) value).entrySet().iterator();
                while (iterator.hasNext()) {
                    Map.Entry<ConnectionRef, Constraint> element = iterator.next();
                    ConnectionRef connectionRef = element.getKey();
                    Connection outgoingConnection = null;
                    for (Connection out: getStateNode().getOutgoingConnections(NodeImpl.CONNECTION_DEFAULT_TYPE)) {
                        if (out.getToType().equals(connectionRef.getToType())
                            && out.getTo().getId() == connectionRef.getNodeId()) {
                            outgoingConnection = out;
                        }
    View Full Code Here

    Examples of org.kie.definition.process.Connection

            if (CONSTRAINTS.equals(id)) {
                Iterator<Map.Entry<ConnectionRef, Constraint>> iterator = ((Map<ConnectionRef, Constraint>) value).entrySet().iterator();
                while (iterator.hasNext()) {
                    Map.Entry<ConnectionRef, Constraint> element = iterator.next();
                    ConnectionRef connectionRef = element.getKey();
                    Connection outgoingConnection = null;
                    for (Connection out: getStateNode().getOutgoingConnections(NodeImpl.CONNECTION_DEFAULT_TYPE)) {
                        if (out.getToType().equals(connectionRef.getToType())
                            && out.getTo().getId() == connectionRef.getNodeId()) {
                            outgoingConnection = out;
                        }
    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.