Examples of bind()


Examples of org.apache.directory.studio.connection.core.io.jndi.JNDIConnectionWrapper.bind()

        JNDIConnectionWrapper connectionWrapper = connection.getJNDIConnectionWrapper();

        assertFalse( connectionWrapper.isConnected() );

        connectionWrapper.connect( monitor );
        connectionWrapper.bind( monitor );
        assertTrue( connectionWrapper.isConnected() );
        assertNull( monitor.getException() );

        connectionWrapper.unbind();
        connectionWrapper.disconnect();
View Full Code Here

Examples of org.apache.drill.exec.rpc.bit.BitServer.bind()

    BootStrapContext c = new BootStrapContext(DrillConfig.create());
    final BitComTestHandler handler = new BitComTestHandler();
    final ListenerPool listeners = new ListenerPool(2);
    ConnectionManagerRegistry registry = new ConnectionManagerRegistry(handler, c, listeners);
    BitServer server = new BitServer(handler, c, registry, listeners);
    port = server.bind(port);
    DrillbitEndpoint ep = DrillbitEndpoint.newBuilder().setAddress("localhost").setBitPort(port).build();
    registry.setEndpoint(ep);
    for(int i =0; i < 10; i++){
      try(BitConnectionManager cm = new BitConnectionManager(ep, ep, handler, c, listeners)){
        SendFragmentStatus cmd = new SendFragmentStatus(FragmentStatus.getDefaultInstance());
View Full Code Here

Examples of org.apache.drill.exec.rpc.data.DataServer.bind()

    DataResponseHandler drp = new BitComTestHandler();
    DataServer server = new DataServer(c, workBus, drp);


    port = server.bind(port, false);
    DrillbitEndpoint ep = DrillbitEndpoint.newBuilder().setAddress("localhost").setDataPort(port).build();
    DataConnectionManager manager = new DataConnectionManager(FragmentHandle.getDefaultInstance(), ep, c2);
    DataTunnel tunnel = new DataTunnel(manager);
    AtomicLong max = new AtomicLong(0);
    for (int i = 0; i < 40; i++) {
View Full Code Here

Examples of org.apache.felix.ipojo.extender.InstanceDeclaration.bind()

                                ((InstanceBundleContextAware) instance).setInstanceBundleContext(instanceDeclaration
                                        .getBundle().getBundleContext());
                            }

                            // Notify the declaration that everything is fine
                            instanceDeclaration.bind();

                            return instance;
                        } catch (UnacceptableConfiguration c) {
                            instanceDeclaration.unbind(format("Instance configuration is invalid (component:%s/%s, bundle:%d)",
                                                              m_declaration.getComponentName(),
View Full Code Here

Examples of org.apache.fop.fo.FOText.bind()

                }
                cloneSubtree(child.getChildNodes(), newChild,
                        marker, newPropertyList);
            } else if (child instanceof FOText) {
                FOText ft = (FOText) newChild;
                ft.bind(parentPropertyList);
            }
            addChildTo(newChild, (FObj) newParent);
            if (newChild instanceof FObjMixed) {
                handleWhiteSpaceFor((FObjMixed) newChild);
            }
View Full Code Here

Examples of org.apache.geronimo.gjndi.GlobalContextGBean.bind()

    public void testBindUnbind() throws Exception {
        System.setProperty("java.naming.factory.initial", "org.apache.xbean.naming.global.GlobalContextManager");
        GlobalContextGBean globalContext = new GlobalContextGBean(null);
        GlobalContextManager.setGlobalContext(globalContext);
        DeepBindableContext context = new DeepBindableContext("openejb", false, true, false, false);
        globalContext.bind("openejb", context);

        Context contextWrapper = context.newJndiFactory().createRootContext();
        testBindUnbind(context, contextWrapper, "openejb/foo/bar", "");
        testBindUnbind(context, contextWrapper, "java:openejb/foo/bar", "java:");
View Full Code Here

Examples of org.apache.http.HttpServerConnection.bind()

            while (!Thread.interrupted()) {
                try {
                  Socket socket = this.serversocket.accept();
                    HttpServerConnection conn = new DefaultHttpServerConnection();
                    System.out.println("Incoming connection from " + socket.getInetAddress());
                    conn.bind(socket, this.params);
                    FileServiceHandler fileServiceHandler = new FileServiceHandler(conn);

                    // Required protocol interceptors
                    fileServiceHandler.addInterceptor(new ResponseDate());
                    fileServiceHandler.addInterceptor(new ResponseServer());                   
View Full Code Here

Examples of org.apache.http.conn.ManagedClientConnection.bind()

                                        return wrappedConnection.getId();
                                    }

                                    @Override
                                    public void bind(Socket socket) throws IOException {
                                        wrappedConnection.bind(socket);
                                    }

                                    @Override
                                    public Socket getSocket() {
                                        return wrappedConnection.getSocket();
View Full Code Here

Examples of org.apache.http.conn.ManagedHttpClientConnection.bind()

        this.requestExec.preProcess(connect, this.httpProcessor, context);

        for (;;) {
            if (!conn.isOpen()) {
                final Socket socket = new Socket(proxy.getHostName(), proxy.getPort());
                conn.bind(socket);
            }

            this.authenticator.generateAuthResponse(connect, this.proxyAuthState, context);

            response = this.requestExec.execute(connect, conn, context);
View Full Code Here

Examples of org.apache.http.conn.SocketClientConnection.bind()

        this.requestExec.preProcess(connect, this.httpProcessor, context);

        for (;;) {
            if (!conn.isOpen()) {
                final Socket socket = new Socket(proxy.getHostName(), proxy.getPort());
                conn.bind(socket);
            }

            this.authenticator.generateAuthResponse(connect, this.proxyAuthState, context);

            response = this.requestExec.execute(connect, conn, context);
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.