Examples of TcpTransport


Examples of com.nokia.dempsy.messagetransport.tcp.TcpTransport

      dempsy.setApplicationDefinitions(ads);
      dempsy.setClusterCheck(new SpecificClusterCheck(clusterId));
      dempsy.setDefaultRoutingStrategy(new DecentralizedRoutingStrategy(20, 1));
      dempsy.setDefaultSerializer(new JavaSerializer<Object>());
      dempsy.setDefaultStatsCollectorFactory(new StatsCollectorFactoryCoda());
      dempsy.setDefaultTransport(new TcpTransport());
      //------------------------------------------------------------------------------

      return dempsy;
   }
View Full Code Here

Examples of com.sun.sgs.impl.transport.tcp.TcpTransport

        shutdown();
    }
   
    @Test(expected=NullPointerException.class)
    public void testNullProperties() throws Exception {       
        transport = new TcpTransport(null);
    }
View Full Code Here

Examples of net.sourceforge.peers.nat.api.TCPTransport

        super(myId, dataReceiver);
    }

    @Override
    public TCPTransport createTCPTransport(String peerId) {
        return new TCPTransport() {
            public void sendData(byte[] data) {
            }
        };
    }
View Full Code Here

Examples of org.apache.activemq.transport.tcp.TcpTransport

        super.setUp();
    }
   
    protected void tearDown() throws Exception {
        if (connection != null) {
            TcpTransport t = (TcpTransport)connection.getTransport().narrow(TcpTransport.class);
            t.getTransportListener().onException(new IOException("Disposed."));
            connection.getTransport().stop();
        }
        super.tearDown();
    }
View Full Code Here

Examples of org.apache.activemq.transport.tcp.TcpTransport

        connector = service.addConnector("tcp://localhost:0");
        return service;
    }

    protected void tearDown() throws Exception {
        TcpTransport t = (TcpTransport)connection.getTransport().narrow(TcpTransport.class);
        t.getTransportListener().onException(new IOException("Disposed."));
        connection.getTransport().stop();
        super.tearDown();
    }
View Full Code Here

Examples of org.apache.activemq.transport.tcp.TcpTransport

        super.setUp();
    }
   
    protected void tearDown() throws Exception {
        if (connection != null) {
            TcpTransport t = (TcpTransport)connection.getTransport().narrow(TcpTransport.class);
            t.getTransportListener().onException(new IOException("Disposed."));
            connection.getTransport().stop();
            super.tearDown();
        }
    }
View Full Code Here

Examples of org.apache.activemq.transport.tcp.TcpTransport

        connector = service.addConnector("tcp://localhost:0");       
        return service;
    }
   
    protected void tearDown() throws Exception {
      TcpTransport t = (TcpTransport) connection.getTransport().narrow(TcpTransport.class);
      t.getTransportListener().onException(new IOException("Disposed."));
      connection.getTransport().stop();
      super.tearDown();
    }
View Full Code Here

Examples of org.apache.directory.server.protocol.shared.transport.TcpTransport

        Transport transport = null;

        if ( transportBean instanceof TcpTransportBean )
        {
            transport = new TcpTransport();
        }
        else
        {
            transport = new UdpTransport();
        }
View Full Code Here

Examples of org.apache.directory.server.protocol.shared.transport.TcpTransport

                continue;
            }

            if ( transportBean instanceof TcpTransportBean )
            {
                TcpTransport transport = new TcpTransport( transportBean.getSystemPort() );
                transport.setAddress( transportBean.getTransportAddress() );

                if ( transportBean.getTransportId().equalsIgnoreCase( HttpServer.HTTP_TRANSPORT_ID ) )
                {
                    httpServer.setHttpTransport( transport );
                }
View Full Code Here

Examples of org.apache.directory.server.protocol.shared.transport.TcpTransport

                    }
                }

                if ( protocol.equalsIgnoreCase( "LDAP" ) )
                {
                    Transport ldap = new TcpTransport( address, port, nbThreads, backlog );
                    ldapServer.addTransports( ldap );
                }
                else if ( protocol.equalsIgnoreCase( "LDAPS" ) )
                {
                    Transport ldaps = new TcpTransport( address, port, nbThreads, backlog );
                    ldaps.setEnableSSL( true );
                    ldapServer.addTransports( ldaps );
                }
                else
                {
                    throw new IllegalArgumentException( I18n.err( I18n.ERR_689, protocol ) );
                }
            }
        }
        else
        {
            // Create default LDAP and LDAPS transports
            int port = AvailablePortFinder.getNextAvailable( 1024 );
            Transport ldap = new TcpTransport( port );
            ldapServer.addTransports( ldap );

            port = AvailablePortFinder.getNextAvailable( port );
            Transport ldaps = new TcpTransport( port );
            ldaps.setEnableSSL( true );
            ldapServer.addTransports( ldaps );
        }
    }
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.